]> granicus.if.org Git - clang/commitdiff
[AST][NFC] Add missing doc for ObjCMethodDecl and ObjCContainerDecl
authorBruno Ricci <riccibrun@gmail.com>
Fri, 3 Aug 2018 13:47:12 +0000 (13:47 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Fri, 3 Aug 2018 13:47:12 +0000 (13:47 +0000)
Add a comment in ObjCMethodDecl and ObjCContainerDecl stating that
we store some bits in ObjCMethodDeclBits and ObjCContainerDeclBits.

This was missed by the recent move in
r338641 : [AST][4/4] Move the bit-fields from ObjCMethodDecl
          and ObCContainerDecl into DeclContext

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338888 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 8a0452ee48040dbfdd469884cfb5c64ffdbde7c0..1ef34d129e9f0513742f31b2cdeb5e5d0181c671 100644 (file)
@@ -137,6 +137,9 @@ public:
 /// the above methods are setMenu:, menu, replaceSubview:with:, and defaultMenu.
 ///
 class ObjCMethodDecl : public NamedDecl, public DeclContext {
+  // This class stores some data in DeclContext::ObjCMethodDeclBits
+  // to save some space. Use the provided accessors to access it.
+
 public:
   enum ImplementationControl { None, Required, Optional };
 
@@ -953,6 +956,9 @@ public:
 /// ObjCProtocolDecl, and ObjCImplDecl.
 ///
 class ObjCContainerDecl : public NamedDecl, public DeclContext {
+  // This class stores some data in DeclContext::ObjCContainerDeclBits
+  // to save some space. Use the provided accessors to access it.
+
   // These two locations in the range mark the end of the method container.
   // The first points to the '@' token, and the second to the 'end' token.
   SourceRange AtEnd;