clang API Documentation
Represents a C++11 static_assert declaration. More...
#include <DeclCXX.h>


Public Member Functions | |
| Expr * | getAssertExpr () |
| const Expr * | getAssertExpr () const |
| StringLiteral * | getMessage () |
| const StringLiteral * | getMessage () const |
| bool | isFailed () const |
| SourceLocation | getRParenLoc () const |
| SourceRange | getSourceRange () const override LLVM_READONLY |
| Source range that this declaration covers. | |
Static Public Member Functions | |
| static StaticAssertDecl * | Create (ASTContext &C, DeclContext *DC, SourceLocation StaticAssertLoc, Expr *AssertExpr, StringLiteral *Message, SourceLocation RParenLoc, bool Failed) |
| static StaticAssertDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
| static bool | classof (const Decl *D) |
| static bool | classofKind (Kind K) |
Friends | |
| class | ASTDeclReader |
| 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] |
| 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().
| StaticAssertDecl * StaticAssertDecl::CreateDeserialized | ( | ASTContext & | C, |
| unsigned | ID | ||
| ) | [static] |
Definition at line 2163 of file DeclCXX.cpp.
References AttributeLangSupport::C.
| Expr* clang::StaticAssertDecl::getAssertExpr | ( | ) | [inline] |
Definition at line 3171 of file DeclCXX.h.
Referenced by clang::ASTDeclWriter::VisitStaticAssertDecl().
| const Expr* clang::StaticAssertDecl::getAssertExpr | ( | ) | const [inline] |
| StringLiteral* clang::StaticAssertDecl::getMessage | ( | ) | [inline] |
Definition at line 3174 of file DeclCXX.h.
Referenced by clang::ASTDeclWriter::VisitStaticAssertDecl().
| const StringLiteral* clang::StaticAssertDecl::getMessage | ( | ) | const [inline] |
| SourceLocation clang::StaticAssertDecl::getRParenLoc | ( | ) | const [inline] |
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().
| bool clang::StaticAssertDecl::isFailed | ( | ) | const [inline] |
Definition at line 3177 of file DeclCXX.h.
Referenced by clang::ASTDeclWriter::VisitStaticAssertDecl().
friend class ASTDeclReader [friend] |
Reimplemented from clang::Decl.