[cfe-commits] r137917 - /cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
Anna Zaks
ganna at apple.com
Wed Aug 17 19:05:18 PDT 2011
Author: zaks
Date: Wed Aug 17 21:05:18 2011
New Revision: 137917
URL: http://llvm.org/viewvc/llvm-project?rev=137917&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h?rev=137917&r1=137916&r2=137917&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h Wed Aug 17 21:05:18 2011
@@ -166,7 +166,10 @@
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);
+ }
};
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list