/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 | 16 #include "clang/AST/Stmt.h" 23 /// This is represented as 'for (element 'in' collection-expression)' stmt. 24 class ObjCForCollectionStmt : public Stmt { 26 Stmt* SubExprs[END_EXPR]; // SubExprs[ELEM] is an expression or declstmt. 30 ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, Stmt *Body, 33 Stmt(ObjCForCollectionStmtClass, Empty) { } 35 Stmt *getElement() { return SubExprs[ELEM]; } 39 Stmt *getBody() { return SubExprs[BODY]; } 41 const Stmt *getElement() const { return SubExprs[ELEM]; [all...] |
StmtCXX.h | 20 #include "clang/AST/Stmt.h" 29 class CXXCatchStmt : public Stmt { 34 Stmt *HandlerBlock; 37 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) 38 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl), 42 : Stmt(CXXCatchStmtClass), ExceptionDecl(0), HandlerBlock(0) {} 52 Stmt *getHandlerBlock() const { return HandlerBlock; } 54 static bool classof(const Stmt *T) { 65 class CXXTryStmt : public Stmt { 69 CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, ArrayRef<Stmt*> handlers) [all...] |
Stmt.h | 1 //===--- Stmt.h - Classes for representing statements -----------*- C++ -*-===// 10 // This file defines the Stmt interface and subclasses. 49 // ExprIterator - Iterators for iterating over Stmt* arrays that contain 50 // only Expr*. This is needed because AST nodes use Stmt* arrays to store 54 class Stmt; 58 Stmt** I; 60 ExprIterator(Stmt** i) : I(i) {} 77 const Stmt * const *I; 79 ConstExprIterator(const Stmt * const *i) : I(i) {} 98 /// 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 | 24 class Stmt; 30 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/Analysis/ |
BodyFarm.h | 27 class Stmt; 34 Stmt *getBody(const FunctionDecl *D); 37 typedef llvm::DenseMap<const Decl *, Optional<Stmt *> > BodyMap;
|
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" 29 PseudoConstantAnalysis::PseudoConstantAnalysis(const Stmt *DeclBody) : 77 std::deque<const Stmt *> WorkList; 85 const Stmt *Head = WorkList.front(); 93 case Stmt::BinaryOperatorClass: { 138 case Stmt::UnaryOperatorClass: { 171 case Stmt::DeclStmtClass: { 201 case Stmt::DeclRefExprClass: { 212 case Stmt::BlockExprClass: { 224 for (Stmt::const_child_range I = Head->children(); I; ++I [all...] |
/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++ -*--==// 28 case Stmt::OpaqueValueExprClass: 31 case Stmt::ExprWithCleanupsClass: 34 case Stmt::CXXBindTemporaryExprClass: 37 case Stmt::SubstNonTypeTemplateParmExprClass: 48 static const Stmt *ignoreTransparentExprs(const Stmt *S) { 54 EnvironmentEntry::EnvironmentEntry(const Stmt *S, const LocationContext *L) 55 : std::pair<const Stmt *, 70 const Stmt *S = Entry.getStmt() [all...] |
/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/lib/AST/ |
ParentMap.cpp | 21 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy; 28 static void BuildParentMap(MapTy& M, Stmt* S, 32 case Stmt::PseudoObjectExprClass: { 47 case Stmt::BinaryConditionalOperatorClass: { 65 case Stmt::OpaqueValueExprClass: 73 for (Stmt::child_range I = S->children(); I; ++I) { 83 ParentMap::ParentMap(Stmt* S) : Impl(0) { 95 void ParentMap::addStmt(Stmt* S) { 101 Stmt* ParentMap::getParent(Stmt* S) const [all...] |
Stmt.cpp | 1 //===--- Stmt.cpp - Statement AST Node Implementation ---------------------===// 10 // This file implements the Stmt class and statement subclasses. 18 #include "clang/AST/Stmt.h" 33 } StmtClassInfo[Stmt::lastStmtConstant+1]; 35 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { 42 #define ABSTRACT_STMT(STMT) 43 #define STMT(CLASS, PARENT) \ 44 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ 45 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); 51 void *Stmt::operator new(size_t bytes, ASTContext& C [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) {
|
/external/clang/lib/Tooling/ |
RefactoringCallbacks.cpp | 24 const Stmt &From, 30 const Stmt &From, 31 const Stmt &To) { 42 if (const Stmt *FromMatch = Result.Nodes.getStmtAs<Stmt>(FromId)) { 55 const Stmt *FromMatch = Result.Nodes.getStmtAs<Stmt>(FromId); 56 const Stmt *ToMatch = Result.Nodes.getStmtAs<Stmt>(ToId); 69 const Stmt *Body = PickTrueBranch ? Node->getThen() : Node->getElse() [all...] |
/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 | 92 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent, 99 case Stmt::NoStmtClass: 102 case Stmt::CaseStmtClass: 106 case Stmt::DefaultStmtClass: 110 case Stmt::IfStmtClass: 114 case Stmt::SwitchStmtClass: 118 case Stmt::WhileStmtClass: 122 case Stmt::DoStmtClass: 126 case Stmt::ForStmtClass: 130 case Stmt::GotoStmtClass [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)
|