Searched refs:Stmt (Results 1 - 25 of 316) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DParentMap.h17 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 DStmtGraphTraits.h1 //===- 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 DStmtCXX.h19 #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 DStmtObjC.h15 #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 DStmt.h1 //===- Stmt.h - Classes for representing statements -------------*- C++ -*-===//
9 // This file defines the Stmt interface and subclasses.
64 /// Stmt - This represents one statement.
66 class alignas(void *) Stmt {
97 friend class Stmt;
713 /// Do we allocate an array? If so, the first trailing "Stmt *" is the
1074 /// Iterator for iterating over Stmt * arrays that contain only T *.
1076 /// This is needed because AST nodes use Stmt* arrays to store
1078 template<typename T, typename TPtr = T *, typename StmtPtr = Stmt *>
1092 /// Const iterator for iterating over Stmt * array
1105 explicit Stmt(StmtClass SC, EmptyShell) : Stmt(SC) {} function
1114 Stmt(StmtClass SC) { function
[all...]
H A DStmtIterator.h24 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-11-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DExprMutationAnalyzer.h25 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 DLiveVariables.h24 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-11-stable/contrib/llvm-project/clang/include/clang/Analysis/
H A DCodeInjector.h21 class Stmt;
40 virtual Stmt *getBody(const FunctionDecl *D) = 0;
41 virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
H A DBodyFarm.h28 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 DCFGStmtMap.h1 //===--- 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-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Frontend/
H A DModelConsumer.h23 class Stmt;
33 ModelConsumer(llvm::StringMap<Stmt *> &Bodies);
38 llvm::StringMap<Stmt *> &Bodies;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerHelpers.h16 #include "clang/AST/Stmt.h"
28 bool containsMacro(const Stmt *S);
29 bool containsEnum(const Stmt *S);
30 bool containsStaticLocal(const Stmt *S);
31 bool containsBuiltinOffsetOf(const Stmt *S);
32 template <class T> bool containsStmt(const Stmt *S) {
36 for (const Stmt *Child : S->children())
44 parseAssignment(const Stmt *S);
H A DLoopUnrolling.h39 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx,
44 ProgramStateRef processLoopEnd(const Stmt *LoopStmt, ProgramStateRef State);
H A DLoopWidening.h30 unsigned BlockCount, const Stmt *LoopStmt);
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DParentMap.cpp22 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 DStmtObjC.cpp9 // 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 DStmtViz.cpp1 //===--- 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-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DEnvironment.cpp1 //===- 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...]
H A DCheckerHelpers.cpp22 bool containsMacro(const Stmt *S) {
29 for (const Stmt *Child : S->children())
37 bool containsEnum(const Stmt *S) {
43 for (const Stmt *Child : S->children())
51 bool containsStaticLocal(const Stmt *S) {
59 for (const Stmt *Child : S->children())
67 bool containsBuiltinOffsetOf(const Stmt *S) {
71 for (const Stmt *Child : S->children())
80 parseAssignment(const Stmt *S) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DVarBypassDetector.h25 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-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.h41 Stmt *getBody(const FunctionDecl *D) override;
42 Stmt *getBody(const ObjCMethodDecl *D) override;
64 llvm::StringMap<Stmt *> Bodies;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/
H A DSourceExtraction.h19 class Stmt;
34 static ExtractionSemicolonPolicy compute(const Stmt *S,
/freebsd-11-stable/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp603 const internal::VariadicDynCastAllOfMatcher<Stmt, ObjCAutoreleasePoolStmt>
646 const internal::VariadicDynCastAllOfMatcher<Stmt, UnaryExprOrTypeTraitExpr>
667 const internal::VariadicAllOfMatcher<Stmt> stmt;
668 const internal::VariadicDynCastAllOfMatcher<Stmt, DeclStmt> declStmt;
669 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr;
670 const internal::VariadicDynCastAllOfMatcher<Stmt, UnresolvedMemberExpr>
672 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXDependentScopeMemberExpr>
674 const internal::VariadicDynCastAllOfMatcher<Stmt, CallExpr> callExpr;
675 const internal::VariadicDynCastAllOfMatcher<Stmt, LambdaExpr> lambdaExpr;
676 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXMemberCallExp
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp10 #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,

Completed in 278 milliseconds

1234567891011>>