clang  3.9.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::StaticAssertDecl Class Reference

Represents a C++11 static_assert declaration. More...

#include <DeclCXX.h>

Inheritance diagram for clang::StaticAssertDecl:
[legend]
Collaboration diagram for clang::StaticAssertDecl:
[legend]

Public Member Functions

ExprgetAssertExpr ()
 
const ExprgetAssertExpr () const
 
StringLiteralgetMessage ()
 
const StringLiteralgetMessage () const
 
bool isFailed () const
 
SourceLocation getRParenLoc () const
 
SourceRange getSourceRange () const override LLVM_READONLY
 

Static Public Member Functions

static StaticAssertDeclCreate (ASTContext &C, DeclContext *DC, SourceLocation StaticAssertLoc, Expr *AssertExpr, StringLiteral *Message, SourceLocation RParenLoc, bool Failed)
 
static StaticAssertDeclCreateDeserialized (ASTContext &C, unsigned ID)
 
static bool classof (const Decl *D)
 
static bool classofKind (Kind K)
 

Friends

class ASTDeclReader
 

Detailed Description

Represents a C++11 static_assert declaration.

Definition at line 3327 of file DeclCXX.h.

Member Function Documentation

static bool clang::StaticAssertDecl::classof ( const Decl D)
inlinestatic

Definition at line 3361 of file DeclCXX.h.

References classofKind().

static bool clang::StaticAssertDecl::classofKind ( Kind  K)
inlinestatic

Definition at line 3362 of file DeclCXX.h.

Referenced by classof().

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

Definition at line 2304 of file DeclCXX.cpp.

References AttributeLangSupport::C.

Referenced by clang::Sema::BuildStaticAssertDeclaration().

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

Definition at line 2314 of file DeclCXX.cpp.

References AttributeLangSupport::C, and ID.

Expr* clang::StaticAssertDecl::getAssertExpr ( )
inline

Definition at line 3347 of file DeclCXX.h.

Referenced by clang::ASTDeclWriter::VisitStaticAssertDecl().

const Expr* clang::StaticAssertDecl::getAssertExpr ( ) const
inline

Definition at line 3348 of file DeclCXX.h.

StringLiteral* clang::StaticAssertDecl::getMessage ( )
inline

Definition at line 3350 of file DeclCXX.h.

Referenced by clang::ASTDeclWriter::VisitStaticAssertDecl().

const StringLiteral* clang::StaticAssertDecl::getMessage ( ) const
inline

Definition at line 3351 of file DeclCXX.h.

SourceLocation clang::StaticAssertDecl::getRParenLoc ( ) const
inline

Definition at line 3355 of file DeclCXX.h.

Referenced by getSourceRange(), and clang::ASTDeclWriter::VisitStaticAssertDecl().

SourceRange clang::StaticAssertDecl::getSourceRange ( ) const
inlineoverride

Definition at line 3357 of file DeclCXX.h.

References getRParenLoc().

bool clang::StaticAssertDecl::isFailed ( ) const
inline

Definition at line 3353 of file DeclCXX.h.

Referenced by clang::ASTDeclWriter::VisitStaticAssertDecl().

Friends And Related Function Documentation

friend class ASTDeclReader
friend

Definition at line 3364 of file DeclCXX.h.


The documentation for this class was generated from the following files: