clang  3.9.0
Classes | Macros | Functions | Variables
Stmt.cpp File Reference
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTDiagnostic.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ExprObjC.h"
#include "clang/AST/ExprOpenMP.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 dependency graph for Stmt.cpp:

Go to the source code of this file.

Classes

struct  StmtClassNameTable
 

Macros

#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)
 

Functions

static StmtClassNameTablegetStmtInfoTableEntry (Stmt::StmtClass E)
 
static LLVM_ATTRIBUTE_UNUSED void check_implementations ()
 Check whether the various Stmt classes implement their member functions. More...
 
static StringRef copyIntoContext (const ASTContext &C, StringRef str)
 

Variables

static struct StmtClassNameTable StmtClassInfo [Stmt::lastStmtConstant+1]
 

Macro Definition Documentation

#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))

Definition at line 188 of file Stmt.cpp.

#define ASSERT_IMPLEMENTS_getLocEnd (   type)    (void) is_good(implements_getLocEnd(&type::getLocEnd))

Definition at line 192 of file Stmt.cpp.

#define ASSERT_IMPLEMENTS_getLocStart (   type)    (void) is_good(implements_getLocStart(&type::getLocStart))

Definition at line 190 of file Stmt.cpp.

#define STMT (   CLASS,
  PARENT 
)
Value:
StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \
StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS);
static struct StmtClassNameTable StmtClassInfo[Stmt::lastStmtConstant+1]
class LLVM_ALIGNAS(8) DependentTemplateSpecializationType const IdentifierInfo * Name
Represents a template specialization type whose template cannot be resolved, e.g. ...
Definition: Type.h:4549
#define STMT (   type,
  base 
)
Value:
#define ASSERT_IMPLEMENTS_getLocStart(type)
Definition: Stmt.cpp:190
#define ASSERT_IMPLEMENTS_children(type)
Definition: Stmt.cpp:188
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
Definition: ASTMatchers.h:1983
#define ASSERT_IMPLEMENTS_getLocEnd(type)
Definition: Stmt.cpp:192
#define STMT (   type,
  base 
)
Value:
return static_cast<type*>(this)->children();
return(__x >> __y)|(__x<< (32-__y))
child_range children()
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
Definition: ASTMatchers.h:1983
#define STMT (   type,
  base 
)
Value:
return getSourceRangeImpl<type>(this, &type::getSourceRange);
return(__x >> __y)|(__x<< (32-__y))
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
Definition: ASTMatchers.h:1983
SourceRange getSourceRange(const SourceRange &Range)
Returns the SourceRange of a SourceRange.
Definition: FixIt.h:34
#define STMT (   type,
  base 
)
Value:
return static_cast<const type*>(this)->getLocStart();
return(__x >> __y)|(__x<< (32-__y))
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
Definition: ASTMatchers.h:1983
#define STMT (   type,
  base 
)
Value:
return static_cast<const type*>(this)->getLocEnd();
return(__x >> __y)|(__x<< (32-__y))
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
Definition: ASTMatchers.h:1983

Function Documentation

static LLVM_ATTRIBUTE_UNUSED void check_implementations ( )
inlinestatic

Check whether the various Stmt classes implement their member functions.

Definition at line 199 of file Stmt.cpp.

static StringRef copyIntoContext ( const ASTContext C,
StringRef  str 
)
static

Definition at line 729 of file Stmt.cpp.

static StmtClassNameTable& getStmtInfoTableEntry ( Stmt::StmtClass  E)
static

Definition at line 37 of file Stmt.cpp.

References E, Initialized, and StmtClassInfo.

Variable Documentation

struct StmtClassNameTable StmtClassInfo[Stmt::lastStmtConstant+1]
static

Referenced by getStmtInfoTableEntry().