[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
Showing
- include/clang/Parse/Parser.h 1 addition, 0 deletionsinclude/clang/Parse/Parser.h
- lib/Parse/ParseExpr.cpp 18 additions, 0 deletionslib/Parse/ParseExpr.cpp
- lib/Parse/ParseTemplate.cpp 12 additions, 1 deletionlib/Parse/ParseTemplate.cpp
- test/Parser/cxx-concepts-ambig-constraint-expr.cpp 29 additions, 0 deletionstest/Parser/cxx-concepts-ambig-constraint-expr.cpp
- test/Parser/cxx-concepts-requires-clause.cpp 82 additions, 0 deletionstest/Parser/cxx-concepts-requires-clause.cpp
Loading
Please register or sign in to comment