]> granicus.if.org Git - clang/commit
Refactor BugReporter interface to have a new 'BugReporterContext' and
authorTed Kremenek <kremenek@apple.com>
Wed, 6 May 2009 21:39:49 +0000 (21:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 6 May 2009 21:39:49 +0000 (21:39 +0000)
commit8966bc1c8ce271c09936c0eaf6c841aef4a0af1b
treebd37bd8c186718edf20db216c0fec201bfb0f4ba
parent1c4483065b52383bb8e501e3a1e7c4f5628921cb
Refactor BugReporter interface to have a new 'BugReporterContext' and
'BugReporterVisitor'. This simplifies callbacks from BugReporter to BugReports
(via VisitNode). It also lays the foundation for arbitrary visitor "call backs"
that can be registered to a BugReporterContext as a PathDiagnostic is
constructed. These call backs can help operate as separate "experts" that can
work on constructed pieces of a PathDiagnostic for which they possess special
knowledge.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71121 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/PathSensitive/BugReporter.h
lib/Analysis/BugReporter.cpp
lib/Analysis/CFRefCount.cpp