Home
last modified time | relevance | path

Searched refs:Stmt (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmtObjC.h30 ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, Stmt *Body,
74 class ObjCAtCatchStmt : public Stmt {
77 Stmt *Body;
83 Stmt *atCatchStmt) in ObjCAtCatchStmt()
122 Stmt *AtFinallyStmt;
154 class ObjCAtTryStmt : public Stmt {
170 Stmt **getStmts() { return reinterpret_cast<Stmt **> (this + 1); } in getStmts()
236 void setFinallyStmt(Stmt *S) { in setFinallyStmt()
266 Stmt* SubStmts[END_EXPR];
315 Stmt *Throw;
[all …]
H A DParentMap.h18 class Stmt; variable
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()
47 const Stmt *getParentIgnoreParens(const Stmt *S) const { in getParentIgnoreParens()
[all …]
H A DStmtCXX.h34 Stmt *HandlerBlock;
75 CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, ArrayRef<Stmt*> handlers);
79 Stmt *const *getStmts() const { return getTrailingObjects<Stmt *>(); } in getStmts()
80 Stmt **getStmts() { return getTrailingObjects<Stmt *>(); } in getStmts()
84 Stmt *tryBlock, ArrayRef<Stmt*> handlers);
132 Stmt *SubExprs[END];
246 Stmt *SubStmt;
303 : public Stmt,
326 Stmt **getStoredStmts() { return getTrailingObjects<Stmt *>(); } in getStoredStmts()
328 Stmt *const *getStoredStmts() const { return getTrailingObjects<Stmt *>(); } in getStoredStmts()
[all …]
H A DStmt.h95 friend class Stmt; in alignas() local
1017 explicit Stmt(StmtClass SC, EmptyShell) : Stmt(SC) {} in alignas()
1545 Stmt *SubStmt;
1595 Stmt *SubStmt;
1634 : public Stmt,
1639 Stmt *SubStmt;
1688 : public Stmt,
2341 Stmt *Target;
2444 : public Stmt,
2449 Stmt *RetExpr;
[all …]
H A DStmtGraphTraits.h24 template <> struct GraphTraits<clang::Stmt *> {
25 using NodeRef = clang::Stmt *;
26 using ChildIteratorType = clang::Stmt::child_iterator;
27 using nodes_iterator = llvm::df_iterator<clang::Stmt *>;
29 static NodeRef getEntryNode(clang::Stmt *S) { return S; }
41 static nodes_iterator nodes_begin(clang::Stmt* S) {
45 static nodes_iterator nodes_end(clang::Stmt* S) {
50 template <> struct GraphTraits<const clang::Stmt *> {
51 using NodeRef = const clang::Stmt *;
67 static nodes_iterator nodes_begin(const clang::Stmt* S) {
[all …]
H A DStmtIterator.h25 class Stmt; variable
38 Stmt **stmt;
44 StmtIteratorBase(Stmt **s) : stmt(s) {} in StmtIteratorBase()
74 Stmt*& GetDeclExpr() const;
87 StmtIteratorImpl(Stmt **s) : StmtIteratorBase(s) {} in StmtIteratorImpl()
127 StmtIterator(Stmt** S) : StmtIteratorImpl<StmtIterator, Stmt*&>(S) {} in StmtIterator()
131 : StmtIteratorImpl<StmtIterator, Stmt*&>(t) {} in StmtIterator()
135 : StmtIteratorImpl<StmtIterator, Stmt *&>(RHS) {} in StmtIterator()
147 ConstStmtIterator(Stmt * const *S) in ConstStmtIterator()
148 : StmtIteratorImpl<ConstStmtIterator, const Stmt *>( in ConstStmtIterator()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DParentMap.cpp23 typedef llvm::DenseMap<Stmt*, Stmt*> MapTy;
116 void ParentMap::setParent(const Stmt *S, const Stmt *Parent) { in setParent()
120 M->insert(std::make_pair(const_cast<Stmt *>(S), const_cast<Stmt *>(Parent))); in setParent()
123 Stmt* ParentMap::getParent(Stmt* S) const { in getParent()
129 Stmt *ParentMap::getParentIgnoreParens(Stmt *S) const { in getParentIgnoreParens()
134 Stmt *ParentMap::getParentIgnoreParenCasts(Stmt *S) const { in getParentIgnoreParenCasts()
143 Stmt *ParentMap::getParentIgnoreParenImpCasts(Stmt *S) const { in getParentIgnoreParenImpCasts()
151 Stmt *ParentMap::getOuterParenParent(Stmt *S) const { in getOuterParenParent()
152 Stmt *Paren = nullptr; in getOuterParenParent()
161 Stmt *P = getParent(E); in isConsumedExpr()
[all …]
H A DStmt.cpp87 void Stmt::PrintStats() { in PrintStats()
121 Stmt *Stmt::IgnoreImplicit() { in IgnoreImplicit()
122 Stmt *s = this; in IgnoreImplicit()
124 Stmt *lasts = nullptr; in IgnoreImplicit()
147 Stmt *Stmt::IgnoreContainers(bool IgnoreCaptured) { in IgnoreContainers()
148 Stmt *S = this; in IgnoreContainers()
169 const Stmt *Stmt::stripLabelLikeStatements() const { in stripLabelLikeStatements()
170 const Stmt *S = this; in stripLabelLikeStatements()
237 Stmt::child_range Stmt::children() { in children()
808 Stmt *Init, VarDecl *Var, Expr *Cond, Stmt *Then, in IfStmt()
[all …]
H A DStmtObjC.cpp21 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()
49 Stmt *atFinallyStmt) { in Create()
[all …]
H A DStmtCXX.cpp27 Stmt *tryBlock, ArrayRef<Stmt *> handlers) { in Create()
35 const size_t Size = totalSizeToAlloc<Stmt *>(numHandlers + 1); in Create()
40 CXXTryStmt::CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, in CXXTryStmt()
41 ArrayRef<Stmt *> handlers) in CXXTryStmt()
43 Stmt **Stmts = getStmts(); in CXXTryStmt()
48 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range, in CXXForRangeStmt()
89 std::size_t Size = totalSizeToAlloc<Stmt *>( in Create()
98 std::size_t Size = totalSizeToAlloc<Stmt *>( in Create()
106 static_cast<Stmt *>(nullptr)); in Create()
112 Stmt **SubStmts = getStoredStmts(); in CoroutineBodyStmt()
[all …]
H A DStmtOpenMP.cpp1043 sizeof(Stmt *) * in Create()
1097 sizeof(Stmt *) * in CreateEmpty()
1111 sizeof(Stmt *) * in Create()
1164 sizeof(Stmt *) * in CreateEmpty()
1178 sizeof(Stmt *) * in Create()
1216 sizeof(Stmt *) * in CreateEmpty()
1229 sizeof(Stmt *) * in Create()
1269 sizeof(Stmt *) * in CreateEmpty()
1494 sizeof(Stmt *) * in Create()
1548 sizeof(Stmt *) * in CreateEmpty()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DExprMutationAnalyzer.h31 const Stmt *findMutation(const Expr *Exp);
32 const Stmt *findMutation(const Decl *Dec);
40 const Stmt *findPointeeMutation(const Expr *Exp);
41 const Stmt *findPointeeMutation(const Decl *Dec);
47 const Stmt *findMutationMemoized(const Expr *Exp,
56 const Stmt *
58 const Stmt *
61 const Stmt *findDirectMutation(const Expr *Exp);
62 const Stmt *findMemberMutation(const Expr *Exp);
64 const Stmt *findCastMutation(const Expr *Exp);
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DEnvironment.cpp41 case Stmt::OpaqueValueExprClass: in ignoreTransparentExprs()
47 case Stmt::ConstantExprClass: in ignoreTransparentExprs()
64 static const Stmt *ignoreTransparentExprs(const Stmt *S) { in ignoreTransparentExprs()
71 : std::pair<const Stmt *, in EnvironmentEntry()
95 case Stmt::ConstantExprClass: in getSVal()
96 case Stmt::ParenExprClass: in getSVal()
100 case Stmt::AddrLabelExprClass: in getSVal()
105 case Stmt::IntegerLiteralClass: in getSVal()
109 case Stmt::StringLiteralClass: in getSVal()
110 case Stmt::TypeTraitExprClass: in getSVal()
[all …]
H A DExprEngine.cpp1173 case Stmt::TypoExprClass: in Visit()
1247 case Stmt::CaseStmtClass: in Visit()
1252 case Stmt::DoStmtClass: in Visit()
1253 case Stmt::ForStmtClass: in Visit()
1254 case Stmt::GotoStmtClass: in Visit()
1255 case Stmt::IfStmtClass: in Visit()
1258 case Stmt::NoStmtClass: in Visit()
1259 case Stmt::NullStmtClass: in Visit()
1532 case Stmt::CallExprClass: in Visit()
1972 static const Stmt *getRightmostLeaf(const Stmt *Condition) { in getRightmostLeaf()
[all …]
H A DBugReporter.cpp100 static inline const Stmt*
370 const Stmt *getParent(const Stmt *S) { in getParent()
426 static const Stmt *getEnclosingParent(const Stmt *S, const ParentMap &PM) { in getEnclosingParent()
436 case Stmt::DoStmtClass: in getEnclosingParent()
616 const Stmt *S, in generateDiagForGotoOP()
920 static const Stmt *getStmtBeforeCond(ParentMap &PM, const Stmt *Term, in getStmtBeforeCond()
934 static bool isInLoopBody(ParentMap &PM, const Stmt *S, const Stmt *Term) { in isInLoopBody()
1259 static const Stmt *getStmtParent(const Stmt *S, const ParentMap &PM) { in getStmtParent()
1280 static bool isConditionForTerminator(const Stmt *S, const Stmt *Cond) { in isConditionForTerminator()
1321 static bool isIncrementOrInitInForLoop(const Stmt *S, const Stmt *FL) { in isIncrementOrInitInForLoop()
[all …]
H A DLoopUnrolling.cpp31 const Stmt *LoopStmt;
48 const Stmt *getLoopStmt() const { return LoopStmt; } in getLoopStmt()
72 static bool isLoopStmt(const Stmt *S) { in isLoopStmt()
94 static internal::Matcher<Stmt>
105 static internal::Matcher<Stmt>
112 static internal::Matcher<Stmt>
121 static internal::Matcher<Stmt>
140 static internal::Matcher<Stmt> forLoopMatcher() { in forLoopMatcher()
169 const Stmt *S = PathDiagnosticLocation::getStmt(N); in isPossiblyEscaped()
230 bool madeNewBranch(ExplodedNode *N, const Stmt *LoopStmt) { in madeNewBranch()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp615 const internal::VariadicAllOfMatcher<Stmt> stmt;
626 const internal::VariadicDynCastAllOfMatcher<Stmt, ObjCMessageExpr>
645 const internal::VariadicDynCastAllOfMatcher<Stmt, ObjCAtThrowStmt>
648 const internal::VariadicDynCastAllOfMatcher<Stmt, ObjCAtCatchStmt>
690 const internal::VariadicDynCastAllOfMatcher<Stmt, Expr> expr;
694 const internal::VariadicDynCastAllOfMatcher<Stmt, IfStmt> ifStmt;
699 const internal::VariadicDynCastAllOfMatcher<Stmt, DoStmt> doStmt;
721 const internal::VariadicDynCastAllOfMatcher<Stmt, IntegerLiteral>
734 const internal::VariadicDynCastAllOfMatcher<Stmt, BinaryOperator>
753 const internal::VariadicDynCastAllOfMatcher<Stmt, CStyleCastExpr>
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DStmtNodes.td7 class DStmt<Stmt base, bit abstract = 0> : Stmt<abstract> {
8 Stmt Base = base;
12 def NullStmt : Stmt;
14 def LabelStmt : Stmt;
16 def IfStmt : Stmt;
17 def SwitchStmt : Stmt;
18 def WhileStmt : Stmt;
19 def DoStmt : Stmt;
20 def ForStmt : Stmt;
21 def GotoStmt : Stmt;
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h146 using StatementMatcher = internal::Matcher<Stmt>;
1063 extern const internal::VariadicDynCastAllOfMatcher<Stmt,
1208 extern const internal::VariadicAllOfMatcher<Stmt> stmt;
1257 extern const internal::VariadicDynCastAllOfMatcher<Stmt,
1847 const Stmt *const Increment = Node.getInc(); in AST_MATCHER_P()
1862 const Stmt *const Init = Node.getInit(); in AST_MATCHER_P()
2496 inline internal::Matcher<Stmt> alignOfExpr( in alignOfExpr()
2505 inline internal::Matcher<Stmt> sizeOfExpr( in sizeOfExpr()
4106 const Stmt *const Then = Node.getThen(); in AST_MATCHER_P()
4118 const Stmt *const Else = Node.getElse(); in AST_MATCHER_P()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp138 const Stmt *Else = Stmt2; in VisitIfStmt()
352 case Stmt::CallExprClass: in isIdenticalStmt()
356 case Stmt::ParenExprClass: in isIdenticalStmt()
357 case Stmt::BreakStmtClass: in isIdenticalStmt()
358 case Stmt::ContinueStmtClass: in isIdenticalStmt()
359 case Stmt::NullStmtClass: in isIdenticalStmt()
367 case Stmt::ReturnStmtClass: { in isIdenticalStmt()
374 case Stmt::ForStmtClass: { in isIdenticalStmt()
392 case Stmt::DoStmtClass: { in isIdenticalStmt()
404 case Stmt::WhileStmtClass: { in isIdenticalStmt()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGStmt.cpp85 case Stmt::NoStmtClass: in EmitStmt()
91 case Stmt::NullStmtClass: in EmitStmt()
93 case Stmt::DeclStmtClass: in EmitStmt()
94 case Stmt::LabelStmtClass: in EmitStmt()
96 case Stmt::GotoStmtClass: in EmitStmt()
97 case Stmt::BreakStmtClass: in EmitStmt()
99 case Stmt::DefaultStmtClass: in EmitStmt()
100 case Stmt::CaseStmtClass: in EmitStmt()
107 case Stmt::Type##Class: in EmitStmt()
184 case Stmt::CXXTryStmtClass: in EmitStmt()
[all …]
H A DVarBypassDetector.cpp21 void VarBypassDetector::Init(const Stmt *Body) { in Init()
67 case Stmt::IndirectGotoStmtClass: in BuildScopeInformation()
70 case Stmt::SwitchStmtClass: in BuildScopeInformation()
83 case Stmt::GotoStmtClass: in BuildScopeInformation()
87 case Stmt::DeclStmtClass: { in BuildScopeInformation()
95 case Stmt::CaseStmtClass: in BuildScopeInformation()
96 case Stmt::DefaultStmtClass: in BuildScopeInformation()
97 case Stmt::LabelStmtClass: in BuildScopeInformation()
105 for (const Stmt *SubStmt : S->children()) { in BuildScopeInformation()
117 const Stmt *Next; in BuildScopeInformation()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp110 const Stmt *ExprMutationAnalyzer::findMutationMemoized( in findMutationMemoized()
121 if (const Stmt *S = (this->*Finder)(Exp)) in findMutationMemoized()
172 const Stmt *
177 const Stmt *
182 const Stmt *ExprMutationAnalyzer::findExprPointeeMutation( in findExprPointeeMutation()
188 const Stmt *ExprMutationAnalyzer::findDeclPointeeMutation( in findDeclPointeeMutation()
274 return selectFirst<Stmt>("stmt", Matches); in findDirectMutation()
307 if (const Stmt *S = findExprMutation(Casts)) in findCastMutation()
343 if (const Stmt *S = findExprMutation(Ref)) in findReferenceMutation()
433 const Stmt *
[all …]
H A DCFG.cpp392 ArrayRef<Stmt *> children;
395 reverse_children(Stmt *S);
730 Stmt *S);
1316 case Stmt::CallExprClass: in findConstructionContexts()
2094 case Stmt::DoStmtClass: in Visit()
2097 case Stmt::ForStmtClass: in Visit()
2103 case Stmt::IfStmtClass: in Visit()
2210 if (Stmt *Child = *I) in VisitChildren()
5261 if (Stmt *Label = const_cast<Stmt*>(B.getLabel())) { in print_block()
5490 case Stmt::DoStmtClass: in getTerminatorCondition()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/
H A DCFG.h133 const Stmt *getStmt() const { in getStmt()
270 const Stmt *getLoopStmt() const { in getLoopStmt()
294 const Stmt *getTriggerStmt() const { in getTriggerStmt()
317 const Stmt *getTriggerStmt() const { in getTriggerStmt()
345 const Stmt *getTriggerStmt() const { in getTriggerStmt()
394 const Stmt *getTriggerStmt() const { in getTriggerStmt()
503 llvm::PointerIntPair<Stmt *, 1> Data;
601 Stmt *Label = nullptr;
610 const Stmt *LoopTarget = nullptr;
851 Stmt *getLabel() { return Label; } in getLabel()
[all …]

12345678910>>...12