[PATCH] [Concepts] Parsing of requires-clause in template-declaration

Hubert Tong hubert.reinterpretcast at gmail.com
Mon Jun 15 16:56:38 PDT 2015


Hi rsmith, faisalv, fraggamuffin,

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.

http://reviews.llvm.org/D10462

Files:
  include/clang/Parse/Parser.h
  lib/Parse/ParseExpr.cpp
  lib/Parse/ParseTemplate.cpp
  test/Parser/cxx-concepts-ambig-constraint-expr.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10462.27727.patch
Type: text/x-patch
Size: 4337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150615/eae2a101/attachment.bin>


More information about the cfe-commits mailing list