]> granicus.if.org Git - clang/commitdiff
Fix a regression form r137894. Make sure the custom BugReporterVisitors get registred...
authorAnna Zaks <ganna@apple.com>
Thu, 18 Aug 2011 02:05:18 +0000 (02:05 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 18 Aug 2011 02:05:18 +0000 (02:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137917 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h

index 4e8a750e0e193c9a6782a79f7e5fa8d0673fc594..356d7cab2390a8436f11cfd58ab0ce95ed237996 100644 (file)
@@ -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);
+  }
 };
 
 //===----------------------------------------------------------------------===//