diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 12:14:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 12:44:02 +0200 |
commit | 494c7103744ded1f6f2d373a8eb194c9d34f7b82 (patch) | |
tree | ef9bdffc52dfd0e97b8e1edb7e394c6adfa545c4 /compilerplugins/clang/unusedfields.py | |
parent | a8e818392d9129f74e751e1db0278cc314722208 (diff) |
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
Diffstat (limited to 'compilerplugins/clang/unusedfields.py')
-rwxr-xr-x | compilerplugins/clang/unusedfields.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py index 3effaff38828..5d15b84ba528 100755 --- a/compilerplugins/clang/unusedfields.py +++ b/compilerplugins/clang/unusedfields.py @@ -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])) # 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: f.write( t[1] + "\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: f.write( t[1] + "\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: for t in tmp3list: f.write( t[1] + "\n" ) |