summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/virtualdead.py
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/virtualdead.py')
-rwxr-xr-xcompilerplugins/clang/virtualdead.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/virtualdead.py b/compilerplugins/clang/virtualdead.py
index e653c7e23832..e32de264ed68 100755
--- a/compilerplugins/clang/virtualdead.py
+++ b/compilerplugins/clang/virtualdead.py
@@ -23,7 +23,7 @@ with io.open("workdir/loplugin.virtualdead.log", "r", encoding="ascii", errors="
sourceLocation = tokens[2]
returnValue = tokens[3]
callInfo = (nameAndParams, sourceLocation)
- if not callInfo in callDict:
+ if callInfo not in callDict:
callDict[callInfo] = set()
callDict[callInfo].add(returnValue)
definitionToSourceLocationMap[nameAndParams] = sourceLocation
@@ -74,7 +74,7 @@ def merge_bitfield(a, b):
ret += "1"
else:
ret += "0"
- return ret;
+ return ret
tmp2dict = dict()
tmp2list = list()
for paramInfo in paramSet:
@@ -84,7 +84,7 @@ for paramInfo in paramSet:
if re.match( r"\w+ ooo::vba::", name): continue
if re.match( r"\w+ orcus::", name): continue
if re.match( r"\w+ std::", name): continue
- if not name in tmp2dict:
+ if name not in tmp2dict:
tmp2dict[name] = bitfield
else:
tmp2dict[name] = merge_bitfield(tmp2dict[name], bitfield)