/external/clang/include/clang/AST/ |
D | ParentMap.h | 18 class Stmt; variable 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 *getParentIgnoreParenCasts(Stmt *) const; 40 Stmt *getParentIgnoreParenImpCasts(Stmt *) const; 41 Stmt *getOuterParenParent(Stmt *) const; 43 const Stmt *getParent(const Stmt* S) const { in getParent() [all …]
|
D | StmtObjC.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) { } in ObjCForCollectionStmt() 35 Stmt *getElement() { return SubExprs[ELEM]; } in getElement() 39 Stmt *getBody() { return SubExprs[BODY]; } in getBody() 41 const Stmt *getElement() const { return SubExprs[ELEM]; } in getElement() 45 const Stmt *getBody() const { return SubExprs[BODY]; } in getBody() 47 void setElement(Stmt *S) { SubExprs[ELEM] = S; } in setElement() 49 SubExprs[COLLECTION] = reinterpret_cast<Stmt*>(E); in setCollection() [all …]
|
D | StmtCXX.h | 29 class CXXCatchStmt : public Stmt { 34 Stmt *HandlerBlock; 37 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) in CXXCatchStmt() 38 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl), in CXXCatchStmt() 42 : Stmt(CXXCatchStmtClass), ExceptionDecl(0), HandlerBlock(0) {} in CXXCatchStmt() 52 Stmt *getHandlerBlock() const { return HandlerBlock; } in getHandlerBlock() 54 static bool classof(const Stmt *T) { in classof() 65 class CXXTryStmt : public Stmt { 69 CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, ArrayRef<Stmt*> handlers); 72 : Stmt(CXXTryStmtClass), NumHandlers(numHandlers) { } in CXXTryStmt() [all …]
|
D | Stmt.h | 58 class Stmt; variable 62 Stmt** I; 64 ExprIterator(Stmt** i) : I(i) {} in ExprIterator() 81 const Stmt * const *I; 83 ConstExprIterator(const Stmt * const *i) : I(i) {} in ConstExprIterator() 104 class Stmt { 127 friend class Stmt; variable 342 explicit Stmt(StmtClass SC, EmptyShell) { in Stmt() function 344 if (StatisticsEnabled) Stmt::addStmtClass(SC); in Stmt() 348 Stmt(StmtClass SC) { in Stmt() function [all …]
|
D | StmtGraphTraits.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) { 54 template <> struct GraphTraits<const clang::Stmt*> { 55 typedef const clang::Stmt NodeType; 56 typedef clang::Stmt::const_child_iterator ChildIteratorType; [all …]
|
D | StmtIterator.h | 26 class Stmt; variable 35 Stmt **stmt; 65 Stmt*& GetDeclExpr() const; 67 StmtIteratorBase(Stmt **s) : stmt(s), DGI(0), RawVAPtr(0) {} in StmtIteratorBase() 83 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} in StmtIteratorImpl() 119 struct StmtIterator : public StmtIteratorImpl<StmtIterator,Stmt*&> { 120 explicit StmtIterator() : StmtIteratorImpl<StmtIterator,Stmt*&>() {} in StmtIterator() 122 StmtIterator(Stmt** S) : StmtIteratorImpl<StmtIterator,Stmt*&>(S) {} in StmtIterator() 125 : StmtIteratorImpl<StmtIterator,Stmt*&>(dgi, dge) {} in StmtIterator() 128 : StmtIteratorImpl<StmtIterator,Stmt*&>(t) {} in StmtIterator() [all …]
|
/external/clang/lib/AST/ |
D | ParentMap.cpp | 22 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy; 29 static void BuildParentMap(MapTy& M, Stmt* S, in BuildParentMap() 33 case Stmt::PseudoObjectExprClass: { in BuildParentMap() 39 for (Stmt::child_range I = S->children(); I; ++I) in BuildParentMap() 53 case Stmt::BinaryConditionalOperatorClass: { in BuildParentMap() 71 case Stmt::OpaqueValueExprClass: { in BuildParentMap() 85 for (Stmt::child_range I = S->children(); I; ++I) { in BuildParentMap() 95 ParentMap::ParentMap(Stmt* S) : Impl(0) { in ParentMap() 107 void ParentMap::addStmt(Stmt* S) { in addStmt() 113 void ParentMap::setParent(const Stmt *S, const Stmt *Parent) { in setParent() [all …]
|
D | Stmt.cpp | 34 } StmtClassInfo[Stmt::lastStmtConstant+1]; 36 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { in getStmtInfoTableEntry() 45 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ in getStmtInfoTableEntry() 46 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); in getStmtInfoTableEntry() 52 void *Stmt::operator new(size_t bytes, ASTContext& C, in operator new() 57 void *Stmt::operator new(size_t bytes, ASTContext* C, in operator new() 62 const char *Stmt::getStmtClassName() const { in getStmtClassName() 66 void Stmt::PrintStats() { in PrintStats() 68 getStmtInfoTableEntry(Stmt::NullStmtClass); in PrintStats() 72 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats() [all …]
|
D | StmtProfile.cpp | 36 void VisitStmt(const Stmt *S); 70 void StmtProfiler::VisitStmt(const Stmt *S) { in VisitStmt() 72 for (Stmt::const_child_range C = S->children(); C; ++C) { in VisitStmt() 537 static Stmt::StmtClass DecodeOperatorCall(const CXXOperatorCallExpr *S, in DecodeOperatorCall() 555 return Stmt::UnaryOperatorClass; in DecodeOperatorCall() 559 return Stmt::BinaryOperatorClass; in DecodeOperatorCall() 564 return Stmt::UnaryOperatorClass; in DecodeOperatorCall() 568 return Stmt::BinaryOperatorClass; in DecodeOperatorCall() 573 return Stmt::UnaryOperatorClass; in DecodeOperatorCall() 577 return Stmt::BinaryOperatorClass; in DecodeOperatorCall() [all …]
|
/external/clang/tools/libclang/ |
D | CXCursor.cpp | 92 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent, in MakeCXCursor() 99 case Stmt::NoStmtClass: in MakeCXCursor() 102 case Stmt::CaseStmtClass: in MakeCXCursor() 106 case Stmt::DefaultStmtClass: in MakeCXCursor() 110 case Stmt::IfStmtClass: in MakeCXCursor() 114 case Stmt::SwitchStmtClass: in MakeCXCursor() 118 case Stmt::WhileStmtClass: in MakeCXCursor() 122 case Stmt::DoStmtClass: in MakeCXCursor() 126 case Stmt::ForStmtClass: in MakeCXCursor() 130 case Stmt::GotoStmtClass: in MakeCXCursor() [all …]
|
/external/clang/include/clang/Basic/ |
D | StmtNodes.td | 3 class Stmt<bit abstract = 0> : AttrSubject { 7 class DStmt<Stmt base, bit abstract = 0> : Stmt<abstract> { 8 Stmt Base = base; 12 def NullStmt : Stmt; 13 def CompoundStmt : Stmt; 14 def LabelStmt : Stmt; 15 def AttributedStmt : Stmt; 16 def IfStmt : Stmt; 17 def SwitchStmt : Stmt; 18 def WhileStmt : Stmt; [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | Environment.cpp | 28 case Stmt::OpaqueValueExprClass: in ignoreTransparentExprs() 31 case Stmt::ExprWithCleanupsClass: in ignoreTransparentExprs() 34 case Stmt::CXXBindTemporaryExprClass: in ignoreTransparentExprs() 37 case Stmt::SubstNonTypeTemplateParmExprClass: in ignoreTransparentExprs() 48 static const Stmt *ignoreTransparentExprs(const Stmt *S) { in ignoreTransparentExprs() 54 EnvironmentEntry::EnvironmentEntry(const Stmt *S, const LocationContext *L) in EnvironmentEntry() 55 : std::pair<const Stmt *, in EnvironmentEntry() 70 const Stmt *S = Entry.getStmt(); in getSVal() 74 case Stmt::CXXBindTemporaryExprClass: in getSVal() 75 case Stmt::ExprWithCleanupsClass: in getSVal() [all …]
|
D | CheckerHelpers.cpp | 18 bool clang::ento::containsMacro(const Stmt *S) { in containsMacro() 25 for (Stmt::const_child_iterator I = S->child_begin(); I != S->child_end(); in containsMacro() 27 if (const Stmt *child = *I) in containsMacro() 35 bool clang::ento::containsEnum(const Stmt *S) { in containsEnum() 41 for (Stmt::const_child_iterator I = S->child_begin(); I != S->child_end(); in containsEnum() 43 if (const Stmt *child = *I) in containsEnum() 51 bool clang::ento::containsStaticLocal(const Stmt *S) { in containsStaticLocal() 59 for (Stmt::const_child_iterator I = S->child_begin(); I != S->child_end(); in containsStaticLocal() 61 if (const Stmt *child = *I) in containsStaticLocal() 69 bool clang::ento::containsBuiltinOffsetOf(const Stmt *S) { in containsBuiltinOffsetOf() [all …]
|
D | ExprEngine.cpp | 284 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); in processCFGElement() 326 const Stmt *ReferenceStmt, in removeDead() 328 const Stmt *DiagnosticStmt, in removeDead() 412 const Stmt *currStmt = S.getStmt(); in ProcessStmt() 606 void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, in Visit() 619 case Stmt::CXXDependentScopeMemberExprClass: in Visit() 620 case Stmt::CXXTryStmtClass: in Visit() 621 case Stmt::CXXTypeidExprClass: in Visit() 622 case Stmt::CXXUuidofExprClass: in Visit() 623 case Stmt::MSPropertyRefExprClass: in Visit() [all …]
|
D | BugReporter.cpp | 57 static const Stmt *GetPreviousStmt(const ExplodedNode *N) { in GetPreviousStmt() 59 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetPreviousStmt() 65 static inline const Stmt* 67 if (const Stmt *S = PathDiagnosticLocation::getStmt(N)) in GetCurrentOrPreviousStmt() 309 const Stmt *getParent(const Stmt *S) { in getParent() 315 PathDiagnosticLocation getEnclosingStmtLocation(const Stmt *S); 329 if (const Stmt *S = PathDiagnosticLocation::getNextStmt(N)) in ExecutionContinues() 367 static const Stmt *getEnclosingParent(const Stmt *S, const ParentMap &PM) { in getEnclosingParent() 371 const Stmt *Parent = PM.getParentIgnoreParens(S); in getEnclosingParent() 376 case Stmt::ForStmtClass: in getEnclosingParent() [all …]
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 112 typedef internal::Matcher<Stmt> StatementMatcher; 572 const internal::VariadicAllOfMatcher<Stmt> stmt; 583 Stmt, 597 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr; 607 const internal::VariadicDynCastAllOfMatcher<Stmt, CallExpr> callExpr; 615 const internal::VariadicDynCastAllOfMatcher<Stmt, LambdaExpr> lambdaExpr; 625 Stmt, 638 const internal::VariadicDynCastAllOfMatcher<Stmt, InitListExpr> initListExpr; 677 Stmt, 689 Stmt, [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CheckerHelpers.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) { in containsStmt() 31 for (Stmt::const_child_range I = S->children(); I; ++I) in containsStmt() 32 if (const Stmt *child = *I) in containsStmt()
|
/external/clang/lib/Tooling/ |
D | RefactoringCallbacks.cpp | 24 const Stmt &From, in replaceStmtWithText() 30 const Stmt &From, in replaceStmtWithStmt() 31 const Stmt &To) { in replaceStmtWithStmt() 42 if (const Stmt *FromMatch = Result.Nodes.getStmtAs<Stmt>(FromId)) { in run() 55 const Stmt *FromMatch = Result.Nodes.getStmtAs<Stmt>(FromId); in run() 56 const Stmt *ToMatch = Result.Nodes.getStmtAs<Stmt>(ToId); in run() 69 const Stmt *Body = PickTrueBranch ? Node->getThen() : Node->getElse(); in run()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | IdempotentOperationChecker.cpp | 97 static bool containsNonLocalVarDecl(const Stmt *S); 335 const Stmt *predStmt = in checkPostStmt() 629 case Stmt::ArraySubscriptExprClass: in CanVary() 630 case Stmt::MemberExprClass: in CanVary() 631 case Stmt::StmtExprClass: in CanVary() 632 case Stmt::CallExprClass: in CanVary() 633 case Stmt::VAArgExprClass: in CanVary() 634 case Stmt::ShuffleVectorExprClass: in CanVary() 640 case Stmt::IntegerLiteralClass: in CanVary() 641 case Stmt::CharacterLiteralClass: in CanVary() [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | LiveVariables.h | 26 class Stmt; variable 35 llvm::ImmutableSet<const Stmt *> liveStmts; 43 LivenessValues(llvm::ImmutableSet<const Stmt *> LiveStmts, in LivenessValues() 49 bool isLive(const Stmt *S) const; 62 virtual void observeStmt(const Stmt *S, in observeStmt() 86 bool isLive(const Stmt *S, const VarDecl *D); 90 bool isLive(const Stmt *Loc, const Stmt *StmtVal);
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 63 const Stmt *stmt) const; 237 llvm::SmallVector<Stmt *, 12> childrenBuf; 238 ArrayRef<Stmt*> children; 240 reverse_children(Stmt *S); 242 typedef ArrayRef<Stmt*>::reverse_iterator iterator; 248 reverse_children::reverse_children(Stmt *S) { in reverse_children() 255 case Stmt::InitListExprClass: { in reverse_children() 257 children = llvm::makeArrayRef(reinterpret_cast<Stmt**>(IE->getInits()), in reverse_children() 266 for (Stmt::child_range I = S->children(); I; ++I) { in reverse_children() 327 const Stmt *lastLookup; [all …]
|
D | LiveVariables.cpp | 101 llvm::ImmutableSet<const Stmt *>::Factory SSetFact; 105 llvm::DenseMap<const Stmt *, LiveVariables::LivenessValues> stmtsToLiveness; 135 bool LiveVariables::LivenessValues::isLive(const Stmt *S) const { in isLive() 162 llvm::ImmutableSetRef<const Stmt *> in merge() 197 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) { in isLive() 201 bool LiveVariables::isLive(const Stmt *Loc, const Stmt *S) { in isLive() 229 void Visit(Stmt *S); 246 static const Stmt *LookThroughStmt(const Stmt *S) { in LookThroughStmt() 263 static void AddLiveStmt(llvm::ImmutableSet<const Stmt *> &Set, in AddLiveStmt() 264 llvm::ImmutableSet<const Stmt *>::Factory &F, in AddLiveStmt() [all …]
|
/external/clang/include/clang/Analysis/ |
D | AnalysisContext.h | 31 class Stmt; variable 133 void registerForcedBlockExpression(const Stmt *stmt); 134 const CFGBlock *getBlockForRegisteredExpression(const Stmt *stmt); 137 Stmt *getBody() const; 142 Stmt *getBody(bool &IsAutosynthesized) const; 180 const Stmt *S, 272 const Stmt *CallSite; 282 const Stmt *s, const CFGBlock *blk, in StackFrameContext() 290 const Stmt *getCallSite() const { return CallSite; } in getCallSite() 302 const LocationContext *parent, const Stmt *s, in Profile() [all …]
|
D | CFG.h | 35 class Stmt; variable 108 CFGStmt(Stmt *S) : CFGElement(Statement, S) {} in CFGStmt() 110 const Stmt *getStmt() const { in getStmt() 111 return static_cast<const Stmt *>(Data1.getPointer()); in getStmt() 168 CFGAutomaticObjDtor(const VarDecl *var, const Stmt *stmt) in CFGAutomaticObjDtor() 176 const Stmt *getTriggerStmt() const { in getTriggerStmt() 177 return static_cast<Stmt*>(Data2.getPointer()); in getTriggerStmt() 252 llvm::PointerIntPair<Stmt *, 1> Data; 255 CFGTerminator(Stmt *S, bool TemporaryDtorsBranch = false) 258 Stmt *getStmt() { return Data.getPointer(); } in getStmt() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | TransRetainReleaseDealloc.cpp | 37 Stmt *Body; 54 void transformBody(Stmt *body, Decl *ParentD) { in transformBody() 193 Stmt *nextStmt = getNextStmt(E); in isReturnedAfterAutorelease() 214 Stmt *prevStmt, *nextStmt; in isPlusOneAssignBeforeOrAfterAutorelease() 221 bool isPlusOneAssignToVar(Stmt *S, Decl *RefD) { in isPlusOneAssignToVar() 246 Stmt *getNextStmt(Expr *E) { in getNextStmt() 250 std::pair<Stmt *, Stmt *> getPreviousAndNextStmt(Expr *E) { in getPreviousAndNextStmt() 251 Stmt *prevStmt = 0, *nextStmt = 0; in getPreviousAndNextStmt() 255 Stmt *OuterS = E, *InnerS; in getPreviousAndNextStmt() 267 Stmt::child_iterator currChildS = OuterS->child_begin(); in getPreviousAndNextStmt() [all …]
|