]> granicus.if.org Git - clang/commit
PathDiagnosticClients now retain ownership of passed PathDiagnostics, requiring
authorTed Kremenek <kremenek@apple.com>
Tue, 22 Apr 2008 16:15:03 +0000 (16:15 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 22 Apr 2008 16:15:03 +0000 (16:15 +0000)
commit5585114307b6ba4874546212cb6e5399cfff7ffb
tree78ae330d04a81719d4b7b155fdb9d753f9f0f37f
parent5fc073fe3be1830c4479253b59ccd45eb5614c55
PathDiagnosticClients now retain ownership of passed PathDiagnostics, requiring
them to not be stack-allocated.

HTMLDiagnostics now batches PathDiagnostics before emitting HTML in its dtor.
This is a workaround for a problem when we trampled the Preprocessor state
when highlighting macros (sometimes resulting in an assertion failure).

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