From: Anna Zaks Date: Thu, 18 Aug 2011 02:05:18 +0000 (+0000) Subject: Fix a regression form r137894. Make sure the custom BugReporterVisitors get registred... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f19eef86422b82e3415c56077f85085e0074e893;p=clang Fix a regression form r137894. Make sure the custom BugReporterVisitors get registred as they were in EnhancedBugReport. Would be good to add a test for this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137917 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h index 4e8a750e0e..356d7cab23 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h @@ -166,7 +166,10 @@ public: BugReporterContext &BR); virtual void registerInitialVisitors(BugReporterContext &BRC, - const ExplodedNode *N) {} + const ExplodedNode *N) { + for (Creators::iterator I = creators.begin(), E = creators.end(); I!=E; ++I) + I->first(BRC, I->second, N); + } }; //===----------------------------------------------------------------------===//