diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-22 17:22:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-22 18:04:00 +0100 |
commit | de37f3c3b2620721ebbfa27bb0c348497c2f0501 (patch) | |
tree | c34b5068be197ddefa32b750475321709192bdd8 /compilerplugins/clang | |
parent | 778327126025a14243e2bdf6d2e6adc29943cd64 (diff) |
loplugin:finalclasses in xmlsecurity
Change-Id: I1c2d0c418d2aa2198c82e89ce048851f30d07a7d
Reviewed-on: https://gerrit.libreoffice.org/85698
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang')
-rwxr-xr-x | compilerplugins/clang/finalclasses.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/finalclasses.py b/compilerplugins/clang/finalclasses.py index 49a30b1e6511..7b08bdfbd966 100755 --- a/compilerplugins/clang/finalclasses.py +++ b/compilerplugins/clang/finalclasses.py @@ -32,6 +32,7 @@ with open("workdir/loplugin.finalclasses.log") as txt: else: print( "unknown line: " + line) +match_module_inc = re.compile('^\w+/inc/') tmpset = set() for clazz in sorted(definitionSet - inheritFromSet): file = definitionToFileDict[clazz] @@ -42,7 +43,7 @@ for clazz in sorted(definitionSet - inheritFromSet): if (file.startswith("workdir/")): continue # We are only really interested in classes that are shared between linkage units, where the compiler # is not able to figure out for itself that classes are final. - if not(file.startswith("include/") or file.startswith("sw/inc/") or file.startswith("sc/inc/") or file.startswith("vcl/inc/")): continue + if not(file.startswith("include/") or match_module_inc.match(file)): continue # Exclude URE if file.startswith("include/com/"): continue if file.startswith("include/cppu/"): continue |