diff options
| author | Faisal Vali <faisalv@yahoo.com> | 2018-04-25 02:42:26 +0000 |
|---|---|---|
| committer | Faisal Vali <faisalv@yahoo.com> | 2018-04-25 02:42:26 +0000 |
| commit | 936de9d666009ddce7bedc5b073bc06c860d5f5b (patch) | |
| tree | 440e812f02457e38b03ebed89c36ecfc22a052a3 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | e21278d93805689c5e5d6bb1d52a8d907fd7ba5c (diff) | |
| download | llvm-936de9d666009ddce7bedc5b073bc06c860d5f5b.zip llvm-936de9d666009ddce7bedc5b073bc06c860d5f5b.tar.gz llvm-936de9d666009ddce7bedc5b073bc06c860d5f5b.tar.bz2 | |
[c++2a] [concepts] Add rudimentary parsing support for template concept declarations
This patch is a tweak of changyu's patch: https://reviews.llvm.org/D40381. It differs in that the recognition of the 'concept' token is moved into the machinery that recognizes declaration-specifiers - this allows us to leverage the attribute handling machinery more seamlessly.
See the test file to get a sense of the basic parsing that this patch supports.
There is much more work to be done before concepts are usable...
Thanks Changyu!
llvm-svn: 330794
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 063b9be..b8bed33 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -4423,6 +4423,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { case Decl::TypeAliasTemplate: case Decl::Block: case Decl::Empty: + case Decl::Concept: break; case Decl::Using: // using X; [C++] if (CGDebugInfo *DI = getModuleDebugInfo()) |
