This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by hubert.reinterpretcast on Jun 15 2015, 4:56 PM.

Details

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.

Diff Detail

Event Timeline

hubert.reinterpretcast retitled this revision from to [Concepts] Parsing of requires-clause in template-declaration.
hubert.reinterpretcast updated this object.
hubert.reinterpretcast edited the test plan for this revision. (Show Details)
hubert.reinterpretcast added a subscriber: Unknown Object (MLST).

Update to use BCPL comments for C++ test case

rsmith edited edge metadata.Jun 18 2015, 8:46 PM

The code change looks fine. Please add some testcases covering valid constructs too (one of each kind of template, perhaps?).

hubert.reinterpretcast edited edge metadata.

Add tests (with various kinds of template) for valid cases of the requires-clause of a template-declaration.

rsmith accepted this revision.Jun 24 2015, 3:46 PM
rsmith edited edge metadata.
This revision is now accepted and ready to land.Jun 24 2015, 3:46 PM