]> granicus.if.org Git - clang/commit
implement a transparent optimization with the diagnostics stuff:
authorChris Lattner <sabre@nondot.org>
Wed, 19 Nov 2008 06:04:55 +0000 (06:04 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 19 Nov 2008 06:04:55 +0000 (06:04 +0000)
commit73d2a1b05bb04ab0136af374ddaa5d4602d4c939
treef6790feb7751573760004a62ed847e8c1d134687
parentd064191a2d2932129b636aab66da12ff4e281840
implement a transparent optimization with the diagnostics stuff:
const char*'s are now not converted to std::strings when the diagnostic
is formed, we just hold onto their pointer and format as needed.

This commit makes DiagnosticClient::FormatDiagnostic even more of a
mess, I'll fix it in the next commit.

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