summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unuseddefaultparams.py
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unuseddefaultparams.py')
-rwxr-xr-xcompilerplugins/clang/unuseddefaultparams.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/unuseddefaultparams.py b/compilerplugins/clang/unuseddefaultparams.py
index 0390821c77ed..c0c6c613857b 100755
--- a/compilerplugins/clang/unuseddefaultparams.py
+++ b/compilerplugins/clang/unuseddefaultparams.py
@@ -22,7 +22,7 @@ def normalizeTypeParams( line ):
# The parsing here is designed to avoid grabbing stuff which is mixed in from gbuild.
# I have not yet found a way of suppressing the gbuild output.
-with io.open(sys.argv[1], "rb", buffering=1024*1024) as txt:
+with io.open("loplugin.unuseddefaultparams.log", "rb", buffering=1024*1024) as txt:
for line in txt:
if line.startswith("defn:\t"):
idx1 = line.find("\t",6)
@@ -72,7 +72,7 @@ def natural_sort_key(s, _nsre=re.compile('([0-9]+)')):
tmp1list = sorted(tmp1set, key=lambda v: natural_sort_key(v[1]))
# print out the results
-with open("unused.defaultparams", "wt") as f:
+with open("loplugin.unuseddefaultparams.report", "wt") as f:
for t in tmp1list:
f.write(t[1] + "\n")
f.write(" " + t[0] + "\n")