Searched refs:Stmt (Results 1 - 25 of 237) sorted by relevance

12345678910

/external/clang/include/clang/AST/
H A DParentMap.h18 class Stmt;
24 ParentMap(Stmt* ASTRoot);
30 void addStmt(Stmt* S);
35 void setParent(const Stmt *S, const Stmt *Parent);
37 Stmt *getParent(Stmt*) const;
38 Stmt *getParentIgnoreParens(Stmt *) const;
39 Stmt *getParentIgnoreParenCast
[all...]
H A DStmtGraphTraits.h1 //===--- 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*
[all...]
H A DStmtObjC.h16 #include "clang/AST/Stmt.h"
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]; }
45 const Stmt *getBod
[all...]
H A DStmtCXX.h20 #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(nullptr), HandlerBlock(nullptr) {}
52 Stmt *getHandlerBlock() const { return HandlerBlock; }
54 static bool classof(const Stmt *T) {
65 class CXXTryStmt : public Stmt {
69 CXXTryStmt(SourceLocation tryLoc, Stmt *tryBloc
[all...]
H A DStmt.h1 //===--- 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
104 class Stmt { class in namespace:clang
344 explicit Stmt(StmtClass SC, EmptyShell) { function in class:clang::Stmt
350 Stmt(StmtClass SC) { function in class:clang::Stmt
[all...]
H A DStmtIterator.h26 class Stmt;
35 Stmt **stmt;
65 Stmt*& GetDeclExpr() const;
67 StmtIteratorBase(Stmt **s) : stmt(s), DGI(nullptr), RawVAPtr(0) {}
83 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {}
119 struct StmtIterator : public StmtIteratorImpl<StmtIterator,Stmt*&> {
120 explicit StmtIterator() : StmtIteratorImpl<StmtIterator,Stmt*&>() {}
122 StmtIterator(Stmt** S) : StmtIteratorImpl<StmtIterator,Stmt*&>(S) {}
125 : StmtIteratorImpl<StmtIterator,Stmt*
[all...]
H A DASTFwd.h20 class Stmt;
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerHelpers.h17 #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/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp18 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 *
[all...]
H A DEnvironment.cpp1 //== 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 *,
71 const Stmt *
[all...]
H A DExprEngine.cpp286 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred);
333 const Stmt *ReferenceStmt,
335 const Stmt *DiagnosticStmt,
419 const Stmt *currStmt = S.getStmt();
600 const Stmt *Arg = DE->getArgument();
671 void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
684 case Stmt::CXXDependentScopeMemberExprClass:
685 case Stmt::CXXTryStmtClass:
686 case Stmt::CXXTypeidExprClass:
687 case Stmt
[all...]
/external/clang/include/clang/Analysis/
H A DCFGStmtMap.h1 //===--- 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/AST/
H A DParentMap.cpp22 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(nullptr) {
107 void ParentMap::addStmt(Stmt*
[all...]
H A DStmtViz.cpp1 //===--- 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) {
H A DStmt.cpp1 //===--- 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) {
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, const ASTContext& C,
57 const char *Stmt::getStmtClassName() const {
61 void Stmt
139 implements_children(children_t Stmt::*) argument
148 implements_getLocStart(getLocStart_t Stmt::*) argument
157 implements_getLocEnd(getLocEnd_t Stmt::*) argument
[all...]
/external/clang/lib/Analysis/
H A DBodyFarm.h29 class Stmt;
36 Stmt *getBody(const FunctionDecl *D);
39 Stmt *getBody(const ObjCMethodDecl *D);
42 typedef llvm::DenseMap<const Decl *, Optional<Stmt *> > BodyMap;
H A DCFGStmtMap.cpp1 //===--- 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())
H A DPseudoConstantAnalysis.cpp19 #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: {
200 case Stmt::DeclRefExprClass: {
211 case Stmt::BlockExprClass: {
223 for (Stmt
[all...]
/external/clang/include/clang/Analysis/Analyses/
H A DPseudoConstantAnalysis.h19 #include "clang/AST/Stmt.h"
25 PseudoConstantAnalysis(const Stmt *DeclBody);
39 const Stmt *DeclBody;
H A DLiveVariables.h26 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);
/external/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp24 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 *Bod
[all...]
/external/clang/tools/libclang/
H A DCXCursor.cpp101 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent,
108 case Stmt::NoStmtClass:
111 case Stmt::CaseStmtClass:
115 case Stmt::DefaultStmtClass:
119 case Stmt::IfStmtClass:
123 case Stmt::SwitchStmtClass:
127 case Stmt::WhileStmtClass:
131 case Stmt::DoStmtClass:
135 case Stmt::ForStmtClass:
139 case Stmt
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSizeofPointer.cpp34 void VisitStmt(Stmt *S) { VisitChildren(S); }
35 void VisitChildren(Stmt *S);
39 void WalkAST::VisitChildren(Stmt *S) {
40 for (Stmt::child_iterator I = S->child_begin(), E = S->child_end(); I!=E; ++I)
41 if (Stmt *child = *I)
H A DIdenticalExprChecker.cpp29 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1,
30 const Stmt *Stmt2, bool IgnoreSideEffects = false);
108 const Stmt *Stmt1 = I->getThen();
109 const Stmt *Stmt2 = I->getElse();
120 const Stmt *Else = Stmt2;
286 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1,
287 const Stmt *Stmt2, bool IgnoreSideEffects) {
333 case Stmt::CallExprClass:
334 case Stmt::ArraySubscriptExprClass:
335 case Stmt
[all...]
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h122 typedef internal::Matcher<Stmt> StatementMatcher;
615 const internal::VariadicAllOfMatcher<Stmt> stmt;
626 Stmt,
640 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr;
650 const internal::VariadicDynCastAllOfMatcher<Stmt, CallExpr> callExpr;
658 const internal::VariadicDynCastAllOfMatcher<Stmt, LambdaExpr> lambdaExpr;
668 Stmt,
678 const internal::VariadicDynCastAllOfMatcher<Stmt, ExprWithCleanups>
691 const internal::VariadicDynCastAllOfMatcher<Stmt, InitListExpr> initListExpr;
703 const internal::VariadicDynCastAllOfMatcher<Stmt, SubstNonTypeTemplateParmExp
2424 AST_POLYMORPHIC_MATCHER_P(equalsBoundNode, AST_POLYMORPHIC_SUPPORTED_TYPES_4( Stmt, Decl, Type, QualType), std::string, ID) argument
3556 AST_MATCHER_P_OVERLOAD(Stmt, equalsNode, const Stmt*, Other, 1) argument
[all...]

Completed in 346 milliseconds

12345678910