diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-13 21:16:44 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-13 21:16:44 +0000 |
commit | e40876a50cf32ab7c1281b01879f7a96fa1d57af (patch) | |
tree | d51d2f63e07609235474e3a5fa8e0bd729397d72 /clang/lib/Basic | |
parent | 18a956cb4ada28d85a59f3a2e26af3b7e4a7185b (diff) | |
download | bcm5719-llvm-e40876a50cf32ab7c1281b01879f7a96fa1d57af.tar.gz bcm5719-llvm-e40876a50cf32ab7c1281b01879f7a96fa1d57af.zip |
Unify our diagnostic printing for errors of the form, "we didn't like
what we found when we looked into <blah>", where <blah> is a
DeclContext*. We can now format DeclContext*'s in nice ways, e.g.,
"namespace N", "the global namespace", "'class Foo'".
This is part of PR3990, but we're not quite there yet.
llvm-svn: 84028
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 19f43e36a2f..4a29997a2cc 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -802,6 +802,7 @@ FormatDiagnostic(llvm::SmallVectorImpl<char> &OutStr) const { case Diagnostic::ak_declarationname: case Diagnostic::ak_nameddecl: case Diagnostic::ak_nestednamespec: + case Diagnostic::ak_declcontext: getDiags()->ConvertArgToString(getArgKind(ArgNo), getRawArg(ArgNo), Modifier, ModifierLen, Argument, ArgumentLen, OutStr); |