LLVM/project dbd82f3clang/docs ReleaseNotes.rst, clang/include/clang/AST NestedNameSpecifier.h

[clang] NNS: don't print trailing scope resolution operator in diagnostics (#130529)

This clears up the printing of a NestedNameSpecifier so a trailing '::'
is not printed, unless it refers into the global scope.

This fixes a bunch of diagnostics where the trailing :: was awkward.
This also prints the NNS quoted consistenty.

There is a drive-by improvement to error recovery, where now we print
the actual type instead of `<dependent type>`.

This will clear up further uses of NNS printing in further patches.
DeltaFile
+41-35clang/include/clang/Basic/DiagnosticSemaKinds.td
+20-14clang/lib/Sema/SemaExpr.cpp
+14-14clang/test/CXX/drs/cwg18xx.cpp
+11-11clang/test/CXX/temp/temp.res/temp.dep/p3.cpp
+10-10clang/test/SemaTemplate/template-id-expr.cpp
+10-10clang/test/CXX/drs/cwg2xx.cpp
+9-8clang/lib/Sema/SemaTemplate.cpp
+6-6clang/test/SemaCXX/cxx11-user-defined-literals.cpp
+6-6clang/test/CXX/drs/cwg6xx.cpp
+5-5clang/test/SemaTemplate/friend-template.cpp
+5-5clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p3.cpp
+6-3clang/lib/AST/NestedNameSpecifier.cpp
+4-4clang/test/CXX/class.access/class.friend/p6.cpp
+4-4clang/test/CXX/drs/cwg19xx.cpp
+4-4clang/lib/Sema/SemaDecl.cpp
+4-4clang/test/SemaCXX/using-decl-templates.cpp
+4-4clang/test/SemaTemplate/qualified-id.cpp
+4-3clang/docs/ReleaseNotes.rst
+3-3clang/test/CXX/drs/cwg5xx.cpp
+3-3clang/test/SemaCXX/PR62533.cpp
+3-2clang/lib/AST/ASTDiagnostic.cpp
+2-2clang/test/CXX/special/class.inhctor/elsewhere.cpp
+2-2clang/test/CXX/drs/cwg1xx.cpp
+2-2clang/test/CXX/dcl.decl/dcl.meaning/p1-0x.cpp
+2-2clang/test/CXX/drs/cwg14xx.cpp
+2-2clang/test/Parser/cxx2c-variadic-friends.cpp
+2-2clang/test/SemaCXX/cxx0x-defaulted-functions.cpp
+2-2clang/test/CXX/drs/cwg3xx.cpp
+2-2clang/test/SemaCXX/pr36536.cpp
+2-2clang/test/SemaObjCXX/propert-dot-error.mm
+2-1clang/include/clang/AST/NestedNameSpecifier.h
+1-1clang/test/CXX/class.access/class.access.dcl/p1.cpp
+1-1clang/test/CXX/drs/cwg28xx.cpp
+1-1clang/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp
+1-1clang/test/CXX/drs/cwg4xx.cpp
+1-1clang/test/CXX/class.access/class.friend/p3-cxx0x.cpp
+1-1clang/test/SemaTemplate/typename-specifier-3.cpp
+1-1clang/test/Parser/cxx-attributes.cpp
+1-1clang/test/SemaCXX/pr25181-crash-on-invalid.cpp
+1-1clang/test/SemaTemplate/ms-sizeof-missing-typename.cpp
+1-1clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp
+1-1clang/test/SemaTemplate/nested-template.cpp
+207-18842 files

UnifiedSplitRaw