diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-12 02:21:25 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-12 02:21:25 +0000 |
commit | bcd0b9f9023b35616284426cc1e049c0a1232460 (patch) | |
tree | dbc18855aaf0f5fa3334dbdc12ea6e4744032a1a /include/clang | |
parent | eb66e2ffe787658976e133ab9a69d0e9a9cf3ac5 (diff) |
P0217R3: serialization/deserialization support for c++17 decomposition declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/DeclCXX.h | 3 | ||||
-rw-r--r-- | include/clang/Serialization/ASTBitCodes.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 48ada29bb6..5a692e97ce 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -3414,6 +3414,8 @@ public: static bool classof(const Decl *D) { return classofKind(D->getKind()); } static bool classofKind(Kind K) { return K == Decl::Binding; } + + friend class ASTDeclReader; }; /// A decomposition declaration. For instance, given: @@ -3463,6 +3465,7 @@ public: static bool classofKind(Kind K) { return K == Decomposition; } friend TrailingObjects; + friend class ASTDeclReader; }; /// An instance of this class represents the declaration of a property diff --git a/include/clang/Serialization/ASTBitCodes.h b/include/clang/Serialization/ASTBitCodes.h index cd71410d2c..47678a1637 100644 --- a/include/clang/Serialization/ASTBitCodes.h +++ b/include/clang/Serialization/ASTBitCodes.h @@ -1056,6 +1056,10 @@ namespace clang { DECL_IMPLICIT_PARAM, /// \brief A ParmVarDecl record. DECL_PARM_VAR, + /// \brief A DecompositionDecl record. + DECL_DECOMPOSITION, + /// \brief A BindingDecl record. + DECL_BINDING, /// \brief A FileScopeAsmDecl record. DECL_FILE_SCOPE_ASM, /// \brief A BlockDecl record. |