HomeSort by relevance Sort by last modified time
    Searched refs:Stmt (Results 1 - 25 of 250) sorted by null

1 2 3 4 5 6 7 8 910

  /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(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 *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;
StmtOpenMP.h 20 #include "clang/AST/Stmt.h"
33 class OMPExecutableDirective : public Stmt {
48 /// requires an associated stmt, then it has to be the first of them).
70 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)),
86 void setAssociatedStmt(Stmt *S) { *child_begin() = S; }
154 Stmt *getAssociatedStmt() const { return const_cast<Stmt *>(*child_begin()); }
158 static bool classof(const Stmt *S) {
164 Stmt **ChildStorage = reinterpret_cast<Stmt **>(getClauses().end())
    [all...]
StmtIterator.h 26 class Stmt;
35 Stmt **stmt; member in class:clang::StmtIteratorBase
65 Stmt*& GetDeclExpr() const;
67 StmtIteratorBase(Stmt **s) : stmt(s), DGI(nullptr), RawVAPtr(0) {}
70 StmtIteratorBase() : stmt(nullptr), DGI(nullptr), 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 29 class Stmt;
36 Stmt *getBody(const FunctionDecl *D);
39 Stmt *getBody(const ObjCMethodDecl *D);
42 typedef llvm::DenseMap<const Decl *, Optional<Stmt *> > BodyMap;
  /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 *,
71 const Stmt *S = Entry.getStmt()
    [all...]
ExprEngine.cpp 286 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::CXXUuidofExprClass
    [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(nullptr) {
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, const 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 {
68 void VisitStmt(clang::Stmt *S);
81 clang::Stmt *OuterStmt,
82 clang::Stmt *OldStmt,
83 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 101 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::GotoStmtClass
    [all...]
  /external/clang/lib/StaticAnalyzer/Checkers/
CheckSizeofPointer.cpp 34 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)
IdenticalExprChecker.cpp 29 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::ImplicitCastExprClass
    [all...]
  /external/clang/include/clang/ASTMatchers/
ASTMatchers.h 122 typedef internal::Matcher<Stmt> StatementMatcher;
613 /// stmt()
615 const internal::VariadicAllOfMatcher<Stmt> stmt; member in namespace:clang::ast_matchers
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
    [all...]

Completed in 107 milliseconds

1 2 3 4 5 6 7 8 910