Skip to content

Commit

Permalink
Skip get call with const char *, edm:ESHandle<> args
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Jul 9, 2021
1 parent a3b3a75 commit da185fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Utilities/StaticAnalyzers/scripts/callgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
tmpl = re.compile(r'<.*?>')
toplevelfuncs = set()
#epfuncre = re.compile(r"edm::eventsetup::EventSetupRecord::get<.*>\(.*\)")
epfuncre = re.compile(r"edm::eventsetup::EventSetupRecord::get<(class|struct) edm::ES(Transient)?Handle<(class|struct) .*>>\(.*\) const")
epfuncre = re.compile(r"edm::eventsetup::EventSetupRecord::get<(class|struct) edm::ES(Transient)?Handle<(class|struct) .*>>\(const char \*, (class|struct) edm::ES(Transient)?Handle<(class|struct).*> &\) const")
skipfunc = re.compile(r"TGraph::IsA\(.*\)")
epfuncs = set()

Expand Down Expand Up @@ -56,6 +56,8 @@
cs = str("")
previous = str("")
for p in path:
if epfuncre.search(p):
break
stripped = p
#re.sub(farg, "()", p)
if previous != stripped:
Expand Down

0 comments on commit da185fa

Please sign in to comment.