diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-10 15:41:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-10 15:54:24 +0200 |
commit | 64a5d65f4c6226d8e98d2f33bf86f748d4ac9280 (patch) | |
tree | bb772d7e408fa984a7f4f628ae0efc3c68a1980a /compilerplugins | |
parent | 97932839851ff4084f32c82442176c2114763b74 (diff) |
put the loplugin output files in the workdir
so that the next time I accidentally leave one turned on, and commit it,
the buildbots will clean up naturally the next time they run 'make
clean'
Change-Id: Ia09dea9c272c322c7e2773c5458cb54aceb50dd1
Diffstat (limited to 'compilerplugins')
24 files changed, 24 insertions, 24 deletions
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx index cb5a380bac73..3cbcbc8e4043 100644 --- a/compilerplugins/clang/constantparam.cxx +++ b/compilerplugins/clang/constantparam.cxx @@ -86,7 +86,7 @@ public: output += s.returnType + "\t" + s.nameAndParams + "\t" + s.sourceLocation + "\t" + s.paramName + "\t" + s.paramType + "\t" + s.callValue + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.constantparam.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.constantparam.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/constantparam.py b/compilerplugins/clang/constantparam.py index 97dada368d60..5a1ae85e1192 100755 --- a/compilerplugins/clang/constantparam.py +++ b/compilerplugins/clang/constantparam.py @@ -13,7 +13,7 @@ def normalizeTypeParams( line ): return normalizeTypeParamsRegex.sub("type-parameter-?-?", line) # reading as binary (since we known it is pure ascii) is much faster than reading as unicode -with io.open("loplugin.constantparam.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.constantparam.log", "rb", buffering=1024*1024) as txt: for line in txt: try: tokens = line.strip().split("\t") diff --git a/compilerplugins/clang/countusersofdefaultparams.cxx b/compilerplugins/clang/countusersofdefaultparams.cxx index d86e66a35490..f3d68a143aed 100644 --- a/compilerplugins/clang/countusersofdefaultparams.cxx +++ b/compilerplugins/clang/countusersofdefaultparams.cxx @@ -74,7 +74,7 @@ public: for (const MyCallInfo & s : callSet) output += "call:\t" + s.returnType + "\t" + s.nameAndParams + "\t" + s.sourceLocationOfCall + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.countusersofdefaultparams.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.countusersofdefaultparams.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/countusersofdefaultparams.py b/compilerplugins/clang/countusersofdefaultparams.py index c36f91b36dbb..06c38b9e4807 100755 --- a/compilerplugins/clang/countusersofdefaultparams.py +++ b/compilerplugins/clang/countusersofdefaultparams.py @@ -15,7 +15,7 @@ def normalizeTypeParams( line ): line = normalizeTypeParamsRegex1.sub("type-parameter-?-?", line) return normalizeTypeParamsRegex2.sub("type-parameter-?-?", line) -with io.open("loplugin.countusersofdefaultparams.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.countusersofdefaultparams.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "defn:": diff --git a/compilerplugins/clang/expandablemethods.cxx b/compilerplugins/clang/expandablemethods.cxx index 6d70ad81cefa..20d5a6998e39 100644 --- a/compilerplugins/clang/expandablemethods.cxx +++ b/compilerplugins/clang/expandablemethods.cxx @@ -82,7 +82,7 @@ public: for (const MyFuncInfo & s : addressOfSet) output += "addrof:\t" + s.returnType + "\t" + s.nameAndParams + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.expandablemethods.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.expandablemethods.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/expandablemethods.py b/compilerplugins/clang/expandablemethods.py index 934a5f6580ed..9a7b828a4ad5 100755 --- a/compilerplugins/clang/expandablemethods.py +++ b/compilerplugins/clang/expandablemethods.py @@ -25,7 +25,7 @@ def normalizeTypeParams( line ): # primary input loop # -------------------------------------------------------------------------------------------- -with io.open("loplugin.expandablemethods.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.expandablemethods.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "definition:": diff --git a/compilerplugins/clang/finalclasses.cxx b/compilerplugins/clang/finalclasses.cxx index 8f48611f07da..6e8596a78421 100644 --- a/compilerplugins/clang/finalclasses.cxx +++ b/compilerplugins/clang/finalclasses.cxx @@ -51,7 +51,7 @@ public: for (const std::pair<std::string,std::string> & s : definitionMap) output += "definition:\t" + s.first + "\t" + s.second + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.finalclasses.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.finalclasses.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/finalclasses.py b/compilerplugins/clang/finalclasses.py index 304074688363..d2d4f695b8a1 100755 --- a/compilerplugins/clang/finalclasses.py +++ b/compilerplugins/clang/finalclasses.py @@ -7,7 +7,7 @@ definitionSet = set() inheritFromSet = set() definitionToFileDict = {} -with open("loplugin.finalclasses.log") as txt: +with open("workdir/loplugin.finalclasses.log") as txt: for line in txt: tokens = line.strip().split("\t") diff --git a/compilerplugins/clang/inlinefields.cxx b/compilerplugins/clang/inlinefields.cxx index 490d40818683..ef69fcfbd4c3 100644 --- a/compilerplugins/clang/inlinefields.cxx +++ b/compilerplugins/clang/inlinefields.cxx @@ -84,7 +84,7 @@ public: for (const MyFieldInfo & s : newedInConstructorSet) output += "newedInConstructor:\t" + s.parentClass + "\t" + s.fieldName + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.inlinefields.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.inlinefields.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/inlinefields.py b/compilerplugins/clang/inlinefields.py index 2605fd7bc173..80dc6a39621c 100755 --- a/compilerplugins/clang/inlinefields.py +++ b/compilerplugins/clang/inlinefields.py @@ -17,7 +17,7 @@ def normalizeTypeParams( line ): return normalizeTypeParamsRegex.sub("type-parameter-?-?", line) # reading as binary (since we known it is pure ascii) is much faster than reading as unicode -with io.open("loplugin.inlinefields.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.inlinefields.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "definition:": diff --git a/compilerplugins/clang/mergeclasses.cxx b/compilerplugins/clang/mergeclasses.cxx index c8d3e8107e97..ca6cdeac74be 100644 --- a/compilerplugins/clang/mergeclasses.cxx +++ b/compilerplugins/clang/mergeclasses.cxx @@ -67,7 +67,7 @@ public: for (const std::pair<std::string,std::string> & s : definitionMap) output += "definition:\t" + s.first + "\t" + s.second + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.mergeclasses.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.mergeclasses.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/mergeclasses.py b/compilerplugins/clang/mergeclasses.py index aa8e73fe603a..e070ee49e81a 100755 --- a/compilerplugins/clang/mergeclasses.py +++ b/compilerplugins/clang/mergeclasses.py @@ -7,7 +7,7 @@ definitionSet = set() parentChildDict = {} definitionToFileDict = {} -with open("loplugin.mergeclasses.log") as txt: +with open("workdir/loplugin.mergeclasses.log") as txt: for line in txt: tokens = line.strip().split("\t") diff --git a/compilerplugins/clang/singlevalfields.cxx b/compilerplugins/clang/singlevalfields.cxx index edf35e5f3cb2..eb510449b9ac 100644 --- a/compilerplugins/clang/singlevalfields.cxx +++ b/compilerplugins/clang/singlevalfields.cxx @@ -85,7 +85,7 @@ public: for (const MyFieldInfo & s : definitionSet) output += "defn:\t" + s.parentClass + "\t" + s.fieldName + "\t" + s.sourceLocation + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.singlevalfields.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.singlevalfields.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/singlevalfields.py b/compilerplugins/clang/singlevalfields.py index 855f3d5ae58f..ae1025cb6e3d 100755 --- a/compilerplugins/clang/singlevalfields.py +++ b/compilerplugins/clang/singlevalfields.py @@ -14,7 +14,7 @@ def normalizeTypeParams( line ): return normalizeTypeParamsRegex.sub("type-parameter-?-?", line) # reading as binary (since we known it is pure ascii) is much faster than reading as unicode -with io.open("loplugin.singlevalfields.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.singlevalfields.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "defn:": diff --git a/compilerplugins/clang/unnecessaryvirtual.cxx b/compilerplugins/clang/unnecessaryvirtual.cxx index 6d655f6f20c6..e2af4bec6dc3 100644 --- a/compilerplugins/clang/unnecessaryvirtual.cxx +++ b/compilerplugins/clang/unnecessaryvirtual.cxx @@ -67,7 +67,7 @@ public: for (const std::string & s : overridingSet) output += "overriding:\t" + s + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.unnecessaryvirtual.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.unnecessaryvirtual.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/unnecessaryvirtual.py b/compilerplugins/clang/unnecessaryvirtual.py index 82d1dee6adb2..7ae6e6435907 100755 --- a/compilerplugins/clang/unnecessaryvirtual.py +++ b/compilerplugins/clang/unnecessaryvirtual.py @@ -9,7 +9,7 @@ definitionToSourceLocationMap = dict() overridingSet = set() -with io.open("loplugin.unnecessaryvirtual.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.unnecessaryvirtual.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "definition:": diff --git a/compilerplugins/clang/unusedenumconstants.cxx b/compilerplugins/clang/unusedenumconstants.cxx index 5448f39f6bf8..fd159cea5ab5 100644 --- a/compilerplugins/clang/unusedenumconstants.cxx +++ b/compilerplugins/clang/unusedenumconstants.cxx @@ -78,7 +78,7 @@ public: for (const MyFieldInfo & s : readSet) output += "read:\t" + s.parentClass + "\t" + s.fieldName + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.unusedenumconstants.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.unusedenumconstants.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/unusedenumconstants.py b/compilerplugins/clang/unusedenumconstants.py index 584e8d529c26..c498f38c76d7 100755 --- a/compilerplugins/clang/unusedenumconstants.py +++ b/compilerplugins/clang/unusedenumconstants.py @@ -22,7 +22,7 @@ def parseFieldInfo( tokens ): else: return (normalizeTypeParams(tokens[1]), "") -with io.open("loplugin.unusedenumconstants.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.unusedenumconstants.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "definition:": diff --git a/compilerplugins/clang/unusedfields.cxx b/compilerplugins/clang/unusedfields.cxx index 2e009a35aa80..4095b23324c0 100644 --- a/compilerplugins/clang/unusedfields.cxx +++ b/compilerplugins/clang/unusedfields.cxx @@ -193,7 +193,7 @@ void UnusedFields::run() for (const MyFieldInfo & s : definitionSet) output += "definition:\t" + s.access + "\t" + s.parentClass + "\t" + s.fieldName + "\t" + s.fieldType + "\t" + s.sourceLocation + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.unusedfields.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.unusedfields.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py index 3d3683c0c704..1178d0da0b80 100755 --- a/compilerplugins/clang/unusedfields.py +++ b/compilerplugins/clang/unusedfields.py @@ -26,7 +26,7 @@ def parseFieldInfo( tokens ): else: return (normalizeTypeParams(tokens[1]), "") -with io.open("loplugin.unusedfields.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.unusedfields.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "definition:": diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx index 6ea3da69716b..a84b7e8d237d 100644 --- a/compilerplugins/clang/unusedmethods.cxx +++ b/compilerplugins/clang/unusedmethods.cxx @@ -102,7 +102,7 @@ public: for (const MyFuncInfo & s : calledFromOutsideSet) output += "outside:\t" + s.returnType + "\t" + s.nameAndParams + "\n"; std::ofstream myfile; - myfile.open( SRCDIR "/loplugin.unusedmethods.log", std::ios::app | std::ios::out); + myfile.open( WORKDIR "/loplugin.unusedmethods.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py index 68f2fba6bed8..d4af2f712bf7 100755 --- a/compilerplugins/clang/unusedmethods.py +++ b/compilerplugins/clang/unusedmethods.py @@ -33,7 +33,7 @@ def normalizeTypeParams( line ): # primary input loop # -------------------------------------------------------------------------------------------- -with io.open("loplugin.unusedmethods.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.unusedmethods.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "definition:": diff --git a/compilerplugins/clang/virtualdown.cxx b/compilerplugins/clang/virtualdown.cxx index b33dc6cf5603..8c7ef41494d9 100644 --- a/compilerplugins/clang/virtualdown.cxx +++ b/compilerplugins/clang/virtualdown.cxx @@ -62,7 +62,7 @@ public: for (const std::string& s : callSet) output += "call:\t" + s + "\n"; std::ofstream myfile; - myfile.open(SRCDIR "/loplugin.virtualdown.log", std::ios::app | std::ios::out); + myfile.open(WORKDIR "/loplugin.virtualdown.log", std::ios::app | std::ios::out); myfile << output; myfile.close(); } diff --git a/compilerplugins/clang/virtualdown.py b/compilerplugins/clang/virtualdown.py index f2121c07a29b..a1d5c6e80d9f 100755 --- a/compilerplugins/clang/virtualdown.py +++ b/compilerplugins/clang/virtualdown.py @@ -9,7 +9,7 @@ definitionToSourceLocationMap = dict() callSet = set() -with io.open("loplugin.virtualdown.log", "rb", buffering=1024*1024) as txt: +with io.open("workdir/loplugin.virtualdown.log", "rb", buffering=1024*1024) as txt: for line in txt: tokens = line.strip().split("\t") if tokens[0] == "definition:": |