summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-03 10:16:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-03 11:37:53 +0200
commitd9e478330243cbd120f2de33df3333fec2ef9217 (patch)
tree7372f102ffddff7a8bf5911267f4c776da02dd03 /compilerplugins
parent50abf47628ad20c3104149a900313f62c34bac9f (diff)
loplugin:finalclasses in xmlsecurity..UnoControls
Change-Id: I8e942bf37c9173a01bef6e1403ca21f579e7f608 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91612 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/finalclasses.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/compilerplugins/clang/finalclasses.py b/compilerplugins/clang/finalclasses.py
index 7b08bdfbd966..524aec6f48a2 100755
--- a/compilerplugins/clang/finalclasses.py
+++ b/compilerplugins/clang/finalclasses.py
@@ -32,7 +32,8 @@ with open("workdir/loplugin.finalclasses.log") as txt:
else:
print( "unknown line: " + line)
-match_module_inc = re.compile('^\w+/inc/')
+match_module_inc1 = re.compile('^\w+/inc/')
+match_module_inc2 = re.compile('^\w+/.*/inc/')
tmpset = set()
for clazz in sorted(definitionSet - inheritFromSet):
file = definitionToFileDict[clazz]
@@ -43,7 +44,8 @@ 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 match_module_inc.match(file)): continue
+ if not(file.startswith("include/") or match_module_inc1.match(file) or match_module_inc2.match(file)): continue
+ #if not(file.endswith(".hxx")): continue
# Exclude URE
if file.startswith("include/com/"): continue
if file.startswith("include/cppu/"): continue