From 3db470e65f1fe197de4d6bf323584acfb78570f8 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Wed, 14 Jul 2021 01:36:51 +0200 Subject: [PATCH] Only match ESR::get with string as first arg --- Utilities/StaticAnalyzers/scripts/callgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/StaticAnalyzers/scripts/callgraph.py b/Utilities/StaticAnalyzers/scripts/callgraph.py index 202948e4b5a8e..abe1a9d89ae61 100755 --- a/Utilities/StaticAnalyzers/scripts/callgraph.py +++ b/Utilities/StaticAnalyzers/scripts/callgraph.py @@ -22,8 +22,8 @@ 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 char \*, |const std::string &, )?(class|struct) edm::ES(Transient)?Handle<(class|struct).*> &\) const") -f= 'edm::eventsetup::EventSetupRecord::get>(class edm::ESHandle &) const' +epfuncre = re.compile(r"edm::eventsetup::EventSetupRecord::get<(class|struct) edm::ES(Transient)?Handle<(class|struct) .*>>\((const char \*, |const std::string &, )(class|struct) edm::ES(Transient)?Handle<(class|struct).*> &\) const") +f= 'edm::eventsetup::EventSetupRecord::get>(const std::string &, class edm::ESHandle &) const' assert(epfuncre.search(f)) skipfunc = re.compile(r"TGraph::IsA\(.*\)")