]> granicus.if.org Git - clang/commit
Persist the TextDiagnostic object across multiple diagnostics as long as
authorChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 02:57:39 +0000 (02:57 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 02:57:39 +0000 (02:57 +0000)
commit21a869aace45586125238fde88c477b330618a0b
tree0a0c93e7dc3a5253ebddab6658d95c18c1d91191
parent7531f571808201d44002fa38b67ee0a81e5ae936
Persist the TextDiagnostic object across multiple diagnostics as long as
the SourceManager doesn't change, and the source files don't change.
This greatly simplifies the interfaces and interactions. The lifetime of
the TextDiagnostic object forms the 'session' over which we attempt to
condense and deduplicate information in diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142104 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/TextDiagnostic.h
include/clang/Frontend/TextDiagnosticPrinter.h
lib/Frontend/TextDiagnostic.cpp
lib/Frontend/TextDiagnosticPrinter.cpp