diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2015-06-30 12:14:52 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2015-06-30 12:14:52 +0000 |
commit | 375f00ad7bfb778005a82ef241f76bfe750d7582 (patch) | |
tree | 3adec1f7e5601d1339e6b3e9dc0bdacbba6a0fc9 /clang/lib/Parse/ParseTentative.cpp | |
parent | a87af7a32645e606b961e013d81f9152d059196f (diff) | |
download | bcm5719-llvm-375f00ad7bfb778005a82ef241f76bfe750d7582.tar.gz bcm5719-llvm-375f00ad7bfb778005a82ef241f76bfe750d7582.zip |
[CONCEPTS] Parsing of concept keyword
Summary: This change adds parsing for the concept keyword in a
declaration and tracks the location. Diagnostic testing added for
invalid use of concept keyword.
Reviewers: faisalv, fraggamuffin, rsmith, hubert.reinterpretcast
Reviewed By: rsmith, hubert.reinterpretcast
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D10528
Patch by Nathan Wilson!
llvm-svn: 241060
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r-- | clang/lib/Parse/ParseTentative.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp index 536e98c6831..368cb934bba 100644 --- a/clang/lib/Parse/ParseTentative.cpp +++ b/clang/lib/Parse/ParseTentative.cpp @@ -1213,9 +1213,11 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult, // 'friend' // 'typedef' // 'constexpr' + // 'concept' case tok::kw_friend: case tok::kw_typedef: case tok::kw_constexpr: + case tok::kw_concept: // storage-class-specifier case tok::kw_register: case tok::kw_static: |