class MSGuidDecl
Declaration
class MSGuidDecl : public ValueDecl, public Mergeable, public Node { /* full declaration omitted */ };
Description
A global _GUID constant. These are implicitly created by UuidAttrs. struct _declspec(uuid("01234567-89ab-cdef-0123-456789abcdef")) X{}; X is a CXXRecordDecl that contains a UuidAttr that references the (unique) MSGuidDecl for the specified UUID.
Declared at: clang/include/clang/AST/DeclCXX.h:4172
Inherits from: ValueDecl, Mergeable, FoldingSetBase::Node
Member Variables
- private clang::MSGuidDecl::Parts PartVal
- The decomposed form of the UUID.
- private clang::APValue APVal
- The resolved value of the UUID as an APValue. Computed on demand and cached.
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- private static clang::MSGuidDecl * Create(const clang::ASTContext & C, clang::QualType T, clang::MSGuidDecl::Parts P)
- private static clang::MSGuidDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
- private MSGuidDecl(clang::DeclContext * DC, clang::QualType T, clang::MSGuidDecl::Parts P)
- public static void Profile(llvm::FoldingSetNodeID & ID, clang::MSGuidDecl::Parts P)
- public void Profile(llvm::FoldingSetNodeID & ID)
- private void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::APValue & getAsAPValue() const
- public clang::MSGuidDecl::Parts getParts() const
- public void printName(llvm::raw_ostream & OS) const
Inherited from FoldingSetBase::Node:
Inherited from ValueDecl:
Inherited from NamedDecl:
- public classof
- public classofKind
- public declarationReplaces
- public getDeclName
- public getExplicitVisibility
- public getFormalLinkage
- public getIdentifier
- public getLinkageAndVisibility
- public getLinkageInternal
- public getMostRecentDecl
- public getMostRecentDecl
- public getName
- public getNameAsString
- public getNameForDiagnostic
- public getObjCFStringFormattingFamily
- public getQualifiedNameAsString
- public getUnderlyingDecl
- public getUnderlyingDecl
- public getVisibility
- public hasExternalFormalLinkage
- public hasLinkage
- public hasLinkageBeenComputed
- public isCXXClassMember
- public isCXXInstanceMember
- public isExternallyDeclarable
- public isExternallyVisible
- public isLinkageValid
- public isReserved
- public printName
- public printNestedNameSpecifier
- public printNestedNameSpecifier
- public printQualifiedName
- public printQualifiedName
- public setDeclName
Inherited from Decl:
- public EnableStatistics
- public PrintStats
- public add
- public addAttr
- public attr_begin
- public attr_end
- public attrs
- public canBeWeakImported
- public castFromDeclContext
- public castToDeclContext
- public classofKind
- public dropAttr
- public dropAttrs
- public dump
- public dump
- public dumpColor
- public getASTContext
- protected getASTMutationListener
- public getAccess
- public getAccessUnsafe
- public getAsFunction
- public getAsFunction
- public getAttr
- public getAttrs
- public getAttrs
- public getAvailability
- public getBeginLoc
- public getBody
- public getBodyRBrace
- protected getCachedLinkage
- public getCanonicalDecl
- public getCanonicalDecl
- public getDeclContext
- public getDeclContext
- public getDeclKindName
- public getDefiningAttr
- public getDescribedTemplate
- public getDescribedTemplateParams
- public getEndLoc
- public getExternalSourceSymbolAttr
- public getFriendObjectKind
- public getFunctionType
- public getGlobalID
- public getID
- public getIdentifierNamespace
- public getIdentifierNamespaceForKind
- public getImportedOwningModule
- public getKind
- public getLangOpts
- public getLexicalDeclContext
- public getLexicalDeclContext
- public getLocalOwningModule
- public getLocation
- public getMaxAlignment
- public getModuleOwnershipKind
- public getMostRecentDecl
- public getMostRecentDecl
- protected getMostRecentDeclImpl
- public getNextDeclInContext
- public getNextDeclInContext
- protected getNextRedeclarationImpl
- public getNonClosureContext
- public getNonClosureContext
- public getOwningModule
- public getOwningModuleForLinkage
- public getOwningModuleID
- public getParentFunctionOrMethod
- public getParentFunctionOrMethod
- public getPreviousDecl
- public getPreviousDecl
- protected getPreviousDeclImpl
- public getSourceRange
- public getTemplateDepth
- public getTranslationUnitDecl
- public getTranslationUnitDecl
- public getVersionIntroduced
- public hasAttr
- public hasAttrs
- public hasBody
- protected hasCachedLinkage
- public hasDefiningAttr
- protected hasLocalOwningModuleStorage
- public hasOwningModule
- public hasTagIdentifierNamespace
- public isCanonicalDecl
- public isDefinedOutsideFunctionOrMethod
- public isDeprecated
- public isDiscardedInGlobalModuleFragment
- public isFirstDecl
- public isFromASTFile
- public isFunctionOrFunctionTemplate
- public isImplicit
- public isInAnonymousNamespace
- public isInExportDeclContext
- public isInIdentifierNamespace
- public isInLocalScopeForInstantiation
- public isInStdNamespace
- public isInvalidDecl
- public isInvisibleOutsideTheOwningModule
- public isLocalExternDecl
- public isModulePrivate
- public isOutOfLine
- public isParameterPack
- public isReachable
- public isReferenced
- public isTagIdentifierNamespace
- public isTemplateDecl
- public isTemplateParameter
- public isTemplateParameterPack
- public isTemplated
- public isThisDeclarationReferenced
- public isTopLevelDeclInObjCContainer
- public isUnavailable
- public isUnconditionallyVisible
- public isUsed
- public isWeakImported
- public markUsed
- public print
- public print
- public printGroup
- public redecls
- public redecls_begin
- public redecls_end
- public setAccess
- public setAttrs
- protected setCachedLinkage
- public setDeclContext
- public setFromASTFile
- public setImplicit
- public setInvalidDecl
- public setIsUsed
- public setLexicalDeclContext
- public setLocalExternDecl
- public setLocalOwningModule
- public setLocation
- public setModuleOwnershipKind
- protected setModulePrivate
- public setNonMemberOperator
- public setObjectOfFriendDecl
- public setOwningModuleID
- public setReferenced
- public setTopLevelDeclInObjCContainer
- public setVisibleDespiteOwningModule
- public specific_attr_begin
- public specific_attr_end
- public specific_attrs
- protected updateOutOfDate
Methods
¶static clang::MSGuidDecl* Create(
const clang::ASTContext& C,
clang::QualType T,
clang::MSGuidDecl::Parts P)
static clang::MSGuidDecl* Create(
const clang::ASTContext& C,
clang::QualType T,
clang::MSGuidDecl::Parts P)
Declared at: clang/include/clang/AST/DeclCXX.h:4190
Parameters
¶static clang::MSGuidDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID)
static clang::MSGuidDecl* CreateDeserialized(
clang::ASTContext& C,
unsigned int ID)
Declared at: clang/include/clang/AST/DeclCXX.h:4191
Parameters
- clang::ASTContext& C
- unsigned int ID
¶MSGuidDecl(clang::DeclContext* DC,
clang::QualType T,
clang::MSGuidDecl::Parts P)
MSGuidDecl(clang::DeclContext* DC,
clang::QualType T,
clang::MSGuidDecl::Parts P)
Declared at: clang/include/clang/AST/DeclCXX.h:4188
Parameters
¶static void Profile(llvm::FoldingSetNodeID& ID,
clang::MSGuidDecl::Parts P)
static void Profile(llvm::FoldingSetNodeID& ID,
clang::MSGuidDecl::Parts P)
Declared at: clang/include/clang/AST/DeclCXX.h:4210
Parameters
¶void Profile(llvm::FoldingSetNodeID& ID)
void Profile(llvm::FoldingSetNodeID& ID)
Declared at: clang/include/clang/AST/DeclCXX.h:4216
Parameters
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclCXX.h:4186
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclCXX.h:4218
Parameters
- const clang::Decl* D
¶static bool classofKind(clang::Decl::Kind K)
static bool classofKind(clang::Decl::Kind K)
Declared at: clang/include/clang/AST/DeclCXX.h:4219
Parameters
- clang::Decl::Kind K
¶clang::APValue& getAsAPValue() const
clang::APValue& getAsAPValue() const
Description
Get the value of this MSGuidDecl as an APValue. This may fail and return an absent APValue if the type of the declaration is not of the expected shape.
Declared at: clang/include/clang/AST/DeclCXX.h:4208
¶clang::MSGuidDecl::Parts getParts() const
clang::MSGuidDecl::Parts getParts() const
Description
Get the decomposed parts of this declaration.
Declared at: clang/include/clang/AST/DeclCXX.h:4203
¶void printName(llvm::raw_ostream& OS) const
void printName(llvm::raw_ostream& OS) const
Description
Print this UUID in a human-readable format.
Declared at: clang/include/clang/AST/DeclCXX.h:4200