Kaydet (Commit) 64a5d65f authored tarafından Noel Grandin's avatar Noel Grandin

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
üst 97932839
......@@ -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();
}
......
......@@ -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")
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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")
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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")
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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:":
......
......@@ -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();
}
......
......@@ -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:":
......
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