Static Analyzer Diagnostics: Move custom diagnostic visitors from BugReporterContext to BugReport.
One API change: I added BugReporter as an additional parameter to the BugReporterVisitor::VisitNode() method to allow visitors register other visitors with the report on the fly (while processing a node). This functionality is used by NilReceiverVisitor, which registers TrackNullOrUndefValue when the receiver is null. llvm-svn: 138001
Showing
- clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h 45 additions, 36 deletions...clude/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
- clang/lib/StaticAnalyzer/Core/BugReporter.cpp 42 additions, 36 deletionsclang/lib/StaticAnalyzer/Core/BugReporter.cpp
- clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 36 additions, 31 deletionsclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
- clang/lib/StaticAnalyzer/Core/CFRefCount.cpp 4 additions, 2 deletionsclang/lib/StaticAnalyzer/Core/CFRefCount.cpp
Loading
Please register or sign in to comment