From 45d663da5615045d3c2da1b97ef06319055deb42 Mon Sep 17 00:00:00 2001 From: Faisal Vali Date: Wed, 25 Apr 2018 02:42:26 +0000 Subject: [c++2a] [concepts] Add rudimentary parsing support for template concept declarations This patch is a tweak of changyu's patch: https://reviews.llvm.org/D40381. It differs in that the recognition of the 'concept' token is moved into the machinery that recognizes declaration-specifiers - this allows us to leverage the attribute handling machinery more seamlessly. See the test file to get a sense of the basic parsing that this patch supports. There is much more work to be done before concepts are usable... Thanks Changyu! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330794 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Parse/ParseTentative.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Parse/ParseTentative.cpp') diff --git a/lib/Parse/ParseTentative.cpp b/lib/Parse/ParseTentative.cpp index ebd6f0f5b8..5648d994fc 100644 --- a/lib/Parse/ParseTentative.cpp +++ b/lib/Parse/ParseTentative.cpp @@ -1351,6 +1351,7 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult, case tok::kw_struct: case tok::kw_union: case tok::kw___interface: + case tok::kw_concept: // enum-specifier case tok::kw_enum: // cv-qualifier -- cgit v1.2.1