Improve diagnosis of unknown template name.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 May 2017 21:32:16 +0000 (21:32 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 May 2017 21:32:16 +0000 (21:32 +0000)
commit52f8d19ceda6a166497e71c5faaa6a4c07f0bbef
treedcd9e6f5c963c8caf7c5823353c1ac8722c587f0
parent80f8cfb37fbe8081f4cae591ca8189126f0fcba9
Improve diagnosis of unknown template name.

When an undeclared identifier in a context that requires a type is followed by
'<', only look for type templates when typo-correcting, tweak the diagnostic
text to say that a template name (not a type name) was undeclared, and parse
the template arguments when recovering from the error.

llvm-svn: 302732
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaCXX/invalid-member-expr.cpp
clang/test/SemaCXX/typo-correction.cpp
clang/test/SemaTemplate/deduction-crash.cpp
clang/test/SemaTemplate/explicit-instantiation.cpp
clang/test/SemaTemplate/ms-lookup-template-base-classes.cpp