summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/unusedmethods.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py
index d5c7946da822..2f94f16bd9ca 100755
--- a/compilerplugins/clang/unusedmethods.py
+++ b/compilerplugins/clang/unusedmethods.py
@@ -241,10 +241,10 @@ 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
-for t in tmp1list:
- print t[1]
- print " ", t[0]
-sys.exit(0)
+#for t in tmp1list:
+# print t[1]
+# print " ", t[0]
+#sys.exit(0)
# -------------------------------------------
# Do the "unused return types" part
@@ -261,6 +261,9 @@ for d in definitionSet:
continue
if d[0] == "void":
continue
+ # ignore bool returns, provides important documentation in the code
+ if d[0] == "_Bool":
+ continue
# ignore UNO constructor method entrypoints
if "_get_implementation" in d[1] or "_getFactory" in d[1]:
continue