[Concepts] Fix isDeclarationSpecifier to detect type-constraints correctly
authorSaar Raz <saar@raz.email>
Fri, 31 Jan 2020 18:05:09 +0000 (20:05 +0200)
committerSaar Raz <saar@raz.email>
Fri, 31 Jan 2020 18:08:13 +0000 (20:08 +0200)
commitb7ce85a130789d23c69156f4b899962458d1f05d
tree8fe9ac54392a50be00374273b057401f54406902
parent5702dadf6f574aa2a9dbfe1dfa44023cd37fc696
[Concepts] Fix isDeclarationSpecifier to detect type-constraints correctly

isDeclarationSpecifiers did not handle some cases of placeholder-type-specifiers with
type-constraints, causing parsing bugs in abbreviated constructor templates.

Add comprehensive handling of type-constraints to isDeclarationSpecifier.
clang/lib/Parse/ParseDecl.cpp
clang/test/Parser/cxx2a-abbreviated-templates.cpp