/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ParentMap.h | 17 class Stmt; 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 *getParentIgnoreParenCast [all...] |
H A D | StmtGraphTraits.h | 1 //===- StmtGraphTraits.h - Graph Traits for the class Stmt ------*- C++ -*-===// 10 // treat ASTs (Stmt*) as graphs 17 #include "clang/AST/Stmt.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* [all...] |
H A D | StmtCXX.h | 19 #include "clang/AST/Stmt.h" 28 class CXXCatchStmt : public Stmt { 33 Stmt *HandlerBlock; 36 CXXCatchStmt(SourceLocation catchLoc, VarDecl *exDecl, Stmt *handlerBlock) 37 : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl), 41 : Stmt(CXXCatchStmtClass), ExceptionDecl(nullptr), HandlerBlock(nullptr) {} 51 Stmt *getHandlerBlock() const { return HandlerBlock; } 53 static bool classof(const Stmt *T) { 68 class CXXTryStmt final : public Stmt, 69 private llvm::TrailingObjects<CXXTryStmt, Stmt *> { [all...] |
H A D | StmtObjC.h | 15 #include "clang/AST/Stmt.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) { } 34 Stmt *getElement() { return SubExprs[ELEM]; } 38 Stmt *getBody() { return SubExprs[BODY]; } 40 const Stmt *getElement() const { return SubExprs[ELEM]; } 44 const Stmt *getBod [all...] |
H A D | Stmt.h | 1 //===- Stmt.h - Classes for representing statements -------------*- C++ -*-===// 9 // This file defines the Stmt interface and subclasses. 66 /// Stmt - This represents one statement. 68 class alignas(void *) Stmt { 99 friend class Stmt; 713 /// Do we allocate an array? If so, the first trailing "Stmt *" is the 1099 /// Iterator for iterating over Stmt * arrays that contain only T *. 1101 /// This is needed because AST nodes use Stmt* arrays to store 1103 template<typename T, typename TPtr = T *, typename StmtPtr = Stmt *> 1117 /// Const iterator for iterating over Stmt * array 1130 explicit Stmt(StmtClass SC, EmptyShell) : Stmt(SC) {} function 1139 Stmt(StmtClass SC) { function [all...] |
H A D | StmtIterator.h | 24 class Stmt; 37 Stmt **stmt; 43 StmtIteratorBase(Stmt **s) : stmt(s) {} 73 Stmt*& GetDeclExpr() const; 86 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} 124 struct StmtIterator : public StmtIteratorImpl<StmtIterator, Stmt*&> { 126 StmtIterator(Stmt** S) : StmtIteratorImpl<StmtIterator, Stmt*&>(S) {} 128 : StmtIteratorImpl<StmtIterator, Stmt*&>(dgi, dge) {} 130 : StmtIteratorImpl<StmtIterator, Stmt* [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ExprMutationAnalyzer.h | 25 ExprMutationAnalyzer(const Stmt &Stm, ASTContext &Context) 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); 43 using MutationFinder = const Stmt *(ExprMutationAnalyzer::*)(const Expr *); 44 using ResultMap = llvm::DenseMap<const Expr *, const Stmt *>; 46 const Stmt *findMutationMemoized(const Expr *Exp, 49 const Stmt *tryEachDeclRef(const Decl *Dec, MutationFinder Finder); 53 const Stmt *findExprMutatio [all...] |
H A D | LiveVariables.h | 24 class Stmt; 33 llvm::ImmutableSet<const Stmt *> liveStmts; 42 LivenessValues(llvm::ImmutableSet<const Stmt *> LiveStmts, 48 bool isLive(const Stmt *S) const; 61 virtual void observeStmt(const Stmt *S, 84 bool isLive(const Stmt *S, const VarDecl *D); 88 bool isLive(const Stmt *Loc, const Stmt *StmtVal);
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/ |
H A D | CodeInjector.h | 21 class Stmt; 40 virtual Stmt *getBody(const FunctionDecl *D) = 0; 41 virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
|
H A D | BodyFarm.h | 28 class Stmt; 36 Stmt *getBody(const FunctionDecl *D); 39 Stmt *getBody(const ObjCMethodDecl *D); 45 typedef llvm::DenseMap<const Decl *, Optional<Stmt *>> BodyMap;
|
H A D | CFGStmtMap.h | 1 //===--- CFGStmtMap.h - Map from Stmt* to CFGBlock* -----------*- C++ -*-===// 10 // Stmt* to CFGBlock* 22 class Stmt; 37 /// Returns the CFGBlock the specified Stmt* appears in. For Stmt* that 41 CFGBlock *getBlock(Stmt * S); 43 const CFGBlock *getBlock(const Stmt * S) const { 44 return const_cast<CFGStmtMap*>(this)->getBlock(const_cast<Stmt*>(S));
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Frontend/ |
H A D | ModelConsumer.h | 23 class Stmt; 33 ModelConsumer(llvm::StringMap<Stmt *> &Bodies); 38 llvm::StringMap<Stmt *> &Bodies;
|
H A D | FrontendActions.h | 18 class Stmt; 45 ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies); 53 llvm::StringMap<Stmt *> &Bodies;
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | CheckerHelpers.h | 16 #include "clang/AST/Stmt.h" 30 bool containsMacro(const Stmt *S); 31 bool containsEnum(const Stmt *S); 32 bool containsStaticLocal(const Stmt *S); 33 bool containsBuiltinOffsetOf(const Stmt *S); 34 template <class T> bool containsStmt(const Stmt *S) { 38 for (const Stmt *Child : S->children()) 46 parseAssignment(const Stmt *S);
|
H A D | LoopUnrolling.h | 39 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx, 44 ProgramStateRef processLoopEnd(const Stmt *LoopStmt, ProgramStateRef State);
|
H A D | LoopWidening.h | 30 unsigned BlockCount, const Stmt *LoopStmt);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | ParentMap.cpp | 22 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy; 29 static void BuildParentMap(MapTy& M, Stmt* S, 35 case Stmt::PseudoObjectExprClass: { 41 for (Stmt *SubStmt : S->children()) 55 case Stmt::BinaryConditionalOperatorClass: { 73 case Stmt::OpaqueValueExprClass: { 86 case Stmt::CapturedStmtClass: 87 for (Stmt *SubStmt : S->children()) { 93 if (Stmt *SubStm [all...] |
H A D | StmtObjC.cpp | 9 // This file implements the subclesses of Stmt class declared in StmtObjC.h 20 ObjCForCollectionStmt::ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, 21 Stmt *Body, SourceLocation FCL, 23 : Stmt(ObjCForCollectionStmtClass) { 31 ObjCAtTryStmt::ObjCAtTryStmt(SourceLocation atTryLoc, Stmt *atTryStmt, 32 Stmt **CatchStmts, unsigned NumCatchStmts, 33 Stmt *atFinallyStmt) 34 : Stmt(ObjCAtTryStmtClass), AtTryLoc(atTryLoc), 36 Stmt **Stmts = getStmts(); 46 SourceLocation atTryLoc, Stmt *atTryStm [all...] |
H A D | StmtViz.cpp | 1 //===--- StmtViz.cpp - Graphviz visualization for Stmt ASTs -----*- C++ -*-===// 9 // This file implements Stmt::viewAST, which generates a Graphviz DOT file 20 void Stmt::viewAST() const { 24 llvm::errs() << "Stmt::viewAST is only available in debug builds on " 31 struct DOTGraphTraits<const Stmt*> : public DefaultDOTGraphTraits { 34 static std::string getNodeLabel(const Stmt* Node, const Stmt* Graph) {
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | Environment.cpp | 1 //===- Environment.cpp - Map from Stmt* to Locations/Values ---------------===// 17 #include "clang/AST/Stmt.h" 41 case Stmt::OpaqueValueExprClass: 44 case Stmt::ExprWithCleanupsClass: 47 case Stmt::ConstantExprClass: 50 case Stmt::CXXBindTemporaryExprClass: 53 case Stmt::SubstNonTypeTemplateParmExprClass: 64 static const Stmt *ignoreTransparentExprs(const Stmt *S) { 70 EnvironmentEntry::EnvironmentEntry(const Stmt * [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | VarBypassDetector.h | 25 class Stmt; 44 llvm::SmallVector<std::pair<const Stmt *, unsigned>, 16> FromScopes; 46 llvm::DenseMap<const Stmt *, unsigned> ToScopes; 53 void Init(const Stmt *Body); 63 bool BuildScopeInformation(const Stmt *S, unsigned &origParentScope);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/ |
H A D | ModelInjector.h | 41 Stmt *getBody(const FunctionDecl *D) override; 42 Stmt *getBody(const ObjCMethodDecl *D) override; 64 llvm::StringMap<Stmt *> Bodies;
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | GtestMatchers.h | 17 #include "clang/AST/Stmt.h" 34 internal::BindableMatcher<Stmt> gtestAssert(GtestCmp Cmp, StatementMatcher Left, 38 internal::BindableMatcher<Stmt> gtestExpect(GtestCmp Cmp, StatementMatcher Left,
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/ |
H A D | SourceExtraction.h | 19 class Stmt; 34 static ExtractionSemicolonPolicy compute(const Stmt *S,
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
H A D | SourceExtraction.cpp | 10 #include "clang/AST/Stmt.h" 29 bool isSemicolonRequiredAfter(const Stmt *S) { 48 case Stmt::DeclStmtClass: 49 case Stmt::CXXTryStmtClass: 50 case Stmt::ObjCAtSynchronizedStmtClass: 51 case Stmt::ObjCAutoreleasePoolStmtClass: 52 case Stmt::ObjCAtTryStmtClass: 72 ExtractionSemicolonPolicy::compute(const Stmt *S, SourceRange &ExtractedRange,
|