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:

Methods

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)

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)

Declared at: clang/include/clang/AST/Decl.h:147

Parameters

clang::TranslationUnitDecl* TU
clang::SourceLocation CommentLoc
clang::PragmaMSCommentKind CommentKind

virtual void anchor()

Declared at: clang/include/clang/AST/Decl.h:151

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)

Declared at: clang/include/clang/AST/Decl.h:167

Parameters

clang::Decl::Kind K

llvm::StringRef getArg() const

Declared at: clang/include/clang/AST/Decl.h:163

clang::PragmaMSCommentKind getCommentKind() const

Declared at: clang/include/clang/AST/Decl.h:161