Home
last modified time | relevance | path

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

12345678910

/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDStmtObjC.h24 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 …]
HDParentMap.h18 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 …]
HDStmtCXX.h29 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 …]
HDStmt.h58 class Stmt; variable
64 Stmt** I;
66 ExprIterator(Stmt** i) : I(i) {} in ExprIterator()
86 const Stmt * const *I;
88 ConstExprIterator(const Stmt * const *i) : I(i) {} in ConstExprIterator()
109 class LLVM_ALIGNAS(LLVM_PTR_SIZE) Stmt { in LLVM_ALIGNAS()
132 friend class Stmt; in LLVM_ALIGNAS() local
346 explicit Stmt(StmtClass SC, EmptyShell) : Stmt(SC) {} in LLVM_ALIGNAS()
349 Stmt(StmtClass SC) { in LLVM_ALIGNAS()
353 if (StatisticsEnabled) Stmt::addStmtClass(SC); in LLVM_ALIGNAS()
[all …]
HDStmtGraphTraits.h27 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 …]
HDStmtIterator.h26 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 …]
HDStmtOpenMP.h33 class OMPExecutableDirective : public Stmt {
70 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)), in OMPExecutableDirective()
86 void setAssociatedStmt(Stmt *S) { in setAssociatedStmt()
184 Stmt *getAssociatedStmt() const { in getAssociatedStmt()
186 return const_cast<Stmt *>(*child_begin()); in getAssociatedStmt()
191 static bool classof(const Stmt *S) { in classof()
199 Stmt **ChildStorage = reinterpret_cast<Stmt **>(getClauses().end()); in children()
250 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt);
260 static bool classof(const Stmt *T) { in classof()
583 const Stmt *getBody() const { in getBody()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDParentMap.cpp22 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 …]
HDStmt.cpp34 } StmtClassInfo[Stmt::lastStmtConstant+1];
36 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { in getStmtInfoTableEntry()
45 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ in getStmtInfoTableEntry()
46 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); in getStmtInfoTableEntry()
52 void *Stmt::operator new(size_t bytes, const ASTContext& C, in operator new()
57 const char *Stmt::getStmtClassName() const { in getStmtClassName()
61 void Stmt::PrintStats() { in PrintStats()
63 getStmtInfoTableEntry(Stmt::NullStmtClass); in PrintStats()
67 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats()
73 for (int i = 0; i != Stmt::lastStmtConstant+1; i++) { in PrintStats()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDEnvironment.cpp28 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 …]
HDExprEngine.cpp295 ProcessStmt(const_cast<Stmt*>(E.castAs<CFGStmt>().getStmt()), Pred); in processCFGElement()
342 const Stmt *ReferenceStmt, in removeDead()
344 const Stmt *DiagnosticStmt, in removeDead()
428 const Stmt *currStmt = S.getStmt(); in ProcessStmt()
609 const Stmt *Arg = DE->getArgument(); in ProcessDeleteDtor()
738 void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, in Visit()
751 case Stmt::CXXDependentScopeMemberExprClass: in Visit()
752 case Stmt::CXXTryStmtClass: in Visit()
753 case Stmt::CXXTypeidExprClass: in Visit()
754 case Stmt::CXXUuidofExprClass: in Visit()
[all …]
HDBugReporter.cpp57 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 …]
HDCheckerHelpers.cpp18 bool clang::ento::containsMacro(const Stmt *S) { in containsMacro()
25 for (const Stmt *Child : S->children()) in containsMacro()
33 bool clang::ento::containsEnum(const Stmt *S) { in containsEnum()
39 for (const Stmt *Child : S->children()) in containsEnum()
47 bool clang::ento::containsStaticLocal(const Stmt *S) { in containsStaticLocal()
55 for (const Stmt *Child : S->children()) in containsStaticLocal()
63 bool clang::ento::containsBuiltinOffsetOf(const Stmt *S) { in containsBuiltinOffsetOf()
67 for (const Stmt *Child : S->children()) in containsBuiltinOffsetOf()
/NextBSD/contrib/llvm/tools/clang/include/clang/Basic/
HDStmtNodes.td3 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 …]
/NextBSD/contrib/llvm/tools/clang/include/clang/ASTMatchers/
HDASTMatchers.h124 typedef internal::Matcher<Stmt> StatementMatcher;
185 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
206 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { in AST_POLYMORPHIC_MATCHER() argument
231 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc), in AST_POLYMORPHIC_MATCHER_P() argument
826 const internal::VariadicAllOfMatcher<Stmt> stmt;
837 Stmt,
851 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr;
861 const internal::VariadicDynCastAllOfMatcher<Stmt, CallExpr> callExpr;
869 const internal::VariadicDynCastAllOfMatcher<Stmt, LambdaExpr> lambdaExpr;
879 Stmt,
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDIdenticalExprChecker.cpp29 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()
120 const Stmt *Else = Stmt2; in VisitIfStmt()
286 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1, in isIdenticalStmt()
287 const Stmt *Stmt2, bool IgnoreSideEffects) { in isIdenticalStmt()
333 case Stmt::CallExprClass: in isIdenticalStmt()
334 case Stmt::ArraySubscriptExprClass: in isIdenticalStmt()
335 case Stmt::ImplicitCastExprClass: in isIdenticalStmt()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Analysis/
HDReachableCode.cpp49 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 …]
HDCFG.cpp64 const Stmt *stmt) const;
244 llvm::SmallVector<Stmt *, 12> childrenBuf;
245 ArrayRef<Stmt*> children;
247 reverse_children(Stmt *S);
249 typedef ArrayRef<Stmt*>::reverse_iterator iterator;
255 reverse_children::reverse_children(Stmt *S) { in reverse_children()
262 case Stmt::InitListExprClass: { in reverse_children()
264 children = llvm::makeArrayRef(reinterpret_cast<Stmt**>(IE->getInits()), in reverse_children()
273 for (Stmt *SubStmt : S->children()) in reverse_children()
333 const Stmt *lastLookup;
[all …]
HDLiveVariables.cpp85 llvm::ImmutableSet<const Stmt *>::Factory SSetFact;
89 llvm::DenseMap<const Stmt *, LiveVariables::LivenessValues> stmtsToLiveness;
119 bool LiveVariables::LivenessValues::isLive(const Stmt *S) const { in isLive()
146 llvm::ImmutableSetRef<const Stmt *> in merge()
181 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) { in isLive()
185 bool LiveVariables::isLive(const Stmt *Loc, const Stmt *S) { in isLive()
213 void Visit(Stmt *S);
230 static const Stmt *LookThroughStmt(const Stmt *S) { in LookThroughStmt()
247 static void AddLiveStmt(llvm::ImmutableSet<const Stmt *> &Set, in AddLiveStmt()
248 llvm::ImmutableSet<const Stmt *>::Factory &F, in AddLiveStmt()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Tooling/
HDRefactoringCallbacks.cpp24 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()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGStmt.cpp35 void CodeGenFunction::EmitStopPoint(const Stmt *S) { in EmitStopPoint()
45 void CodeGenFunction::EmitStmt(const Stmt *S) { in EmitStmt()
75 case Stmt::NoStmtClass: in EmitStmt()
76 case Stmt::CXXCatchStmtClass: in EmitStmt()
77 case Stmt::SEHExceptStmtClass: in EmitStmt()
78 case Stmt::SEHFinallyStmtClass: in EmitStmt()
79 case Stmt::MSDependentExistsStmtClass: in EmitStmt()
81 case Stmt::NullStmtClass: in EmitStmt()
82 case Stmt::CompoundStmtClass: in EmitStmt()
83 case Stmt::DeclStmtClass: in EmitStmt()
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
HDLiveVariables.h26 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);
/NextBSD/contrib/llvm/tools/clang/include/clang/Analysis/
HDAnalysisContext.h28 class Stmt; variable
129 void registerForcedBlockExpression(const Stmt *stmt);
130 const CFGBlock *getBlockForRegisteredExpression(const Stmt *stmt);
133 Stmt *getBody() const;
138 Stmt *getBody(bool &IsAutosynthesized) const;
184 const Stmt *S,
276 const Stmt *CallSite;
286 const Stmt *s, const CFGBlock *blk, in StackFrameContext()
294 const Stmt *getCallSite() const { return CallSite; } in getCallSite()
306 const LocationContext *parent, const Stmt *s, in Profile()
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDCheckerHelpers.h23 bool containsMacro(const Stmt *S);
24 bool containsEnum(const Stmt *S);
25 bool containsStaticLocal(const Stmt *S);
26 bool containsBuiltinOffsetOf(const Stmt *S);
27 template <class T> bool containsStmt(const Stmt *S) { in containsStmt()
31 for (const Stmt *Child : S->children()) in containsStmt()
/NextBSD/contrib/llvm/tools/clang/lib/ARCMigrate/
HDTransRetainReleaseDealloc.cpp37 Stmt *Body;
54 void transformBody(Stmt *body, Decl *ParentD) { in transformBody()
193 Stmt *nextStmt = getNextStmt(E); in isReturnedAfterAutorelease()
214 Stmt *prevStmt, *nextStmt; in isPlusOneAssignBeforeOrAfterAutorelease()
221 bool isPlusOneAssignToVar(Stmt *S, Decl *RefD) { in isPlusOneAssignToVar()
246 Stmt *getNextStmt(Expr *E) { in getNextStmt()
250 std::pair<Stmt *, Stmt *> getPreviousAndNextStmt(Expr *E) { in getPreviousAndNextStmt()
251 Stmt *prevStmt = nullptr, *nextStmt = nullptr; in getPreviousAndNextStmt()
255 Stmt *OuterS = E, *InnerS; in getPreviousAndNextStmt()
267 Stmt::child_iterator currChildS = OuterS->child_begin(); in getPreviousAndNextStmt()
[all …]

12345678910