]> granicus.if.org Git - clang/commit
[Concepts] Parsing of requires-clause in template-declaration
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 25 Jun 2015 00:23:39 +0000 (00:23 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 25 Jun 2015 00:23:39 +0000 (00:23 +0000)
commit275c0055cf5c3e39f33cf4446921c8946dbf81c6
tree88d457e4df38cfca6883544ec0ffca3c9daa3984
parent56325ae29f728cabec6e25d72a3e12a102c73984
[Concepts] Parsing of requires-clause in template-declaration

Summary:
This change implements parse-only acceptance of the optional
requires-clause in a template-declaration. Diagnostic testing is added
for cases where the grammar is ambiguous with the expectation that the
longest token sequence which matches the syntax of a
constraint-expression is consumed without backtracking.

Reviewers: faisalv, fraggamuffin, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D10462

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240611 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseExpr.cpp
lib/Parse/ParseTemplate.cpp
test/Parser/cxx-concepts-ambig-constraint-expr.cpp [new file with mode: 0644]
test/Parser/cxx-concepts-requires-clause.cpp [new file with mode: 0644]