diff options
Diffstat (limited to 'compilerplugins/clang/unnecessaryvirtual.py')
-rwxr-xr-x | compilerplugins/clang/unnecessaryvirtual.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/compilerplugins/clang/unnecessaryvirtual.py b/compilerplugins/clang/unnecessaryvirtual.py index 4cab2c8a21a8..82d1dee6adb2 100755 --- a/compilerplugins/clang/unnecessaryvirtual.py +++ b/compilerplugins/clang/unnecessaryvirtual.py @@ -43,10 +43,17 @@ for clazz in (definitionSet - overridingSet): if clazz == "GtkSalDisplay::int-CaptureMouse(class SalFrame *,)": continue # some test magic if clazz.startswith("apitest::"): continue + + loc = definitionToSourceLocationMap[clazz] + # ignore external code - if definitionToSourceLocationMap[clazz].startswith("external/"): continue + if loc.startswith("external/"): continue + # there is a bunch of Windows specific code that we don't see + if loc.startswith("include/canvas/"): continue + # not sure what the problem is here + if loc.startswith("include/test/"): continue - unnecessaryVirtualSet.add((clazz,definitionToSourceLocationMap[clazz] )) + unnecessaryVirtualSet.add( (clazz,loc) ) # sort the results using a "natural order" so sequences like [item1,item2,item10] sort nicely |