| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | ParentMap.h | 17 class Stmt; variable 23 ParentMap(Stmt* ASTRoot); 29 void addStmt(Stmt* S); 34 void setParent(const Stmt *S, const Stmt *Parent); 36 Stmt *getParent(Stmt*) const; 37 Stmt *getParentIgnoreParens(Stmt *) const; 38 Stmt *getParentIgnoreParenCasts(Stmt *) const; 39 Stmt *getParentIgnoreParenImpCasts(Stmt *) const; 40 Stmt *getOuterParenParent(Stmt *) const; 42 const Stmt *getParent(const Stmt* S) const { in getParent() [all …]
|
| H A D | StmtObjC.h | 23 class ObjCForCollectionStmt : public Stmt { 25 Stmt* SubExprs[END_EXPR]; // SubExprs[ELEM] is an expression or declstmt. 29 ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, Stmt *Body, 32 Stmt(ObjCForCollectionStmtClass, Empty) { } in ObjCForCollectionStmt() 34 Stmt *getElement() { return SubExprs[ELEM]; } in getElement() 38 Stmt *getBody() { return SubExprs[BODY]; } in getBody() 40 const Stmt *getElement() const { return SubExprs[ELEM]; } in getElement() 44 const Stmt *getBody() const { return SubExprs[BODY]; } in getBody() 46 void setElement(Stmt *S) { SubExprs[ELEM] = S; } in setElement() 48 SubExprs[COLLECTION] = reinterpret_cast<Stmt*>(E); in setCollection() [all …]
|
| H A D | StmtCXX.h | 28 class CXXCatchStmt : public Stmt { 33 Stmt *HandlerBlock; 36 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) in CXXCatchStmt() 37 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl), in CXXCatchStmt() 41 : Stmt(CXXCatchStmtClass), ExceptionDecl(nullptr), HandlerBlock(nullptr) {} in CXXCatchStmt() 51 Stmt *getHandlerBlock() const { return HandlerBlock; } in getHandlerBlock() 53 static bool classof(const Stmt *T) { in classof() 68 class CXXTryStmt final : public Stmt, 69 private llvm::TrailingObjects<CXXTryStmt, Stmt *> { 76 size_t numTrailingObjects(OverloadToken<Stmt *>) const { return NumHandlers; } in numTrailingObjects() argument [all …]
|
| H A D | Stmt.h | 72 class alignas(void *) Stmt { 103 friend class Stmt; variable 1132 template<typename T, typename TPtr = T *, typename StmtPtr = Stmt *> 1148 using ConstCastIterator = CastIterator<T, const T *const, const Stmt *const>; 1159 explicit Stmt(StmtClass SC, EmptyShell) : Stmt(SC) {} in Stmt() function 1162 Stmt() = delete; 1163 Stmt(const Stmt &) = delete; 1164 Stmt(Stmt &&) = delete; 1165 Stmt &operator=(const Stmt &) = delete; 1166 Stmt &operator=(Stmt &&) = delete; [all …]
|
| H A D | StmtGraphTraits.h | 23 template <> struct GraphTraits<clang::Stmt *> { 24 using NodeRef = clang::Stmt *; 25 using ChildIteratorType = clang::Stmt::child_iterator; 26 using nodes_iterator = llvm::df_iterator<clang::Stmt *>; 28 static NodeRef getEntryNode(clang::Stmt *S) { return S; } 40 static nodes_iterator nodes_begin(clang::Stmt* S) { 44 static nodes_iterator nodes_end(clang::Stmt* S) { 49 template <> struct GraphTraits<const clang::Stmt *> { 50 using NodeRef = const clang::Stmt *; 51 using ChildIteratorType = clang::Stmt::const_child_iterator; [all …]
|
| H A D | StmtIterator.h | 24 class Stmt; variable 37 Stmt **stmt; 43 StmtIteratorBase(Stmt **s) : stmt(s) {} in StmtIteratorBase() 73 Stmt*& GetDeclExpr() const; 89 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} in StmtIteratorImpl() 128 struct StmtIterator : public StmtIteratorImpl<StmtIterator, Stmt*&> { 130 StmtIterator(Stmt** S) : StmtIteratorImpl<StmtIterator, Stmt*&>(S) {} in StmtIterator() 132 : StmtIteratorImpl<StmtIterator, Stmt*&>(dgi, dge) {} in StmtIterator() 134 : StmtIteratorImpl<StmtIterator, Stmt*&>(t) {} in StmtIterator() 138 : StmtIteratorImpl<StmtIterator, Stmt *&>(RHS) {} in StmtIterator() [all …]
|
| H A D | StmtOpenMP.h | 142 class OMPCanonicalLoop : public Stmt { 157 Stmt *SubStmts[LastSubStmt + 1] = {}; 159 OMPCanonicalLoop() : Stmt(StmtClass::OMPCanonicalLoopClass) {} in OMPCanonicalLoop() 163 static OMPCanonicalLoop *create(const ASTContext &Ctx, Stmt *LoopStmt, in create() 180 static bool classof(const Stmt *S) { in classof() 199 Stmt *getLoopStmt() { return SubStmts[LOOP_STMT]; } in getLoopStmt() 200 const Stmt *getLoopStmt() const { return SubStmts[LOOP_STMT]; } in getLoopStmt() 201 void setLoopStmt(Stmt *S) { in setLoopStmt() 266 class OMPExecutableDirective : public Stmt { 297 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)), in OMPExecutableDirective() [all …]
|
| /openbsd-src/gnu/llvm/clang/tools/libclang/ |
| H A D | CXCursor.cpp | 169 CXCursor cxcursor::MakeCXCursor(const Stmt *S, const Decl *Parent, in MakeCXCursor() 176 case Stmt::NoStmtClass: in MakeCXCursor() 179 case Stmt::CaseStmtClass: in MakeCXCursor() 183 case Stmt::DefaultStmtClass: in MakeCXCursor() 187 case Stmt::IfStmtClass: in MakeCXCursor() 191 case Stmt::SwitchStmtClass: in MakeCXCursor() 195 case Stmt::WhileStmtClass: in MakeCXCursor() 199 case Stmt::DoStmtClass: in MakeCXCursor() 203 case Stmt::ForStmtClass: in MakeCXCursor() 207 case Stmt::GotoStmtClass: in MakeCXCursor() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ParentMap.cpp | 22 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy; 29 static void BuildParentMap(MapTy& M, Stmt* S, in BuildParentMap() 35 case Stmt::PseudoObjectExprClass: { in BuildParentMap() 43 for (Stmt *SubStmt : S->children()) in BuildParentMap() 57 case Stmt::BinaryConditionalOperatorClass: { in BuildParentMap() 75 case Stmt::OpaqueValueExprClass: { in BuildParentMap() 88 case Stmt::CapturedStmtClass: in BuildParentMap() 89 for (Stmt *SubStmt : S->children()) { in BuildParentMap() 95 if (Stmt *SubStmt = cast<CapturedStmt>(S)->getCapturedStmt()) { in BuildParentMap() 101 for (Stmt *SubStmt : S->children()) { in BuildParentMap() [all …]
|
| H A D | Stmt.cpp | 55 } StmtClassInfo[Stmt::lastStmtConstant+1]; 57 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { in getStmtInfoTableEntry() 66 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ in getStmtInfoTableEntry() 67 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); in getStmtInfoTableEntry() 73 void *Stmt::operator new(size_t bytes, const ASTContext& C, in operator new() 78 const char *Stmt::getStmtClassName() const { in getStmtClassName() 100 void Stmt::PrintStats() { in PrintStats() 102 getStmtInfoTableEntry(Stmt::NullStmtClass); in PrintStats() 106 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats() 112 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats() [all …]
|
| H A D | StmtObjC.cpp | 20 ObjCForCollectionStmt::ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, in ObjCForCollectionStmt() 21 Stmt *Body, SourceLocation FCL, in ObjCForCollectionStmt() 23 : Stmt(ObjCForCollectionStmtClass) { in ObjCForCollectionStmt() 31 ObjCAtTryStmt::ObjCAtTryStmt(SourceLocation atTryLoc, Stmt *atTryStmt, in ObjCAtTryStmt() 32 Stmt **CatchStmts, unsigned NumCatchStmts, in ObjCAtTryStmt() 33 Stmt *atFinallyStmt) in ObjCAtTryStmt() 34 : Stmt(ObjCAtTryStmtClass), AtTryLoc(atTryLoc), in ObjCAtTryStmt() 36 Stmt **Stmts = getStmts(); in ObjCAtTryStmt() 46 SourceLocation atTryLoc, Stmt *atTryStmt, in Create() 47 Stmt **CatchStmts, unsigned NumCatchStmts, in Create() [all …]
|
| H A D | StmtCXX.cpp | 26 Stmt *tryBlock, ArrayRef<Stmt *> handlers) { in Create() 27 const size_t Size = totalSizeToAlloc<Stmt *>(handlers.size() + 1); in Create() 34 const size_t Size = totalSizeToAlloc<Stmt *>(numHandlers + 1); in Create() 39 CXXTryStmt::CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, in CXXTryStmt() 40 ArrayRef<Stmt *> handlers) in CXXTryStmt() 41 : Stmt(CXXTryStmtClass), TryLoc(tryLoc), NumHandlers(handlers.size()) { in CXXTryStmt() 42 Stmt **Stmts = getStmts(); in CXXTryStmt() 47 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range, in CXXForRangeStmt() 50 Stmt *Body, SourceLocation FL, in CXXForRangeStmt() 53 : Stmt(CXXForRangeStmtClass), ForLoc(FL), CoawaitLoc(CAL), ColonLoc(CL), in CXXForRangeStmt() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Analysis/Analyses/ |
| H A D | ExprMutationAnalyzer.h | 25 ExprMutationAnalyzer(const Stmt &Stm, ASTContext &Context) in ExprMutationAnalyzer() 30 const Stmt *findMutation(const Expr *Exp); 31 const Stmt *findMutation(const Decl *Dec); 39 const Stmt *findPointeeMutation(const Expr *Exp); 40 const Stmt *findPointeeMutation(const Decl *Dec); 41 static bool isUnevaluated(const Stmt *Smt, const Stmt &Stm, 45 using MutationFinder = const Stmt *(ExprMutationAnalyzer::*)(const Expr *); 46 using ResultMap = llvm::DenseMap<const Expr *, const Stmt *>; 48 const Stmt *findMutationMemoized(const Expr *Exp, 51 const Stmt *tryEachDeclRef(const Decl *Dec, MutationFinder Finder); [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | Environment.cpp | 42 case Stmt::OpaqueValueExprClass: in ignoreTransparentExprs() 45 case Stmt::ExprWithCleanupsClass: in ignoreTransparentExprs() 48 case Stmt::ConstantExprClass: in ignoreTransparentExprs() 51 case Stmt::CXXBindTemporaryExprClass: in ignoreTransparentExprs() 54 case Stmt::SubstNonTypeTemplateParmExprClass: in ignoreTransparentExprs() 65 static const Stmt *ignoreTransparentExprs(const Stmt *S) { in ignoreTransparentExprs() 71 EnvironmentEntry::EnvironmentEntry(const Stmt *S, const LocationContext *L) in EnvironmentEntry() 72 : std::pair<const Stmt *, in EnvironmentEntry() 88 const Stmt *S = Entry.getStmt(); in getSVal() 98 case Stmt::CXXBindTemporaryExprClass: in getSVal() [all …]
|
| H A D | ExprEngine.cpp | 140 const Stmt *S = getItem().getStmtOrNull(); in printJson() 998 const Stmt *S, in shouldRemoveDeadBindings() 1024 const Stmt *ReferenceStmt, in removeDead() 1026 const Stmt *DiagnosticStmt, in removeDead() 1103 void ExprEngine::ProcessStmt(const Stmt *currStmt, ExplodedNode *Pred) { in ProcessStmt() 1133 void ExprEngine::ProcessLoopExit(const Stmt* S, ExplodedNode *Pred) { in ProcessLoopExit() 1398 const Stmt *Arg = DE->getArgument(); in ProcessDeleteDtor() 1691 void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, in Visit() 1702 case Stmt::CXXDependentScopeMemberExprClass: in Visit() 1703 case Stmt::CXXTryStmtClass: in Visit() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 725 const internal::VariadicDynCastAllOfMatcher<Stmt, ObjCAutoreleasePoolStmt> 789 const internal::VariadicDynCastAllOfMatcher<Stmt, UnaryExprOrTypeTraitExpr> 811 const internal::VariadicAllOfMatcher<Stmt> stmt; 812 const internal::VariadicDynCastAllOfMatcher<Stmt, DeclStmt> declStmt; 813 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr; 814 const internal::VariadicDynCastAllOfMatcher<Stmt, UnresolvedMemberExpr> 816 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXDependentScopeMemberExpr> 818 const internal::VariadicDynCastAllOfMatcher<Stmt, CallExpr> callExpr; 819 const internal::VariadicDynCastAllOfMatcher<Stmt, LambdaExpr> lambdaExpr; 820 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXMemberCallExpr> [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaExceptionSpec.cpp | 996 static CanThrowResult canSubStmtsThrow(Sema &Self, const Stmt *S) { in canSubStmtsThrow() 998 for (const Stmt *SubStmt : S->children()) { in canSubStmtsThrow() 1125 CanThrowResult Sema::canThrow(const Stmt *S) { in canThrow() 1417 case Stmt::AttributedStmtClass: in canThrow() 1418 case Stmt::BreakStmtClass: in canThrow() 1419 case Stmt::CapturedStmtClass: in canThrow() 1420 case Stmt::CaseStmtClass: in canThrow() 1421 case Stmt::CompoundStmtClass: in canThrow() 1422 case Stmt::ContinueStmtClass: in canThrow() 1423 case Stmt::CoreturnStmtClass: in canThrow() [all …]
|
| H A D | JumpDiagnostics.cpp | 71 llvm::DenseMap<Stmt*, unsigned> LabelAndGotoScopes; 72 SmallVector<Stmt*, 16> Jumps; 74 SmallVector<Stmt*, 4> IndirectJumps; 75 SmallVector<Stmt*, 4> AsmJumps; 80 JumpScopeChecker(Stmt *Body, Sema &S); 86 void BuildScopeInformation(Stmt *S, unsigned &origParentScope); 92 void DiagnoseIndirectOrAsmJump(Stmt *IG, unsigned IGScope, LabelDecl *Target, 94 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 106 JumpScopeChecker::JumpScopeChecker(Stmt *Body, Sema &s) in JumpScopeChecker() 304 void JumpScopeChecker::BuildScopeInformation(Stmt *S, in BuildScopeInformation() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | IdenticalExprChecker.cpp | 28 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1, 29 const Stmt *Stmt2, bool IgnoreSideEffects = false); 107 const Stmt *Stmt1 = I->getThen(); in VisitIfStmt() 108 const Stmt *Stmt2 = I->getElse(); in VisitIfStmt() 137 const Stmt *Else = Stmt2; in VisitIfStmt() 306 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1, in isIdenticalStmt() 307 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 …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 44 void CodeGenFunction::EmitStopPoint(const Stmt *S) { in EmitStopPoint() 54 void CodeGenFunction::EmitStmt(const Stmt *S, ArrayRef<const Attr *> Attrs) { in EmitStmt() 93 case Stmt::NoStmtClass: in EmitStmt() 94 case Stmt::CXXCatchStmtClass: in EmitStmt() 95 case Stmt::SEHExceptStmtClass: in EmitStmt() 96 case Stmt::SEHFinallyStmtClass: in EmitStmt() 97 case Stmt::MSDependentExistsStmtClass: in EmitStmt() 99 case Stmt::NullStmtClass: in EmitStmt() 100 case Stmt::CompoundStmtClass: in EmitStmt() 101 case Stmt::DeclStmtClass: in EmitStmt() [all …]
|
| H A D | VarBypassDetector.cpp | 20 void VarBypassDetector::Init(const Stmt *Body) { in Init() 53 bool VarBypassDetector::BuildScopeInformation(const Stmt *S, in BuildScopeInformation() 66 case Stmt::IndirectGotoStmtClass: in BuildScopeInformation() 69 case Stmt::SwitchStmtClass: in BuildScopeInformation() 70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation() 82 case Stmt::GotoStmtClass: in BuildScopeInformation() 86 case Stmt::DeclStmtClass: { in BuildScopeInformation() 94 case Stmt::CaseStmtClass: in BuildScopeInformation() 95 case Stmt::DefaultStmtClass: in BuildScopeInformation() 96 case Stmt::LabelStmtClass: in BuildScopeInformation() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | StmtNodes.td | 9 def Stmt : StmtNode<?, 1>; 10 def NullStmt : StmtNode<Stmt>; 11 def CompoundStmt : StmtNode<Stmt>; 12 def IfStmt : StmtNode<Stmt>; 13 def SwitchStmt : StmtNode<Stmt>; 14 def WhileStmt : StmtNode<Stmt>; 15 def DoStmt : StmtNode<Stmt>; 16 def ForStmt : StmtNode<Stmt>; 17 def GotoStmt : StmtNode<Stmt>; 18 def IndirectGotoStmt : StmtNode<Stmt>; [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | ExprMutationAnalyzer.cpp | 42 AST_MATCHER_P(Stmt, canResolveToExpr, ast_matchers::internal::Matcher<Stmt>, in AST_MATCHER_P() argument 96 const ast_matchers::internal::VariadicDynCastAllOfMatcher<Stmt, CXXTypeidExpr> 134 template <class T, class F = const Stmt *(ExprMutationAnalyzer::*)(const T *)> 135 const Stmt *tryEachMatch(ArrayRef<ast_matchers::BoundNodes> Matches, in tryEachMatch() 139 if (const Stmt *S = (Analyzer->*Finder)(Nodes.getNodeAs<T>(ID))) in tryEachMatch() 147 const Stmt *ExprMutationAnalyzer::findMutation(const Expr *Exp) { in findMutation() 159 const Stmt *ExprMutationAnalyzer::findMutation(const Decl *Dec) { in findMutation() 163 const Stmt *ExprMutationAnalyzer::findPointeeMutation(const Expr *Exp) { in findPointeeMutation() 167 const Stmt *ExprMutationAnalyzer::findPointeeMutation(const Decl *Dec) { in findPointeeMutation() 171 const Stmt *ExprMutationAnalyzer::findMutationMemoized( in findMutationMemoized() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 143 using StatementMatcher = internal::Matcher<Stmt>; 247 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 268 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument 293 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, in AST_POLYMORPHIC_MATCHER_REGEX() argument 316 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument 1234 extern const internal::VariadicDynCastAllOfMatcher<Stmt, 1404 extern const internal::VariadicAllOfMatcher<Stmt> stmt; 1414 extern const internal::VariadicDynCastAllOfMatcher<Stmt, DeclStmt> declStmt; 1427 extern const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr; 1441 extern const internal::VariadicDynCastAllOfMatcher<Stmt, UnresolvedMemberExpr> [all …]
|
| H A D | GtestMatchers.h | 45 internal::BindableMatcher<Stmt> gtestAssert(GtestCmp Cmp, StatementMatcher Left, 49 internal::BindableMatcher<Stmt> gtestAssertThat(StatementMatcher Actual, 54 internal::BindableMatcher<Stmt> gtestExpect(GtestCmp Cmp, StatementMatcher Left, 58 internal::BindableMatcher<Stmt> gtestExpectThat(StatementMatcher Actual, 64 internal::BindableMatcher<Stmt> gtestExpectCall(StatementMatcher MockObject, 71 internal::BindableMatcher<Stmt> gtestExpectCall(StatementMatcher MockCall, 75 internal::BindableMatcher<Stmt> gtestOnCall(StatementMatcher MockObject, 80 internal::BindableMatcher<Stmt> gtestOnCall(StatementMatcher MockCall,
|