class StaticAssertDecl

Declaration

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

Description

Represents a C++11 static_assert declaration.

Declared at: clang/include/clang/AST/DeclCXX.h:3943

Inherits from: Decl

Member Variables

private llvm::PointerIntPair<Expr*, 1, bool> AssertExprAndFailed
private clang::StringLiteral* Message
private clang::SourceLocation RParenLoc

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • public static clang::StaticAssertDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation StaticAssertLoc, clang::Expr * AssertExpr, clang::StringLiteral * Message, clang::SourceLocation RParenLoc, bool Failed)
  • public static clang::StaticAssertDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • private StaticAssertDecl(clang::DeclContext * DC, clang::SourceLocation StaticAssertLoc, clang::Expr * AssertExpr, clang::StringLiteral * Message, clang::SourceLocation RParenLoc, bool Failed)
  • private virtual void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::Expr * getAssertExpr()
  • public const clang::Expr * getAssertExpr() const
  • public clang::StringLiteral * getMessage()
  • public const clang::StringLiteral * getMessage() const
  • public clang::SourceLocation getRParenLoc() const
  • public clang::SourceRange getSourceRange() const
  • public bool isFailed() const

Inherited from Decl:

Methods

static clang::StaticAssertDecl* Create(
    clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::SourceLocation StaticAssertLoc,
    clang::Expr* AssertExpr,
    clang::StringLiteral* Message,
    clang::SourceLocation RParenLoc,
    bool Failed)

Declared at: clang/include/clang/AST/DeclCXX.h:3960

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::SourceLocation StaticAssertLoc
clang::Expr* AssertExpr
clang::StringLiteral* Message
clang::SourceLocation RParenLoc
bool Failed

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

Declared at: clang/include/clang/AST/DeclCXX.h:3964

Parameters

clang::ASTContext& C
unsigned int ID

StaticAssertDecl(
    clang::DeclContext* DC,
    clang::SourceLocation StaticAssertLoc,
    clang::Expr* AssertExpr,
    clang::StringLiteral* Message,
    clang::SourceLocation RParenLoc,
    bool Failed)

Declared at: clang/include/clang/AST/DeclCXX.h:3948

Parameters

clang::DeclContext* DC
clang::SourceLocation StaticAssertLoc
clang::Expr* AssertExpr
clang::StringLiteral* Message
clang::SourceLocation RParenLoc
bool Failed

virtual void anchor()

Declared at: clang/include/clang/AST/DeclCXX.h:3955

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

Declared at: clang/include/clang/AST/DeclCXX.h:3980

Parameters

const clang::Decl* D

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

Declared at: clang/include/clang/AST/DeclCXX.h:3981

Parameters

clang::Decl::Kind K

clang::Expr* getAssertExpr()

Declared at: clang/include/clang/AST/DeclCXX.h:3966

const clang::Expr* getAssertExpr() const

Declared at: clang/include/clang/AST/DeclCXX.h:3967

clang::StringLiteral* getMessage()

Declared at: clang/include/clang/AST/DeclCXX.h:3969

const clang::StringLiteral* getMessage() const

Declared at: clang/include/clang/AST/DeclCXX.h:3970

clang::SourceLocation getRParenLoc() const

Declared at: clang/include/clang/AST/DeclCXX.h:3974

clang::SourceRange getSourceRange() const

Description

Source range that this declaration covers.

Declared at: clang/include/clang/AST/DeclCXX.h:3976

bool isFailed() const

Declared at: clang/include/clang/AST/DeclCXX.h:3972