/external/clang/include/clang/AST/ |
ParentMap.h | 18 class Stmt; 24 ParentMap(Stmt* ASTRoot); 28 /// stmt tree of S. All children of S including indirect descendants are 30 void addStmt(Stmt* S); 32 Stmt *getParent(Stmt*) const; 33 Stmt *getParentIgnoreParens(Stmt *) const; 34 Stmt *getParentIgnoreParenCasts(Stmt *) const [all...] |
StmtGraphTraits.h | 1 //===--- StmtGraphTraits.h - Graph Traits for the class Stmt ----*- C++ -*-===// 11 // treat ASTs (Stmt*) as graphs 18 #include "clang/AST/Stmt.h" 27 template <> struct GraphTraits<clang::Stmt*> { 28 typedef clang::Stmt NodeType; 29 typedef clang::Stmt::child_iterator ChildIteratorType; 30 typedef llvm::df_iterator<clang::Stmt*> nodes_iterator; 32 static NodeType* getEntryNode(clang::Stmt* S) { return S; } 44 static nodes_iterator nodes_begin(clang::Stmt* S) { 48 static nodes_iterator nodes_end(clang::Stmt* S) [all...] |
StmtObjC.h | 17 #include "clang/AST/Stmt.h" 23 /// represented as 'for (element 'in' collection-expression)' stmt. 25 class ObjCForCollectionStmt : public Stmt { 27 Stmt* SubExprs[END_EXPR]; // SubExprs[ELEM] is an expression or declstmt. 31 ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, Stmt *Body, 34 Stmt(ObjCForCollectionStmtClass, Empty) { } 36 Stmt *getElement() { return SubExprs[ELEM]; } 40 Stmt *getBody() { return SubExprs[BODY]; } 42 const Stmt *getElement() const { return SubExprs[ELEM]; [all...] |
StmtCXX.h | 17 #include "clang/AST/Stmt.h" 26 class CXXCatchStmt : public Stmt { 31 Stmt *HandlerBlock; 34 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) 35 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl), 39 : Stmt(CXXCatchStmtClass), ExceptionDecl(0), HandlerBlock(0) {} 48 Stmt *getHandlerBlock() const { return HandlerBlock; } 50 static bool classof(const Stmt *T) { 62 class CXXTryStmt : public Stmt { 66 CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, Stmt **handlers [all...] |
Stmt.h | 1 //===--- Stmt.h - Classes for representing statements -----------*- C++ -*-===// 10 // This file defines the Stmt interface and subclasses. 45 // ExprIterator - Iterators for iterating over Stmt* arrays that contain 46 // only Expr*. This is needed because AST nodes use Stmt* arrays to store 50 class Stmt; 54 Stmt** I; 56 ExprIterator(Stmt** i) : I(i) {} 73 const Stmt * const *I; 75 ConstExprIterator(const Stmt * const *i) : I(i) {} 94 /// Stmt - This represents one statement [all...] |
StmtIterator.h | 25 class Stmt; 34 Stmt **stmt; member in class:clang::StmtIteratorBase 68 Stmt*& GetDeclExpr() const; 70 StmtIteratorBase(Stmt **s) : stmt(s), decl(0), RawVAPtr(0) {} 71 StmtIteratorBase(Decl *d, Stmt **s); 74 StmtIteratorBase() : stmt(0), decl(0), RawVAPtr(0) {} 87 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} 89 StmtIteratorImpl(Decl *d, Stmt **s) : StmtIteratorBase(d, s) { [all...] |
PrettyPrinter.h | 22 class Stmt; 29 virtual bool handledStmt(Stmt* E, raw_ostream& OS) = 0;
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
CheckerHelpers.h | 17 #include "clang/AST/Stmt.h" 23 bool containsMacro(const Stmt *S); 24 bool containsEnum(const Stmt *S); 25 bool containsStaticLocal(const Stmt *S); 26 bool containsBuiltinOffsetOf(const Stmt *S); 27 template <class T> bool containsStmt(const Stmt *S) { 31 for (Stmt::const_child_range I = S->children(); I; ++I) 32 if (const Stmt *child = *I)
|
/external/clang/include/clang/Analysis/ |
CFGStmtMap.h | 1 //===--- CFGStmtMap.h - Map from Stmt* to CFGBlock* -----------*- C++ -*-===// 11 // Stmt* to CFGBlock* 25 class Stmt; 40 /// Returns the CFGBlock the specified Stmt* appears in. For Stmt* that 44 CFGBlock *getBlock(Stmt * S); 46 const CFGBlock *getBlock(const Stmt * S) const { 47 return const_cast<CFGStmtMap*>(this)->getBlock(const_cast<Stmt*>(S));
|
/external/clang/lib/StaticAnalyzer/Core/ |
CheckerHelpers.cpp | 18 bool clang::ento::containsMacro(const Stmt *S) { 25 for (Stmt::const_child_iterator I = S->child_begin(); I != S->child_end(); 27 if (const Stmt *child = *I) 35 bool clang::ento::containsEnum(const Stmt *S) { 41 for (Stmt::const_child_iterator I = S->child_begin(); I != S->child_end(); 43 if (const Stmt *child = *I) 51 bool clang::ento::containsStaticLocal(const Stmt *S) { 59 for (Stmt::const_child_iterator I = S->child_begin(); I != S->child_end(); 61 if (const Stmt *child = *I) 69 bool clang::ento::containsBuiltinOffsetOf(const Stmt *S) [all...] |
Environment.cpp | 1 //== Environment.cpp - Map from Stmt* to Locations/Values -------*- C++ -*--==// 44 const Stmt *E = Entry.getStmt(); 52 case Stmt::AddrLabelExprClass: 54 case Stmt::OpaqueValueExprClass: { 59 case Stmt::ParenExprClass: 60 case Stmt::GenericSelectionExprClass: 63 case Stmt::CharacterLiteralClass: { 67 case Stmt::CXXBoolLiteralExprClass: { 74 case Stmt::IntegerLiteralClass: { 82 case Stmt::ObjCBoolLiteralExprClass [all...] |
ExprEngine.cpp | 222 ProcessStmt(const_cast<Stmt*>(E.getAs<CFGStmt>()->getStmt()), Pred); 465 void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, 487 case Stmt::CXXDependentScopeMemberExprClass: 488 case Stmt::CXXPseudoDestructorExprClass: 489 case Stmt::CXXTryStmtClass: 490 case Stmt::CXXTypeidExprClass: 491 case Stmt::CXXUuidofExprClass: 492 case Stmt::CXXUnresolvedConstructExprClass: 493 case Stmt::CXXScalarValueInitExprClass: 494 case Stmt::DependentScopeDeclRefExprClass [all...] |
/external/clang/lib/AST/ |
ParentMap.cpp | 21 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy; 23 static void BuildParentMap(MapTy& M, Stmt* S) { 24 for (Stmt::child_range I = S->children(); I; ++I) 35 ParentMap::ParentMap(Stmt* S) : Impl(0) { 47 void ParentMap::addStmt(Stmt* S) { 53 Stmt* ParentMap::getParent(Stmt* S) const { 59 Stmt *ParentMap::getParentIgnoreParens(Stmt *S) const [all...] |
Stmt.cpp | 1 //===--- Stmt.cpp - Statement AST Node Implementation ---------------------===// 10 // This file implements the Stmt class and statement subclasses. 14 #include "clang/AST/Stmt.h" 30 } StmtClassInfo[Stmt::lastStmtConstant+1]; 32 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { 39 #define ABSTRACT_STMT(STMT) 40 #define STMT(CLASS, PARENT) \ 41 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ 42 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); 48 const char *Stmt::getStmtClassName() const [all...] |
StmtViz.cpp | 1 //===--- StmtViz.cpp - Graphviz visualization for Stmt ASTs -----*- C++ -*-===// 10 // This file implements Stmt::viewAST, which generates a Graphviz DOT file 21 void Stmt::viewAST() const { 25 llvm::errs() << "Stmt::viewAST is only available in debug builds on " 32 struct DOTGraphTraits<const Stmt*> : public DefaultDOTGraphTraits { 35 static std::string getNodeLabel(const Stmt* Node, const Stmt* Graph) {
|
/frameworks/compile/slang/ |
slang_rs_ast_replace.h | 28 class Stmt; 36 clang::Stmt *mOuterStmt; 37 clang::Stmt *mOldStmt; 38 clang::Stmt *mNewStmt; 51 inline bool matchesStmt(const clang::Stmt *S) const { 69 void VisitStmt(clang::Stmt *S); 82 clang::Stmt *OuterStmt, 83 clang::Stmt *OldStmt, 84 clang::Stmt *NewStmt);
|
/external/clang/include/clang/Analysis/Analyses/ |
LiveVariables.h | 26 class Stmt; 35 llvm::ImmutableSet<const Stmt *> liveStmts; 43 LivenessValues(llvm::ImmutableSet<const Stmt *> LiveStmts, 49 bool isLive(const Stmt *S) const; 62 virtual void observeStmt(const Stmt *S, 86 bool isLive(const Stmt *S, const VarDecl *D); 90 bool isLive(const Stmt *Loc, const Stmt *StmtVal);
|
PseudoConstantAnalysis.h | 19 #include "clang/AST/Stmt.h" 25 PseudoConstantAnalysis(const Stmt *DeclBody); 39 const Stmt *DeclBody;
|
/external/clang/include/clang/Analysis/Visitors/ |
CFGStmtVisitor.h | 26 case Stmt::CLASS ## Class: return \ 36 Stmt *CurrentBlkStmt; 39 Stmt*& S; 41 NullifyStmt(Stmt*& s) : S(s) {} 48 Stmt *getCurrentBlkStmt() const { return CurrentBlkStmt; } 50 RetTy Visit(Stmt *S) { 61 RetTy VisitConditionVariableInit(Stmt *S) { 70 RetTy BlockStmt_Visit(Stmt *S) { 75 case Stmt::IfStmtClass: 76 case Stmt::ForStmtClass [all...] |
CFGRecStmtVisitor.h | 25 void VisitStmt(Stmt *S) { 34 void VisitConditionVariableInit(Stmt *S) { 39 case Stmt::CLASS ## Class:\ 54 void operator()(Stmt *S) { static_cast<ImplClass*>(this)->BlockStmt_Visit(S);}
|
/external/clang/tools/libclang/ |
CXCursor.cpp | 91 CXCursor cxcursor::MakeCXCursor(Stmt *S, Decl *Parent, CXTranslationUnit TU, 97 case Stmt::NoStmtClass: 100 case Stmt::CaseStmtClass: 104 case Stmt::DefaultStmtClass: 108 case Stmt::IfStmtClass: 112 case Stmt::SwitchStmtClass: 116 case Stmt::WhileStmtClass: 120 case Stmt::DoStmtClass: 124 case Stmt::ForStmtClass: 128 case Stmt::GotoStmtClass [all...] |
/external/clang/lib/Analysis/ |
CFGStmtMap.cpp | 1 //===--- CFGStmtMap.h - Map from Stmt* to CFGBlock* -----------*- C++ -*-===// 11 // Stmt* to CFGBlock* 22 typedef llvm::DenseMap<const Stmt*, CFGBlock*> SMap; 27 CFGBlock *CFGStmtMap::getBlock(Stmt *S) { 29 Stmt *X = S; 68 if (Stmt *Label = B->getLabel()) 74 if (Stmt *Term = B->getTerminator())
|
PseudoConstantAnalysis.cpp | 19 #include "clang/AST/Stmt.h" 28 PseudoConstantAnalysis::PseudoConstantAnalysis(const Stmt *DeclBody) : 76 std::deque<const Stmt *> WorkList; 84 const Stmt *Head = WorkList.front(); 92 case Stmt::BinaryOperatorClass: { 137 case Stmt::UnaryOperatorClass: { 170 case Stmt::DeclStmtClass: { 200 case Stmt::DeclRefExprClass: { 211 case Stmt::BlockExprClass: { 223 for (Stmt::const_child_range I = Head->children(); I; ++I [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
CheckSizeofPointer.cpp | 32 void VisitStmt(Stmt *S) { VisitChildren(S); } 33 void VisitChildren(Stmt *S); 37 void WalkAST::VisitChildren(Stmt *S) { 38 for (Stmt::child_iterator I = S->child_begin(), E = S->child_end(); I!=E; ++I) 39 if (Stmt *child = *I)
|
/external/clang/lib/Sema/ |
SemaStmtAttr.cpp | 10 // This file implements stmt-related attribute processing. 25 static Attr *ProcessStmtAttribute(Sema &S, Stmt *St, const AttributeList &A) { 36 StmtResult Sema::ProcessStmtAttributes(Stmt *S, AttributeList *AttrList,
|