]> granicus.if.org Git - clang/commit
Unify our diagnostic printing for errors of the form, "we didn't like
authorDouglas Gregor <dgregor@apple.com>
Tue, 13 Oct 2009 21:16:44 +0000 (21:16 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 13 Oct 2009 21:16:44 +0000 (21:16 +0000)
commit3f09327b26033d0a9676d52d80cf92c48f581aff
tree039a1889fa3bd411d947c5642da2182868e05489
parentcee1b54e11cb4d460634e6ecedbe75c7c2382389
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84028 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Basic/Diagnostic.cpp
lib/Sema/Sema.cpp
lib/Sema/Sema.h
lib/Sema/SemaCXXScopeSpec.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaTemplate.cpp
test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp
test/SemaCXX/missing-members.cpp
test/SemaCXX/nested-name-spec.cpp
test/SemaTemplate/typename-specifier.cpp