diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-22 23:36:59 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-07-22 23:36:59 +0000 |
commit | bdb84f374cde7736ca68d5db2c2ecf5468346710 (patch) | |
tree | 06ae6652b753c321b50df713f3a69b46240f38a8 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | eea7c267b9af73bec73949f99c43c4177a14a2f5 (diff) | |
download | llvm-bdb84f374cde7736ca68d5db2c2ecf5468346710.zip llvm-bdb84f374cde7736ca68d5db2c2ecf5468346710.tar.gz llvm-bdb84f374cde7736ca68d5db2c2ecf5468346710.tar.bz2 |
P0217R3: Parsing support and framework for AST representation of C++1z
decomposition declarations.
There are a couple of things in the wording that seem strange here:
decomposition declarations are permitted at namespace scope (which we partially
support here) and they are permitted as the declaration in a template (which we
reject).
llvm-svn: 276492
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 f73e85d..96bb5bf 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -3761,6 +3761,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { break; case Decl::Var: + case Decl::Decomposition: // Skip variable templates if (cast<VarDecl>(D)->getDescribedVarTemplate()) return; |