HomeSort by relevance Sort by last modified time
    Searched defs:STMT (Results 1 - 19 of 19) sorted by null

  /external/clang/include/clang/AST/
ASTFwd.h 23 class Stmt;
24 #define STMT(DERIVED, BASE) class DERIVED;
StmtVisitor.h 1 //===--- StmtVisitor.h - Visitor for Stmt subclasses ------------*- C++ -*-===//
29 /// StmtVisitorBase - This class implements a simple visitor for Stmt
30 /// subclasses. Since Expr derives from Stmt, this also includes support for
40 RetTy Visit(PTR(Stmt) S) {
43 // optimizer (e.g. LLVM) will fold this comparison into the switch stmt
101 // Top switch stmt: dispatch to VisitFooStmt for each FooStmt.
103 default: llvm_unreachable("Unknown stmt kind!");
104 #define ABSTRACT_STMT(STMT)
105 #define STMT(CLASS, PARENT) \
106 case Stmt::CLASS ## Class: DISPATCH(CLASS, CLASS)
    [all...]
ASTTypeTraits.h 22 #include "clang/AST/Stmt.h"
60 static ASTNodeKind getFromNode(const Stmt &S);
134 #define STMT(DERIVED, BASE) NKI_##DERIVED,
183 KIND_TO_KIND_ID(Stmt)
187 #define STMT(DERIVED, BASE) KIND_TO_KIND_ID(DERIVED)
224 /// (like \c Stmt, \c Decl, \c Type and \c NestedNameSpecifier) the returned
271 /// only Stmt, Decl, Type and NestedNameSpecifier return memoization data).
453 T, typename std::enable_if<std::is_base_of<Stmt, T>::value>::type>
454 : public DynCastPtrConverter<T, Stmt> {};
RecursiveASTVisitor.h 31 #include "clang/AST/Stmt.h"
81 /// the node's dynamic type, until the top-most class (e.g. Stmt,
93 /// TraverseStmt(Stmt *x) and TraverseType(QualType x) work
147 typedef SmallVectorImpl<llvm::PointerIntPair<Stmt *, 1, bool>>
173 bool TraverseStmt(Stmt *S, DataRecursionQueue *Queue = nullptr);
178 bool dataTraverseStmtPre(Stmt *S) { return true; }
185 bool dataTraverseStmtPost(Stmt *S) { return true; }
328 if (!TRAVERSE_STMT_BASE(Stmt, Stmt, S, Queue)) \
333 // Declare Traverse*() for all concrete Stmt classes
    [all...]
Stmt.h 1 //===--- Stmt.h - Classes for representing statements -----------*- C++ -*-===//
10 // This file defines the Stmt interface and subclasses.
57 /// Stmt - This represents one statement.
59 class LLVM_ALIGNAS(LLVM_PTR_SIZE) Stmt {
63 #define STMT(CLASS, PARENT) CLASS##Class,
68 #define ABSTRACT_STMT(STMT)
82 friend class Stmt;
301 /// Iterator for iterating over Stmt * arrays that contain only Expr *
303 /// This is needed because AST nodes use Stmt* arrays to store
306 : llvm::iterator_adaptor_base<ExprIterator, Stmt **,
    [all...]
  /external/clang/test/CoverageMapping/
macro-expressions.cpp 15 #define STMT(s) s
18 STMT(if (1));
19 STMT(while (1));
20 STMT(for (;;));
21 STMT(if) (1);
22 STMT(while) (1);
23 STMT(for) (;;);
25 STMT(if (1)
26 STMT(if (1)));
28 STMT(if (1)) 0
    [all...]
  /external/clang/lib/AST/
ASTTypeTraits.cpp 34 { NKI_None, "Stmt" },
35 #define STMT(DERIVED, BASE) { NKI_##BASE, #DERIVED },
87 ASTNodeKind ASTNodeKind::getFromNode(const Stmt &S) {
89 case Stmt::NoStmtClass: return NKI_None;
90 #define STMT(CLASS, PARENT) \
91 case Stmt::CLASS##Class: return ASTNodeKind(NKI_##CLASS);
95 llvm_unreachable("invalid stmt kind");
122 else if (const Stmt *S = get<Stmt>())
133 else if (const Stmt *S = get<Stmt>()
    [all...]
ExprClassification.cpp 107 case Stmt::NoStmtClass:
109 #define STMT(Kind, Base) case Expr::Kind##Class:
Stmt.cpp 1 //===--- Stmt.cpp - Statement AST Node Implementation ---------------------===//
10 // This file implements the Stmt class and statement subclasses.
19 #include "clang/AST/Stmt.h"
35 } StmtClassInfo[Stmt::lastStmtConstant+1];
37 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) {
44 #define ABSTRACT_STMT(STMT)
45 #define STMT(CLASS, PARENT) \
46 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \
47 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS);
53 void *Stmt::operator new(size_t bytes, const ASTContext& C
    [all...]
Expr.cpp 172 // See also Stmt.cpp:{getLocStart(),getLocEnd()}.
195 case Stmt::NoStmtClass: llvm_unreachable("statement without class");
197 #define STMT(type, base) \
198 case Stmt::type##Class: break;
200 case Stmt::type##Class: return getExprLocImpl<type>(this, &type::getExprLoc);
    [all...]
ItaniumMangle.cpp     [all...]
StmtPrinter.cpp 1 //===--- StmtPrinter.cpp - Printing implementation for Stmt ASTs ----------===//
10 // This file implements the Stmt::dumpPretty/Stmt::printPretty methods, which
48 void PrintStmt(Stmt *S) {
52 void PrintStmt(Stmt *S, int SubIndent) {
55 // If this is an expr used in a stmt context, indent and newline it.
90 void Visit(Stmt* S) {
96 void VisitStmt(Stmt *Node) LLVM_ATTRIBUTE_UNUSED {
97 Indent() << "<<unknown stmt type>>\n";
105 #define STMT(CLASS, PARENT)
    [all...]
StmtProfile.cpp 1 //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===//
10 // This file implements the Stmt::Profile method, which builds a unique bit
37 void VisitStmt(const Stmt *S);
39 #define STMT(Node, Base) void Visit##Node(const Node *S);
71 void StmtProfiler::VisitStmt(const Stmt *S) {
72 assert(S && "Requires non-null Stmt pointer");
74 for (const Stmt *SubStmt : S->children()) {
998 static Stmt::StmtClass DecodeOperatorCall(const CXXOperatorCallExpr *S,
1017 return Stmt::UnaryOperatorClass;
1021 return Stmt::BinaryOperatorClass
    [all...]
ExprConstant.cpp 585 bool nextStep(const Stmt *S) {
    [all...]
  /external/clang/lib/Sema/
SemaExceptionSpec.cpp     [all...]
TreeTransform.h 25 #include "clang/AST/Stmt.h"
134 static inline StmtResult Owned(Stmt *S) { return S; }
319 StmtResult TransformStmt(Stmt *S);
591 StmtResult TransformSEHHandler(Stmt *Handler);
656 #define STMT(Node, Parent) \
662 #define ABSTRACT_STMT(Stmt)
    [all...]
  /external/clang/lib/CodeGen/
CGStmt.cpp 10 // This contains code to emit Stmt nodes as LLVM code.
38 void CodeGenFunction::EmitStopPoint(const Stmt *S) {
48 void CodeGenFunction::EmitStmt(const Stmt *S) {
78 case Stmt::NoStmtClass:
79 case Stmt::CXXCatchStmtClass:
80 case Stmt::SEHExceptStmtClass:
81 case Stmt::SEHFinallyStmtClass:
82 case Stmt::MSDependentExistsStmtClass:
84 case Stmt::NullStmtClass:
85 case Stmt::CompoundStmtClass
    [all...]
  /external/clang/lib/Serialization/
ASTWriterStmt.cpp 54 void VisitStmt(Stmt *S);
55 #define STMT(Type, Base) \
70 void ASTStmtWriter::VisitStmt(Stmt *S) {
    [all...]
ASTReaderStmt.cpp 1 //===--- ASTReaderStmt.cpp - Stmt/Expr Deserialization ----------*- C++ -*-===//
86 /// \brief The number of record fields required for the Stmt class
102 void VisitStmt(Stmt *S);
103 #define STMT(Type, Base) \
122 void ASTStmtReader::VisitStmt(Stmt *S) {
134 SmallVector<Stmt *, 16> Stmts;
325 SmallVector<Stmt*, 16> Exprs;
491 E->setRawSemantics(static_cast<Stmt::APFloatSemantics>(Record[Idx++]));
540 E->Exprs = new (Reader.getContext()) Stmt*[NumExprs];
641 assert(E->getStmtClass() == Stmt::MemberExprClass &
    [all...]

Completed in 877 milliseconds