class PragmaCommentDecl
Declaration
class PragmaCommentDecl : public Decl, private TrailingObjects { /* full declaration omitted */ };
Description
Represents a `#pragma comment` line. Always a child of TranslationUnitDecl.
Declared at: clang/include/clang/AST/Decl.h:138
Inherits from: Decl, TrailingObjects
Member Variables
- private clang::PragmaMSCommentKind CommentKind
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- public static clang::PragmaCommentDecl * Create(const clang::ASTContext & C, clang::TranslationUnitDecl * DC, clang::SourceLocation CommentLoc, clang::PragmaMSCommentKind CommentKind, llvm::StringRef Arg)
- public static clang::PragmaCommentDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID, unsigned int ArgSize)
- private PragmaCommentDecl(clang::TranslationUnitDecl * TU, clang::SourceLocation CommentLoc, clang::PragmaMSCommentKind CommentKind)
- private virtual void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public llvm::StringRef getArg() const
- public clang::PragmaMSCommentKind getCommentKind() const
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::PragmaCommentDecl* Create(
const clang::ASTContext& C,
clang::TranslationUnitDecl* DC,
clang::SourceLocation CommentLoc,
clang::PragmaMSCommentKind CommentKind,
llvm::StringRef Arg)
static clang::PragmaCommentDecl* Create(
const clang::ASTContext& C,
clang::TranslationUnitDecl* DC,
clang::SourceLocation CommentLoc,
clang::PragmaMSCommentKind CommentKind,
llvm::StringRef Arg)
Declared at: clang/include/clang/AST/Decl.h:154
Parameters
- const clang::ASTContext& C
- clang::TranslationUnitDecl* DC
- clang::SourceLocation CommentLoc
- clang::PragmaMSCommentKind CommentKind
- llvm::StringRef Arg
¶static clang::PragmaCommentDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID,
unsigned int ArgSize)
static clang::PragmaCommentDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID,
unsigned int ArgSize)
Declared at: clang/include/clang/AST/Decl.h:158
Parameters
- clang::ASTContext& C
- unsigned int ID
- unsigned int ArgSize
¶PragmaCommentDecl(
clang::TranslationUnitDecl* TU,
clang::SourceLocation CommentLoc,
clang::PragmaMSCommentKind CommentKind)
PragmaCommentDecl(
clang::TranslationUnitDecl* TU,
clang::SourceLocation CommentLoc,
clang::PragmaMSCommentKind CommentKind)
Declared at: clang/include/clang/AST/Decl.h:147
Parameters
- clang::TranslationUnitDecl* TU
- clang::SourceLocation CommentLoc
- clang::PragmaMSCommentKind CommentKind
¶virtual void anchor()
virtual void anchor()
Declared at: clang/include/clang/AST/Decl.h:151
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/Decl.h:166
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/Decl.h:167
Parameters
- clang::Decl::Kind K
¶llvm::StringRef getArg() const
llvm::StringRef getArg() const
Declared at: clang/include/clang/AST/Decl.h:163
¶clang::PragmaMSCommentKind getCommentKind() const
clang::PragmaMSCommentKind getCommentKind() const
Declared at: clang/include/clang/AST/Decl.h:161