[PATCH] D49790: [AST] Small doc update for DeclContext
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 3 06:31:50 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC338887: [AST][NFC] Small doc update for DeclContext (authored by brunoricci, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D49790
Files:
include/clang/AST/DeclBase.h
Index: include/clang/AST/DeclBase.h
===================================================================
--- include/clang/AST/DeclBase.h
+++ include/clang/AST/DeclBase.h
@@ -1250,16 +1250,29 @@
/// that directly derive from DeclContext are mentioned, not their subclasses):
///
/// TranslationUnitDecl
+/// ExternCContext
/// NamespaceDecl
-/// FunctionDecl
/// TagDecl
+/// OMPDeclareReductionDecl
+/// FunctionDecl
/// ObjCMethodDecl
/// ObjCContainerDecl
/// LinkageSpecDecl
/// ExportDecl
/// BlockDecl
-/// OMPDeclareReductionDecl
+/// CapturedDecl
class DeclContext {
+ /// For makeDeclVisibleInContextImpl
+ friend class ASTDeclReader;
+ /// For reconcileExternalVisibleStorage, CreateStoredDeclsMap,
+ /// hasNeedToReconcileExternalVisibleStorage
+ friend class ExternalASTSource;
+ /// For CreateStoredDeclsMap
+ friend class DependentDiagnostic;
+ /// For hasNeedToReconcileExternalVisibleStorage,
+ /// hasLazyLocalLexicalLookups, hasLazyExternalLexicalLookups
+ friend class ASTWriter;
+
// We use uint64_t in the bit-fields below since some bit-fields
// cross the unsigned boundary and this breaks the packing.
@@ -1716,10 +1729,6 @@
"BlockDeclBitfields is larger than 8 bytes!");
};
- friend class ASTDeclReader;
- friend class ASTWriter;
- friend class ExternalASTSource;
-
/// FirstDecl - The first declaration stored within this declaration
/// context.
mutable Decl *FirstDecl = nullptr;
@@ -2398,8 +2407,6 @@
DeclContextBits.HasLazyExternalLexicalLookups = HasLELL;
}
- friend class DependentDiagnostic;
-
void reconcileExternalVisibleStorage() const;
bool LoadLexicalDeclsFromExternalStorage() const;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49790.158996.patch
Type: text/x-patch
Size: 1734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180803/9d716af8/attachment.bin>
More information about the cfe-commits
mailing list