diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-25 13:22:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-07-25 13:23:10 +0200 |
commit | 98c90acdfc9813ad8789974df1705e0a240194fd (patch) | |
tree | d54f477ef6c814e7ffc06c24f3b5e286ba230f3f /compilerplugins/clang/unusedfields.py | |
parent | 0b8e589875ffd84150470832de18ebd79989efc0 (diff) |
loplugins: more consistent naming of output files
Change-Id: Ia26f697cb16078f235c94e4cff449a60c1bbd74e
Diffstat (limited to 'compilerplugins/clang/unusedfields.py')
-rwxr-xr-x | compilerplugins/clang/unusedfields.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py index 763a11743acb..055fd37a085b 100755 --- a/compilerplugins/clang/unusedfields.py +++ b/compilerplugins/clang/unusedfields.py @@ -23,7 +23,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.unusedfields.log", "rb", buffering=1024*1024) as txt: for line in txt: if line.startswith("definition:\t"): idx1 = line.find("\t",12) @@ -141,11 +141,11 @@ tmp1list = sorted(untouchedSet, key=lambda v: natural_sort_key(v[1])) tmp2list = sorted(writeonlySet, key=lambda v: natural_sort_key(v[1])) # print out the results -with open("unusedfields.untouched", "wt") as f: +with open("loplugin.unusedfields.report-untouched", "wt") as f: for t in tmp1list: f.write( t[1] + "\n" ) f.write( " " + t[0] + "\n" ) -with open("unusedfields.writeonly", "wt") as f: +with open("loplugin.unusedfields.report-writeonly", "wt") as f: for t in tmp2list: f.write( t[1] + "\n" ) f.write( " " + t[0] + "\n" ) |