Kaydet (Commit) 494c7103 authored tarafından Noel Grandin's avatar Noel Grandin

add various loplugin results files

so that instead of trying to maintain a list of false positives inside
the python processing code, I can just run the plugin, generate the
result, and then look at the git diff from last time.

Change-Id: Ic287f19e3b139705222a1f9541ad6471dfcb9c18
üst a8e81839
...@@ -53,7 +53,7 @@ def extractModuleName(clazz): ...@@ -53,7 +53,7 @@ def extractModuleName(clazz):
idx = filename.find("/") idx = filename.find("/")
return filename[:idx] return filename[:idx]
with open("loplugin.mergeclasses.report", "wt") as f: with open("compilerplugins/clang/mergeclasses.results", "wt") as f:
# loop over defined, but not instantiated classes # loop over defined, but not instantiated classes
for clazz in sorted(definitionSet - instantiatedSet): for clazz in sorted(definitionSet - instantiatedSet):
# ignore classes without any children, and classes with more than one child # ignore classes without any children, and classes with more than one child
......
...@@ -79,7 +79,7 @@ def natural_sort_key(s, _nsre=re.compile('([0-9]+)')): ...@@ -79,7 +79,7 @@ def natural_sort_key(s, _nsre=re.compile('([0-9]+)')):
tmp1list.sort(key=lambda v: natural_sort_key(v[2])) tmp1list.sort(key=lambda v: natural_sort_key(v[2]))
# print out the results # print out the results
with open("loplugin.singlevalfields.report", "wt") as f: with open("compilerplugins/clang/singlevalfields.results", "wt") as f:
for v in tmp1list: for v in tmp1list:
f.write(v[2] + "\n") f.write(v[2] + "\n")
f.write(" " + v[0] + "\n") f.write(" " + v[0] + "\n")
......
chart2/source/model/main/DataPoint.hxx:109
chart::DataPoint m_bNoParentPropAllowed
0
chart2/source/view/inc/GL3DRenderer.hxx:161
chart::opengl3D::TextInfoBatch batchNum
512
connectivity/source/inc/odbc/OBoundParam.hxx:113
connectivity::odbc::OBoundParam paramLength
0
connectivity/source/inc/OTypeInfo.hxx:37
connectivity::OTypeInfo nPrecision
0
connectivity/source/inc/OTypeInfo.hxx:39
connectivity::OTypeInfo nMaximumScale
0
connectivity/source/inc/OTypeInfo.hxx:40
connectivity::OTypeInfo nMinimumScale
0
connectivity/source/inc/OTypeInfo.hxx:43
connectivity::OTypeInfo nSearchType
3
connectivity/source/inc/OTypeInfo.hxx:44
connectivity::OTypeInfo nNumPrecRadix
0
connectivity/source/inc/OTypeInfo.hxx:46
connectivity::OTypeInfo bCurrency
0
connectivity/source/inc/OTypeInfo.hxx:47
connectivity::OTypeInfo bAutoIncrement
0
connectivity/source/inc/OTypeInfo.hxx:48
connectivity::OTypeInfo bNullable
1
connectivity/source/inc/OTypeInfo.hxx:49
connectivity::OTypeInfo bCaseSensitive
0
connectivity/source/inc/OTypeInfo.hxx:50
connectivity::OTypeInfo bUnsigned
0
include/basic/sbxvar.hxx:67
SbxValues::(anonymous) pData
0
include/filter/msfilter/dffpropset.hxx:33
DffPropFlags bSet
0
include/filter/msfilter/dffpropset.hxx:35
DffPropFlags bBlip
1
include/o3tl/vector_pool.hxx:93
o3tl::detail::struct_from_value::type nextFree
-1
include/vcl/field.hxx:100
PatternFormatter mbInPattKeyInput
0
include/vcl/filter/pdfdocument.hxx:174
vcl::filter::PDFNameElement m_nLength
0
libreofficekit/source/gtk/lokdocview.cxx:85
LOKDocViewPrivateImpl m_bIsLoading
0
opencl/source/opencl_device.cxx:63
opencl::(anonymous namespace)::LibreOfficeDeviceEvaluationIO inputSize
15360
opencl/source/opencl_device.cxx:64
opencl::(anonymous namespace)::LibreOfficeDeviceEvaluationIO outputSize
15360
pyuno/source/module/pyuno_impl.hxx:314
pyuno::RuntimeCargo valid
1
rsc/inc/rscdef.hxx:55
RscExpType cUnused
0
sax/source/tools/fastserializer.hxx:231
sax_fastparser::FastSaxSerializer mbXescape
1
sc/inc/compiler.hxx:108
ScRawToken::(anonymous union)::(anonymous) bIsInForceArray
0
sc/inc/recursionhelper.hxx:56
ScRecursionHelper bConverging
0
sc/qa/unit/ucalc.hxx:41
Test::RangeNameDef mnIndex
1
sd/inc/sdpptwrp.hxx:42
SdPPTFilter pBas
0
sd/source/filter/html/htmlex.hxx:114
HtmlExport mbAutoSlide
1
sd/source/ui/remotecontrol/DiscoveryService.hxx:43
sd::DiscoveryService zService
0
sfx2/source/appl/lnkbase2.cxx:75
sfx2::ImplBaseLinkData::tDDEType pItem
0
sfx2/source/appl/lnkbase2.cxx:80
sfx2::ImplBaseLinkData::(anonymous) DDEType
0
sfx2/source/doc/doctemplates.cxx:134
(anonymous namespace)::WaitWindow_Impl mnTextStyle
12576
sfx2/source/view/ipclient.cxx:76
SfxBooleanFlagGuard m_bLifeValue
1
shell/source/sessioninstall/SyncDbusSessionHelper.cxx:26
(anonymous namespace)::GErrorWrapper m_pError
0
soltools/cpp/cpp.h:121
includelist deleted
1
soltools/mkdepend/def.h:130
inclist i_notified
1
soltools/mkdepend/def.h:132
inclist i_searched
1
starmath/inc/node.hxx:101
SmNode mnFlags
0
stoc/source/inspect/introspection.cxx:1537
(anonymous namespace)::Cache::Data hits
1
sw/inc/hints.hxx:196
SwAttrSetChg m_bDelSet
0
sw/inc/pagepreviewlayout.hxx:49
SwPagePreviewLayout mnYFree
568
sw/source/core/inc/frmtool.hxx:256
SwBorderAttrs m_bBorderDist
1
sw/source/core/inc/swfont.hxx:157
SwFont m_nToxCount
0
sw/source/core/inc/swfont.hxx:158
SwFont m_nRefCount
0
sw/source/core/inc/swfont.hxx:159
SwFont m_nMetaCount
0
sw/source/core/inc/swfont.hxx:160
SwFont m_nInputFieldCount
0
sw/source/core/inc/UndoSort.hxx:38
SwSortUndoElement::(anonymous union)::(anonymous) nKenn
4294967295
sw/source/core/text/porlay.hxx:239
SwParaPortion m_nDelta
0
sw/source/filter/html/htmlcss1.cxx:77
SwCSS1ItemIds nFormatBreak
93
sw/source/filter/html/htmlcss1.cxx:78
SwCSS1ItemIds nFormatPageDesc
92
sw/source/filter/html/htmlcss1.cxx:79
SwCSS1ItemIds nFormatKeep
109
sw/source/filter/html/svxcss1.hxx:205
SvxCSS1Parser nMinFixLineSpace
141
sw/source/filter/inc/rtf.hxx:30
RTFSurround::(anonymous union)::(anonymous) nJunk
0
sw/source/filter/ww8/ww8par.hxx:650
WW8FormulaControl mfUnknown
0
sw/source/filter/ww8/ww8par.hxx:659
WW8FormulaControl mhpsCheckBox
20
vcl/inc/salprn.hxx:41
SalPrinterQueueInfo mnStatus
0
vcl/inc/salprn.hxx:42
SalPrinterQueueInfo mnJobs
4294967295
vcl/inc/salprn.hxx:43
SalPrinterQueueInfo mpSysData
0
vcl/inc/svdata.hxx:253
ImplSVNWFData mnStatusBarLowerRightOffset
0
vcl/inc/svdata.hxx:269
ImplSVNWFData mbCenteredTabs
0
vcl/inc/svdata.hxx:270
ImplSVNWFData mbNoActiveTabTextRaise
0
vcl/inc/svdata.hxx:272
ImplSVNWFData mbProgressNeedsErase
0
vcl/inc/unx/i18n_cb.hxx:53
preedit_text_t nCursorPos
0
vcl/source/edit/textdat2.hxx:53
TETextPortion nWidth
-1
vcl/source/edit/textdat2.hxx:54
TETextPortion nKind
0
vcl/source/filter/jpeg/transupp.h:128
(anonymous) perfect
0
vcl/source/filter/jpeg/transupp.h:129
(anonymous) trim
0
vcl/source/filter/jpeg/transupp.h:131
(anonymous) crop
0
vcl/source/font/font.cxx:540
(anonymous namespace)::WeightSearchEntry weight
5
vcl/source/gdi/pdfwriter_impl.hxx:709
vcl::PDFWriterImpl m_nInheritedPageWidth
595
vcl/source/gdi/pdfwriter_impl.hxx:710
vcl::PDFWriterImpl m_nInheritedPageHeight
842
writerfilter/source/dmapper/GraphicImport.cxx:229
writerfilter::dmapper::GraphicImport_Impl nCurrentBorderLine
2
...@@ -57,7 +57,7 @@ def natural_sort_key(s, _nsre=re.compile('([0-9]+)')): ...@@ -57,7 +57,7 @@ def natural_sort_key(s, _nsre=re.compile('([0-9]+)')):
# sort results by name and line number # sort results by name and line number
tmp1list = sorted(unnecessaryVirtualSet, key=lambda v: natural_sort_key(v[1])) tmp1list = sorted(unnecessaryVirtualSet, key=lambda v: natural_sort_key(v[1]))
with open("loplugin.unnecessaryvirtual.report", "wt") as f: with open("compilerplugins/clang/unnecessaryvirtual.results", "wt") as f:
for t in tmp1list: for t in tmp1list:
f.write( t[1] + "\n" ) f.write( t[1] + "\n" )
f.write( " " + t[0] + "\n" ) f.write( " " + t[0] + "\n" )
......
This diff is collapsed.
...@@ -245,15 +245,15 @@ tmp2list = sorted(writeonlySet, key=lambda v: natural_sort_key(v[1])) ...@@ -245,15 +245,15 @@ tmp2list = sorted(writeonlySet, key=lambda v: natural_sort_key(v[1]))
tmp3list = sorted(readonlySet, key=lambda v: natural_sort_key(v[1])) tmp3list = sorted(readonlySet, key=lambda v: natural_sort_key(v[1]))
# print out the results # print out the results
with open("loplugin.unusedenumconstants.report-untouched", "wt") as f: with open("compilerplugins/clang/unusedenumconstants.untouched.results", "wt") as f:
for t in tmp1list: for t in tmp1list:
f.write( t[1] + "\n" ) f.write( t[1] + "\n" )
f.write( " " + t[0] + "\n" ) f.write( " " + t[0] + "\n" )
with open("loplugin.unusedenumconstants.report-writeonly", "wt") as f: with open("compilerplugins/clang/unusedenumconstants.writeonly.results", "wt") as f:
for t in tmp2list: for t in tmp2list:
f.write( t[1] + "\n" ) f.write( t[1] + "\n" )
f.write( " " + t[0] + "\n" ) f.write( " " + t[0] + "\n" )
with open("loplugin.unusedenumconstants.report-readonly", "wt") as f: with open("compilerplugins/clang/unusedenumconstants.readonly.results", "wt") as f:
for t in tmp3list: for t in tmp3list:
f.write( t[1] + "\n" ) f.write( t[1] + "\n" )
f.write( " " + t[0] + "\n" ) f.write( " " + t[0] + "\n" )
......
include/editeng/borderline.hxx:127
enum SvxBorderLineStyle BORDER_LINE_STYLE_MAX
include/i18nutil/transliteration.hxx:46
enum TransliterationFlags NumToTextLower_zh_CN
include/i18nutil/transliteration.hxx:48
enum TransliterationFlags NumToTextUpper_zh_CN
include/i18nutil/transliteration.hxx:50
enum TransliterationFlags NumToTextLower_zh_TW
include/i18nutil/transliteration.hxx:52
enum TransliterationFlags NumToTextUpper_zh_TW
include/i18nutil/transliteration.hxx:54
enum TransliterationFlags NumToTextFormalHangul_ko
include/i18nutil/transliteration.hxx:56
enum TransliterationFlags NumToTextFormalLower_ko
include/i18nutil/transliteration.hxx:58
enum TransliterationFlags NumToTextFormalUpper_ko
include/i18nutil/transliteration.hxx:118
enum TransliterationFlags smallToLarge_ja_JP
include/i18nutil/transliteration.hxx:120
enum TransliterationFlags largeToSmall_ja_JP
include/LibreOfficeKit/LibreOfficeKitEnums.h:38
LibreOfficeKitTileMode LOK_TILEMODE_RGBA
include/oox/ole/axfontdata.hxx:39
enum AxFontFlags Disabled
include/oox/ole/axfontdata.hxx:40
enum AxFontFlags AutoColor
include/unotools/eventcfg.hxx:34
enum GlobalEventId STARTAPP
include/unotools/eventcfg.hxx:35
enum GlobalEventId CLOSEAPP
libreofficekit/source/gtk/lokdocview.cxx:286
enum (anonymous at /home/noel/libo3/libreofficekit/source/gtk/lokdocview.cxx:284:1) PROP_0
sw/inc/poolfmt.hxx:96
enum RES_POOLFMT RES_POOL_CHRFMT
sw/inc/poolfmt.hxx:97
enum RES_POOLFMT RES_POOL_FRMFMT
sw/inc/poolfmt.hxx:98
enum RES_POOLFMT RES_POOL_TXTCOLL
sw/inc/poolfmt.hxx:99
enum RES_POOLFMT RES_POOL_PAGEFMT
sw/inc/poolfmt.hxx:101
enum RES_POOLFMT RES_POOL_PARFMT
sw/inc/poolfmt.hxx:102
enum RES_POOLFMT RES_POOL_GRFFMT
sw/inc/poolfmt.hxx:103
enum RES_POOLFMT RES_POOLFMT_END
sw/inc/poolfmt.hxx:208
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_BLACK1
sw/inc/poolfmt.hxx:209
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_BLACK2
sw/inc/poolfmt.hxx:210
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_BLUE
sw/inc/poolfmt.hxx:211
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_BROWN
sw/inc/poolfmt.hxx:212
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_CURRENCY
sw/inc/poolfmt.hxx:213
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_CURRENCY_3D
sw/inc/poolfmt.hxx:214
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_CURRENCY_GRAY
sw/inc/poolfmt.hxx:215
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_CURRENCY_LAVENDER
sw/inc/poolfmt.hxx:216
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_CURRENCY_TURQUOISE
sw/inc/poolfmt.hxx:217
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_GRAY
sw/inc/poolfmt.hxx:218
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_GREEN
sw/inc/poolfmt.hxx:219
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_LAVENDER
sw/inc/poolfmt.hxx:220
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_RED
sw/inc/poolfmt.hxx:221
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_TURQUOISE
sw/inc/poolfmt.hxx:222
enum RES_POOL_TABSTYLE_TYPE RES_POOLTABLESTYLE_YELLOW
vcl/source/gdi/CommonSalLayout.cxx:313
enum (anonymous namespace)::VerticalOrientation Rotated
...@@ -150,14 +150,15 @@ tmp2list = sorted(writeonlySet, key=lambda v: natural_sort_key(v[1])) ...@@ -150,14 +150,15 @@ tmp2list = sorted(writeonlySet, key=lambda v: natural_sort_key(v[1]))
tmp3list = sorted(canBePrivateSet, key=lambda v: natural_sort_key(v[1])) tmp3list = sorted(canBePrivateSet, key=lambda v: natural_sort_key(v[1]))
# print out the results # print out the results
with open("loplugin.unusedfields.report-untouched", "wt") as f: with open("compilerplugins/clang/unusedfields.untouched.results", "wt") as f:
for t in tmp1list: for t in tmp1list:
f.write( t[1] + "\n" ) f.write( t[1] + "\n" )
f.write( " " + t[0] + "\n" ) f.write( " " + t[0] + "\n" )
with open("loplugin.unusedfields.report-writeonly", "wt") as f: with open("compilerplugins/clang/unusedfields.writeonly.results", "wt") as f:
for t in tmp2list: for t in tmp2list:
f.write( t[1] + "\n" ) f.write( t[1] + "\n" )
f.write( " " + t[0] + "\n" ) f.write( " " + t[0] + "\n" )
# this one is not checked in yet because I haven't actually done anything with it
with open("loplugin.unusedfields.report-can-be-private", "wt") as f: with open("loplugin.unusedfields.report-can-be-private", "wt") as f:
for t in tmp3list: for t in tmp3list:
f.write( t[1] + "\n" ) f.write( t[1] + "\n" )
......
...@@ -272,7 +272,7 @@ for d in definitionSet: ...@@ -272,7 +272,7 @@ for d in definitionSet:
tmp1set.add((method, location)) tmp1set.add((method, location))
# print out the results, sorted by name and line number # print out the results, sorted by name and line number
with open("loplugin.unusedmethods.report-unused-methods", "wt") as f: with open("compilerplugins/clang/unusedmethods.results", "wt") as f:
for t in sort_set_by_natural_key(tmp1set): for t in sort_set_by_natural_key(tmp1set):
f.write(t[1] + "\n") f.write(t[1] + "\n")
f.write(" " + t[0] + "\n") f.write(" " + t[0] + "\n")
...@@ -329,7 +329,7 @@ for d in definitionSet: ...@@ -329,7 +329,7 @@ for d in definitionSet:
tmp2set.add((method, location)) tmp2set.add((method, location))
# print output, sorted by name and line number # print output, sorted by name and line number
with open("loplugin.unusedmethods.report-unused-returns", "wt") as f: with open("compilerplugins/clang/unusedmethods.unused-returns.results", "wt") as f:
for t in sort_set_by_natural_key(tmp2set): for t in sort_set_by_natural_key(tmp2set):
f.write(t[1] + "\n") f.write(t[1] + "\n")
f.write(" " + t[0] + "\n") f.write(" " + t[0] + "\n")
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment