]> granicus.if.org Git - clang/commit
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)
commit9986cce3eacfd5d6f9eea1acc3f07943425b3a22
tree5f389c697e28ea27644f28689b1eff286784e2ec
parent84e1942597fa8b34584a6fc1cceb4abf0e4eb0ca
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302732 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Parse/ParseDecl.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplate.cpp
test/SemaCXX/invalid-member-expr.cpp
test/SemaCXX/typo-correction.cpp
test/SemaTemplate/deduction-crash.cpp
test/SemaTemplate/explicit-instantiation.cpp
test/SemaTemplate/ms-lookup-template-base-classes.cpp