summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Diagnostic.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-04 17:27:36 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-04 17:27:36 +0000
commit2ada0489755755eaa99b94b2976c76e27f836fae (patch)
tree63b4a7b5d322f52bacd460ed7d8a2099441e3f62 /clang/lib/Basic/Diagnostic.cpp
parent189d41f625ebe2bfbb6dda5657cd4cb819dcd2b3 (diff)
downloadbcm5719-llvm-2ada0489755755eaa99b94b2976c76e27f836fae.tar.gz
bcm5719-llvm-2ada0489755755eaa99b94b2976c76e27f836fae.zip
Some name-lookup-related fixes, from Piotr Rak!
- Changes Lookup*Name functions to return NamedDecls, instead of Decls. Unfortunately my recent statement that it will simplify lot of code, was not quite right, but it simplifies some... - Makes MergeLookupResult SmallPtrSet instead of vector, following Douglas suggestions. - Adds %qN format for printing qualified names to Diagnostic. - Avoids searching for using-directives in Scopes, which are not DeclScope, during unqualified name lookup. llvm-svn: 63739
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r--clang/lib/Basic/Diagnostic.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp
index 5b1145f70b8..2429bddfebc 100644
--- a/clang/lib/Basic/Diagnostic.cpp
+++ b/clang/lib/Basic/Diagnostic.cpp
@@ -608,6 +608,7 @@ FormatDiagnostic(llvm::SmallVectorImpl<char> &OutStr) const {
}
case Diagnostic::ak_qualtype:
case Diagnostic::ak_declarationname:
+ case Diagnostic::ak_nameddecl:
OutStr.push_back('\'');
getDiags()->ConvertArgToString(getArgKind(ArgNo), getRawArg(ArgNo),
Modifier, ModifierLen,
OpenPOWER on IntegriCloud