/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); 35 void setParent(const Stmt *S, const Stmt *Parent); 37 Stmt *getParent(Stmt*) const; 38 Stmt *getParentIgnoreParens(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. 53 // ExprIterator - Iterators for iterating over Stmt* arrays that contain 54 // only Expr*. This is needed because AST nodes use Stmt* arrays to store 58 class Stmt; 62 Stmt** I; 64 ExprIterator(Stmt** i) : I(i) {} 81 const Stmt * const *I; 83 ConstExprIterator(const Stmt * const *i) : I(i) {} 102 /// Stmt - This represents one statement [all...] |
ASTFwd.h | 20 class Stmt; 21 #define STMT(DERIVED, BASE) class DERIVED;
|
PrettyPrinter.h | 24 class Stmt; 30 virtual bool handledStmt(Stmt* E, raw_ostream& OS) = 0;
|
StmtIterator.h | 26 class Stmt; 35 Stmt **stmt; member in class:clang::StmtIteratorBase 65 Stmt*& GetDeclExpr() const; 67 StmtIteratorBase(Stmt **s) : stmt(s), DGI(0), RawVAPtr(0) {} 70 StmtIteratorBase() : stmt(0), DGI(0), RawVAPtr(0) {} 83 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} 89 ++stmt; 105 return stmt == RHS.stmt && DGI == RHS.DGI && RawVAPtr == RHS.RawVAPtr [all...] |
/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...] |
ExprEngine.cpp | 284 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); 326 const Stmt *ReferenceStmt, 328 const Stmt *DiagnosticStmt, 412 const Stmt *currStmt = S.getStmt(); 606 void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, 619 case Stmt::CXXDependentScopeMemberExprClass: 620 case Stmt::CXXTryStmtClass: 621 case Stmt::CXXTypeidExprClass: 622 case Stmt::CXXUuidofExprClass: 623 case Stmt::MSPropertyRefExprClass [all...] |
/external/clang/lib/AST/ |
ParentMap.cpp | 22 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy; 29 static void BuildParentMap(MapTy& M, Stmt* S, 33 case Stmt::PseudoObjectExprClass: { 39 for (Stmt::child_range I = S->children(); I; ++I) 53 case Stmt::BinaryConditionalOperatorClass: { 71 case Stmt::OpaqueValueExprClass: { 85 for (Stmt::child_range I = S->children(); I; ++I) { 95 ParentMap::ParentMap(Stmt* S) : Impl(0) { 107 void ParentMap::addStmt(Stmt* S) [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) {
|
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" 34 } StmtClassInfo[Stmt::lastStmtConstant+1]; 36 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { 43 #define ABSTRACT_STMT(STMT) 44 #define STMT(CLASS, PARENT) \ 45 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ 46 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); 52 void *Stmt::operator new(size_t bytes, ASTContext& C [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/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/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)
|