clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::StaticAssertDecl Class Reference

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

#include <DeclCXX.h>

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

List of all members.

Public Member Functions

ExprgetAssertExpr ()
const ExprgetAssertExpr () const
StringLiteralgetMessage ()
const StringLiteralgetMessage () const
bool isFailed () const
SourceLocation getRParenLoc () const
SourceRange getSourceRange () const override LLVM_READONLY
 Source range that this declaration covers.

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 3151 of file DeclCXX.h.


Member Function Documentation

static bool clang::StaticAssertDecl::classof ( const Decl D) [inline, static]

Definition at line 3185 of file DeclCXX.h.

References classofKind(), and clang::Decl::getKind().

static bool clang::StaticAssertDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::Decl.

Definition at line 3186 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 2153 of file DeclCXX.cpp.

References AttributeLangSupport::C.

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

Definition at line 2163 of file DeclCXX.cpp.

References AttributeLangSupport::C.

Definition at line 3171 of file DeclCXX.h.

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

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

Definition at line 3172 of file DeclCXX.h.

Definition at line 3174 of file DeclCXX.h.

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

Definition at line 3175 of file DeclCXX.h.

Definition at line 3179 of file DeclCXX.h.

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

SourceRange clang::StaticAssertDecl::getSourceRange ( ) const [inline, override, virtual]

Source range that this declaration covers.

Reimplemented from clang::Decl.

Definition at line 3181 of file DeclCXX.h.

References clang::Decl::getLocation(), and getRParenLoc().

Definition at line 3177 of file DeclCXX.h.

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


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::Decl.

Definition at line 3188 of file DeclCXX.h.


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