/external/clang/include/clang/AST/ |
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 | 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 | 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(nullptr), HandlerBlock(nullptr) {} 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 | 59 class LLVM_ALIGNAS(LLVM_PTR_SIZE) Stmt { in LLVM_ALIGNAS() 82 friend class Stmt; in LLVM_ALIGNAS() local 294 : llvm::iterator_adaptor_base<ExprIterator, Stmt **, in LLVM_ALIGNAS() 297 ExprIterator(Stmt **I) : iterator_adaptor_base(I) {} in LLVM_ALIGNAS() 308 : llvm::iterator_adaptor_base<ConstExprIterator, const Stmt *const *, in LLVM_ALIGNAS() 312 ConstExprIterator(const Stmt *const *I) : iterator_adaptor_base(I) {} in LLVM_ALIGNAS() 327 explicit Stmt(StmtClass SC, EmptyShell) : Stmt(SC) {} in LLVM_ALIGNAS() 330 Stmt(StmtClass SC) { in LLVM_ALIGNAS() 334 if (StatisticsEnabled) Stmt::addStmtClass(SC); in LLVM_ALIGNAS() 377 Stmt *IgnoreImplicit(); in LLVM_ALIGNAS() [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 36 Stmt **stmt; 67 Stmt*& GetDeclExpr() const; 69 StmtIteratorBase(Stmt **s) : stmt(s), RawVAPtr(0) {} in StmtIteratorBase() 85 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} in StmtIteratorImpl() 121 struct StmtIterator : public StmtIteratorImpl<StmtIterator,Stmt*&> { 122 explicit StmtIterator() : StmtIteratorImpl<StmtIterator,Stmt*&>() {} in StmtIterator() 124 StmtIterator(Stmt** S) : StmtIteratorImpl<StmtIterator,Stmt*&>(S) {} in StmtIterator() 127 : StmtIteratorImpl<StmtIterator,Stmt*&>(dgi, dge) {} in StmtIterator() 130 : StmtIteratorImpl<StmtIterator,Stmt*&>(t) {} in StmtIterator() [all …]
|
D | StmtOpenMP.h | 33 class OMPExecutableDirective : public Stmt { 70 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)), in OMPExecutableDirective() 86 void setAssociatedStmt(Stmt *S) { in setAssociatedStmt() 197 Stmt *getAssociatedStmt() const { in getAssociatedStmt() 199 return const_cast<Stmt *>(*child_begin()); in getAssociatedStmt() 204 static bool classof(const Stmt *S) { in classof() 212 Stmt **ChildStorage = reinterpret_cast<Stmt **>(getClauses().end()); in children() 273 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, bool HasCancel); 286 static bool classof(const Stmt *T) { in classof() 646 const Stmt *getBody() const { in getBody() [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 *SubStmt : S->children()) in BuildParentMap() 53 case Stmt::BinaryConditionalOperatorClass: { in BuildParentMap() 71 case Stmt::OpaqueValueExprClass: { in BuildParentMap() 85 for (Stmt *SubStmt : S->children()) { in BuildParentMap() 95 ParentMap::ParentMap(Stmt *S) : Impl(nullptr) { 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 | 35 } StmtClassInfo[Stmt::lastStmtConstant+1]; 37 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { in getStmtInfoTableEntry() 46 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ in getStmtInfoTableEntry() 47 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); in getStmtInfoTableEntry() 53 void *Stmt::operator new(size_t bytes, const ASTContext& C, in operator new() 58 const char *Stmt::getStmtClassName() const { in getStmtClassName() 62 void Stmt::PrintStats() { in PrintStats() 64 getStmtInfoTableEntry(Stmt::NullStmtClass); in PrintStats() 68 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats() 74 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats() [all …]
|
D | StmtObjC.cpp | 21 ObjCForCollectionStmt::ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, in ObjCForCollectionStmt() 22 Stmt *Body, SourceLocation FCL, in ObjCForCollectionStmt() 24 : Stmt(ObjCForCollectionStmtClass) { in ObjCForCollectionStmt() 32 ObjCAtTryStmt::ObjCAtTryStmt(SourceLocation atTryLoc, Stmt *atTryStmt, in ObjCAtTryStmt() 33 Stmt **CatchStmts, unsigned NumCatchStmts, in ObjCAtTryStmt() 34 Stmt *atFinallyStmt) in ObjCAtTryStmt() 35 : Stmt(ObjCAtTryStmtClass), AtTryLoc(atTryLoc), in ObjCAtTryStmt() 37 Stmt **Stmts = getStmts(); in ObjCAtTryStmt() 47 SourceLocation atTryLoc, Stmt *atTryStmt, in Create() 48 Stmt **CatchStmts, unsigned NumCatchStmts, in Create() [all …]
|
D | StmtOpenMP.cpp | 59 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, bool HasCancel) { in Create() 63 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + sizeof(Stmt *)); in Create() 78 C.Allocate(Size + sizeof(OMPClause *) * NumClauses + sizeof(Stmt *)); in CreateEmpty() 85 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, in Create() 91 sizeof(Stmt *) * numLoopChildren(CollapsedNum, OMPD_simd)); in Create() 119 sizeof(Stmt *) * numLoopChildren(CollapsedNum, OMPD_simd)); in CreateEmpty() 126 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, in Create() 132 sizeof(Stmt *) * numLoopChildren(CollapsedNum, OMPD_for)); in Create() 168 sizeof(Stmt *) * numLoopChildren(CollapsedNum, OMPD_for)); in CreateEmpty() 175 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, in Create() [all …]
|
D | StmtCXX.cpp | 27 Stmt *tryBlock, ArrayRef<Stmt *> handlers) { in Create() 29 Size += ((handlers.size() + 1) * sizeof(Stmt *)); in Create() 38 Size += ((numHandlers + 1) * sizeof(Stmt *)); in Create() 44 CXXTryStmt::CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, in CXXTryStmt() 45 ArrayRef<Stmt *> handlers) in CXXTryStmt() 46 : Stmt(CXXTryStmtClass), TryLoc(tryLoc), NumHandlers(handlers.size()) { in CXXTryStmt() 47 Stmt **Stmts = reinterpret_cast<Stmt **>(this + 1); in CXXTryStmt() 54 Stmt *Body, SourceLocation FL, in CXXForRangeStmt() 57 : Stmt(CXXForRangeStmtClass), ForLoc(FL), CoawaitLoc(CAL), ColonLoc(CL), in CXXForRangeStmt()
|
/external/clang/tools/libclang/ |
D | CXCursor.cpp | 105 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent, in MakeCXCursor() 112 case Stmt::NoStmtClass: in MakeCXCursor() 115 case Stmt::CaseStmtClass: in MakeCXCursor() 119 case Stmt::DefaultStmtClass: in MakeCXCursor() 123 case Stmt::IfStmtClass: in MakeCXCursor() 127 case Stmt::SwitchStmtClass: in MakeCXCursor() 131 case Stmt::WhileStmtClass: in MakeCXCursor() 135 case Stmt::DoStmtClass: in MakeCXCursor() 139 case Stmt::ForStmtClass: in MakeCXCursor() 143 case Stmt::GotoStmtClass: in MakeCXCursor() [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() 71 const Stmt *S = Entry.getStmt(); in getSVal() 75 case Stmt::CXXBindTemporaryExprClass: in getSVal() 76 case Stmt::ExprWithCleanupsClass: in getSVal() [all …]
|
D | ExprEngine.cpp | 296 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); in processCFGElement() 343 const Stmt *ReferenceStmt, in removeDead() 345 const Stmt *DiagnosticStmt, in removeDead() 429 const Stmt *currStmt = S.getStmt(); in ProcessStmt() 614 const Stmt *Arg = DE->getArgument(); in ProcessDeleteDtor() 743 void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, in Visit() 756 case Stmt::CXXDependentScopeMemberExprClass: in Visit() 757 case Stmt::CXXTryStmtClass: in Visit() 758 case Stmt::CXXTypeidExprClass: in Visit() 759 case Stmt::CXXUuidofExprClass: 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() 263 const Stmt *Start = CF->getStartLocation().asStmt(); in removeEdgesToDefaultInitializers() 264 const Stmt *End = CF->getEndLocation().asStmt(); in removeEdgesToDefaultInitializers() 345 const Stmt *getParent(const Stmt *S) { in getParent() 351 PathDiagnosticLocation getEnclosingStmtLocation(const Stmt *S); 365 if (const Stmt *S = PathDiagnosticLocation::getNextStmt(N)) in ExecutionContinues() 403 static const Stmt *getEnclosingParent(const Stmt *S, const ParentMap &PM) { in getEnclosingParent() [all …]
|
D | CheckerHelpers.cpp | 19 bool clang::ento::containsMacro(const Stmt *S) { in containsMacro() 26 for (const Stmt *Child : S->children()) in containsMacro() 34 bool clang::ento::containsEnum(const Stmt *S) { in containsEnum() 40 for (const Stmt *Child : S->children()) in containsEnum() 48 bool clang::ento::containsStaticLocal(const Stmt *S) { in containsStaticLocal() 56 for (const Stmt *Child : S->children()) in containsStaticLocal() 64 bool clang::ento::containsBuiltinOffsetOf(const Stmt *S) { in containsBuiltinOffsetOf() 68 for (const Stmt *Child : S->children()) in containsBuiltinOffsetOf() 77 clang::ento::parseAssignment(const Stmt *S) { in parseAssignment()
|
/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/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 124 typedef internal::Matcher<Stmt> StatementMatcher; 186 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 207 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 232 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument 876 const internal::VariadicAllOfMatcher<Stmt> stmt; 887 Stmt, 901 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr; 911 const internal::VariadicDynCastAllOfMatcher<Stmt, CallExpr> callExpr; 919 const internal::VariadicDynCastAllOfMatcher<Stmt, LambdaExpr> lambdaExpr; 929 Stmt, [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | 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(); in VisitIfStmt() 109 const Stmt *Stmt2 = I->getElse(); in VisitIfStmt() 138 const Stmt *Else = Stmt2; in VisitIfStmt() 304 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1, in isIdenticalStmt() 305 const Stmt *Stmt2, bool IgnoreSideEffects) { in isIdenticalStmt() 351 case Stmt::CallExprClass: in isIdenticalStmt() 352 case Stmt::ArraySubscriptExprClass: in isIdenticalStmt() 353 case Stmt::OMPArraySectionExprClass: in isIdenticalStmt() [all …]
|
/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/CodeGen/ |
D | CGStmt.cpp | 38 void CodeGenFunction::EmitStopPoint(const Stmt *S) { in EmitStopPoint() 48 void CodeGenFunction::EmitStmt(const Stmt *S) { in EmitStmt() 78 case Stmt::NoStmtClass: in EmitStmt() 79 case Stmt::CXXCatchStmtClass: in EmitStmt() 80 case Stmt::SEHExceptStmtClass: in EmitStmt() 81 case Stmt::SEHFinallyStmtClass: in EmitStmt() 82 case Stmt::MSDependentExistsStmtClass: in EmitStmt() 84 case Stmt::NullStmtClass: in EmitStmt() 85 case Stmt::CompoundStmtClass: in EmitStmt() 86 case Stmt::DeclStmtClass: in EmitStmt() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CheckerHelpers.h | 27 bool containsMacro(const Stmt *S); 28 bool containsEnum(const Stmt *S); 29 bool containsStaticLocal(const Stmt *S); 30 bool containsBuiltinOffsetOf(const Stmt *S); 31 template <class T> bool containsStmt(const Stmt *S) { in containsStmt() 35 for (const Stmt *Child : S->children()) in containsStmt() 43 parseAssignment(const Stmt *S);
|
/external/clang/lib/Analysis/ |
D | ReachableCode.cpp | 49 static bool isTrivialDoWhile(const CFGBlock *B, const Stmt *S) { in isTrivialDoWhile() 52 if (const Stmt *Term = B->getTerminator()) { in isTrivialDoWhile() 61 static bool isDeadReturn(const CFGBlock *B, const Stmt *S) { in isDeadReturn() 126 static bool isExpandedFromConfigurationMacro(const Stmt *S, in isExpandedFromConfigurationMacro() 159 static bool isConfigurationValue(const Stmt *S, in isConfigurationValue() 182 case Stmt::CallExprClass: { in isConfigurationValue() 187 case Stmt::DeclRefExprClass: in isConfigurationValue() 189 case Stmt::ObjCBoolLiteralExprClass: in isConfigurationValue() 192 case Stmt::CXXBoolLiteralExprClass: in isConfigurationValue() 193 case Stmt::IntegerLiteralClass: { in isConfigurationValue() [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() 47 bool isLive(const Stmt *S) const; 60 virtual void observeStmt(const Stmt *S, in observeStmt() 83 bool isLive(const Stmt *S, const VarDecl *D); 87 bool isLive(const Stmt *Loc, const Stmt *StmtVal);
|