Skip to content

Commit

Permalink
Merge pull request #9691 from gartung/clangSA-fix-partial-match
Browse files Browse the repository at this point in the history
Clang SA fix partial match of ESD class name
  • Loading branch information
cmsbuild committed Jun 20, 2015
2 parents 1f0b617 + e2e322c commit 94c4bf3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Utilities/StaticAnalyzers/scripts/data-class-funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,13 @@
if n : o = n.group(3)
else : o = m.group(1)
p = re.sub("class ","",o)
dataclass = re.sub("struct ","",p)
q = re.sub("struct ","",p)
dataclass = re.sub("\<.*\> ","",q)
for flaggedclass in sorted(flaggedclasses):
if re.match(flaggedclass,dataclass) :
exact= r"^" + re.escape(flaggedclass) + r"$"
exactmatch=re.match(exact,dataclass)
if exactmatch:
if re.match(flaggedclass,dataclass):
print "Flagged event setup data class '"+dataclass+"' is accessed in call stack '",
path = nx.shortest_path(G,tfunc,dataclassfunc)
for p in path:
Expand Down

0 comments on commit 94c4bf3

Please sign in to comment.