]> granicus.if.org Git - clang/commit
Improve diagnostic for using non-class/namespace/scoped enum in a nested name specifier.
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 9 Feb 2014 06:54:23 +0000 (06:54 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 9 Feb 2014 06:54:23 +0000 (06:54 +0000)
commit97e7a0350d369f8c8a55d1a3a1e10917363d0f1f
tree4055b28f67ba15390c575af42d4fd943a1592c5a
parentc809e1493facfee2a47e47d735c6db16a5c65ea4
Improve diagnostic for using non-class/namespace/scoped enum in a nested name specifier.

Rather than simply saying "X is not a class or namespace", clarify what
X is by providing the aka type in the case where X is a type, or
pointing to the named declaration if there's an unambiguous one to refer
to. In the ambiguous case, the ambiguities are already enumerated
(though could be clarified by describing what kind of entities they are)

Included a few FIXMEs in tests where some further improvements could be
made.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201038 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaCXXScopeSpec.cpp
test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp
test/CXX/temp/temp.res/temp.local/p3.cpp
test/SemaCXX/constructor-initializer.cpp
test/SemaCXX/member-pointer.cpp
test/SemaCXX/nested-name-spec.cpp
test/SemaObjCXX/propert-dot-error.mm