diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-04 12:31:12 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-04 12:31:12 +0000 |
commit | 3307c508c932ad6f9686b15f187c06da21306c27 (patch) | |
tree | 0e57cb0912a3e0c8fdc14f72db3eb2fdfd16e008 /clang/lib/AST/NestedNameSpecifier.cpp | |
parent | 728ed3f3869d5f781c9e3f140bc2a5dbd911f9ab (diff) | |
download | bcm5719-llvm-3307c508c932ad6f9686b15f187c06da21306c27.tar.gz bcm5719-llvm-3307c508c932ad6f9686b15f187c06da21306c27.zip |
Move various diagnostic operator<< overloads out of line and remove includes of Diagnostic.h.
Fix all the files that depended on transitive includes of Diagnostic.h.
With this patch in place changing a diagnostic no longer requires a full rebuild of the StaticAnalyzer.
llvm-svn: 149781
Diffstat (limited to 'clang/lib/AST/NestedNameSpecifier.cpp')
-rw-r--r-- | clang/lib/AST/NestedNameSpecifier.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/AST/NestedNameSpecifier.cpp b/clang/lib/AST/NestedNameSpecifier.cpp index c59d40a8c2b..9b714ed7e88 100644 --- a/clang/lib/AST/NestedNameSpecifier.cpp +++ b/clang/lib/AST/NestedNameSpecifier.cpp @@ -18,6 +18,7 @@ #include "clang/AST/PrettyPrinter.h" #include "clang/AST/Type.h" #include "clang/AST/TypeLoc.h" +#include "clang/Basic/Diagnostic.h" #include "llvm/Support/raw_ostream.h" #include <cassert> @@ -639,3 +640,9 @@ NestedNameSpecifierLocBuilder::getWithLocInContext(ASTContext &Context) const { return NestedNameSpecifierLoc(Representation, Mem); } +const DiagnosticBuilder &clang::operator<<(const DiagnosticBuilder &DB, + NestedNameSpecifier *NNS) { + DB.AddTaggedVal(reinterpret_cast<intptr_t>(NNS), + DiagnosticsEngine::ak_nestednamespec); + return DB; +} |