clang API Documentation
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTDiagnostic.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ExprObjC.h"
#include "clang/AST/Stmt.h"
#include "clang/AST/StmtCXX.h"
#include "clang/AST/StmtObjC.h"
#include "clang/AST/StmtOpenMP.h"
#include "clang/AST/Type.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/Token.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "clang/AST/StmtNodes.inc"
#include "clang/Basic/OpenMPKinds.def"
Go to the source code of this file.
Classes | |
struct | StmtClassNameTable |
Defines | |
#define | ABSTRACT_STMT(STMT) |
#define | STMT(CLASS, PARENT) |
#define | ASSERT_IMPLEMENTS_children(type) (void) is_good(implements_children(&type::children)) |
#define | ASSERT_IMPLEMENTS_getLocStart(type) (void) is_good(implements_getLocStart(&type::getLocStart)) |
#define | ASSERT_IMPLEMENTS_getLocEnd(type) (void) is_good(implements_getLocEnd(&type::getLocEnd)) |
#define | ABSTRACT_STMT(type) |
#define | STMT(type, base) |
#define | ABSTRACT_STMT(type) |
#define | STMT(type, base) |
#define | ABSTRACT_STMT(type) |
#define | STMT(type, base) |
#define | ABSTRACT_STMT(type) |
#define | STMT(type, base) |
#define | ABSTRACT_STMT(type) |
#define | STMT(type, base) |
#define | OPENMP_CLAUSE(Name, Class) case OMPC_ ## Name : return static_cast<Class *>(this)->children(); |
Functions | |
static StmtClassNameTable & | getStmtInfoTableEntry (Stmt::StmtClass E) |
static LLVM_ATTRIBUTE_UNUSED void | check_implementations () |
static StringRef | copyIntoContext (const ASTContext &C, StringRef str) |
Variables | |
static struct StmtClassNameTable | StmtClassInfo [Stmt::lastStmtConstant+1] |
#define ABSTRACT_STMT | ( | STMT | ) |
#define ABSTRACT_STMT | ( | type | ) |
#define ABSTRACT_STMT | ( | type | ) |
#define ABSTRACT_STMT | ( | type | ) |
#define ABSTRACT_STMT | ( | type | ) |
#define ABSTRACT_STMT | ( | type | ) |
#define ASSERT_IMPLEMENTS_children | ( | type | ) | (void) is_good(implements_children(&type::children)) |
#define ASSERT_IMPLEMENTS_getLocEnd | ( | type | ) | (void) is_good(implements_getLocEnd(&type::getLocEnd)) |
#define ASSERT_IMPLEMENTS_getLocStart | ( | type | ) | (void) is_good(implements_getLocStart(&type::getLocStart)) |
#define OPENMP_CLAUSE | ( | Name, | |
Class | |||
) | case OMPC_ ## Name : return static_cast<Class *>(this)->children(); |
#define STMT | ( | CLASS, | |
PARENT | |||
) |
StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS);
#define STMT | ( | type, | |
base | |||
) |
ASSERT_IMPLEMENTS_children(type); \ ASSERT_IMPLEMENTS_getLocStart(type); \ ASSERT_IMPLEMENTS_getLocEnd(type);
#define STMT | ( | type, | |
base | |||
) |
case Stmt::type##Class: \ return static_cast<type*>(this)->children();
#define STMT | ( | type, | |
base | |||
) |
case Stmt::type##Class: \ return getSourceRangeImpl<type>(this, &type::getSourceRange);
#define STMT | ( | type, | |
base | |||
) |
case Stmt::type##Class: \ return static_cast<const type*>(this)->getLocStart();
#define STMT | ( | type, | |
base | |||
) |
case Stmt::type##Class: \ return static_cast<const type*>(this)->getLocEnd();
static LLVM_ATTRIBUTE_UNUSED void check_implementations | ( | ) | [inline, static] |
static StringRef copyIntoContext | ( | const ASTContext & | C, |
StringRef | str | ||
) | [static] |
Definition at line 720 of file Stmt.cpp.
References AttributeLangSupport::C.
static StmtClassNameTable& getStmtInfoTableEntry | ( | Stmt::StmtClass | E | ) | [static] |
Definition at line 36 of file Stmt.cpp.
References Initialized, and StmtClassInfo.
Referenced by clang::Stmt::addStmtClass(), clang::Stmt::getStmtClassName(), and clang::Stmt::PrintStats().
struct StmtClassNameTable StmtClassInfo[Stmt::lastStmtConstant+1] [static] |
Referenced by getStmtInfoTableEntry(), and clang::Stmt::PrintStats().