class FileScopeAsmDecl

Declaration

class FileScopeAsmDecl : public Decl { /* full declaration omitted */ };

Description

Decl - This represents one declaration (or definition), e.g. a variable, typedef, function, struct, etc. Note: There are objects tacked on before the *beginning* of Decl (and its subclasses) in its Decl::operator new(). Proper alignment of all subclasses (not requiring more than the alignment of Decl) is asserted in DeclBase.cpp.

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

Inherits from: Decl

Member Variables

private clang::StringLiteral* AsmString
private clang::SourceLocation RParenLoc

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • public static clang::FileScopeAsmDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::StringLiteral * Str, clang::SourceLocation AsmLoc, clang::SourceLocation RParenLoc)
  • public static clang::FileScopeAsmDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • private FileScopeAsmDecl(clang::DeclContext * DC, clang::StringLiteral * asmstring, clang::SourceLocation StartL, clang::SourceLocation EndL)
  • private virtual void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::SourceLocation getAsmLoc() const
  • public const clang::StringLiteral * getAsmString() const
  • public clang::StringLiteral * getAsmString()
  • public clang::SourceLocation getRParenLoc() const
  • public clang::SourceRange getSourceRange() const
  • public void setAsmString(clang::StringLiteral * Asm)
  • public void setRParenLoc(clang::SourceLocation L)

Inherited from Decl:

Methods

static clang::FileScopeAsmDecl* Create(
    clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::StringLiteral* Str,
    clang::SourceLocation AsmLoc,
    clang::SourceLocation RParenLoc)

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

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::StringLiteral* Str
clang::SourceLocation AsmLoc
clang::SourceLocation RParenLoc

static clang::FileScopeAsmDecl*
CreateDeserialized(clang::ASTContext& C,
                   unsigned int ID)

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

Parameters

clang::ASTContext& C
unsigned int ID

FileScopeAsmDecl(clang::DeclContext* DC,
                 clang::StringLiteral* asmstring,
                 clang::SourceLocation StartL,
                 clang::SourceLocation EndL)

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

Parameters

clang::DeclContext* DC
clang::StringLiteral* asmstring
clang::SourceLocation StartL
clang::SourceLocation EndL

virtual void anchor()

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

static bool classof(const clang::Decl* D)

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

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

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

Parameters

clang::Decl::Kind K

clang::SourceLocation getAsmLoc() const

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

const clang::StringLiteral* getAsmString() const

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

clang::StringLiteral* getAsmString()

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

clang::SourceLocation getRParenLoc() const

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

clang::SourceRange getSourceRange() const

Description

Source range that this declaration covers.

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

void setAsmString(clang::StringLiteral* Asm)

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

Parameters

clang::StringLiteral* Asm

void setRParenLoc(clang::SourceLocation L)

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

Parameters

clang::SourceLocation L