Searched refs:Stmt (Results 51 - 75 of 320) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp39 const ast_matchers::internal::VariadicDynCastAllOfMatcher<Stmt, CXXTypeidExpr>
46 const ast_matchers::internal::VariadicDynCastAllOfMatcher<Stmt,
81 template <class T, class F = const Stmt *(ExprMutationAnalyzer::*)(const T *)>
82 const Stmt *tryEachMatch(ArrayRef<ast_matchers::BoundNodes> Matches,
86 if (const Stmt *S = (Analyzer->*Finder)(Nodes.getNodeAs<T>(ID)))
94 const Stmt *ExprMutationAnalyzer::findMutation(const Expr *Exp) {
106 const Stmt *ExprMutationAnalyzer::findMutation(const Decl *Dec) {
110 const Stmt *ExprMutationAnalyzer::findPointeeMutation(const Expr *Exp) {
114 const Stmt *ExprMutationAnalyzer::findPointeeMutation(const Decl *Dec) {
118 const Stmt *ExprMutationAnalyze
[all...]
H A DCFG.cpp25 #include "clang/AST/Stmt.h"
191 const Stmt *stmt) const;
412 llvm::SmallVector<Stmt *, 12> childrenBuf;
413 ArrayRef<Stmt *> children;
416 reverse_children(Stmt *S);
418 using iterator = ArrayRef<Stmt *>::reverse_iterator;
426 reverse_children::reverse_children(Stmt *S) {
433 case Stmt::InitListExprClass: {
435 children = llvm::makeArrayRef(reinterpret_cast<Stmt**>(IE->getInits()),
444 for (Stmt *SubStm
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp34 case Stmt::DeclRefExprClass:
35 case Stmt::PredefinedExprClass:
36 case Stmt::IntegerLiteralClass:
37 case Stmt::FloatingLiteralClass:
38 case Stmt::ImaginaryLiteralClass:
39 case Stmt::CharacterLiteralClass:
40 case Stmt::StringLiteralClass:
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp36 Stmt *Body;
53 void transformBody(Stmt *body, Decl *ParentD) {
191 Stmt *nextStmt = getNextStmt(E);
212 Stmt *prevStmt, *nextStmt;
219 bool isPlusOneAssignToVar(Stmt *S, Decl *RefD) {
240 Stmt *getNextStmt(Expr *E) {
244 std::pair<Stmt *, Stmt *> getPreviousAndNextStmt(Expr *E) {
245 Stmt *prevStmt = nullptr, *nextStmt = nullptr;
249 Stmt *Outer
[all...]
H A DTransAutoreleasePool.cpp78 void transformBody(Stmt *body, Decl *ParentD) {
128 Stmt::child_iterator retI = scope.End;
166 for (Stmt::child_iterator
168 Stmt *child = getEssential(*I);
217 void clearUnavailableDiags(Stmt *S) {
227 Stmt::child_iterator Begin;
228 Stmt::child_iterator End;
236 Stmt::child_iterator rangeS = Begin;
240 Stmt::child_iterator rangeE = Begin;
241 for (Stmt
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp72 static Replacement replaceStmtWithText(SourceManager &Sources, const Stmt &From,
77 static Replacement replaceStmtWithStmt(SourceManager &Sources, const Stmt &From,
78 const Stmt &To) {
90 if (const Stmt *FromMatch = Result.Nodes.getNodeAs<Stmt>(FromId)) {
108 const Stmt *FromMatch = Result.Nodes.getNodeAs<Stmt>(FromId);
109 const Stmt *ToMatch = Result.Nodes.getNodeAs<Stmt>(ToId);
129 const Stmt *Bod
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DStmtOpenMP.cpp9 // This file implements the subclesses of Stmt class declared in StmtOpenMP.h
36 const Stmt *OMPExecutableDirective::getStructuredBlock() const {
44 Stmt *OMPLoopDirective::tryToFindNextInnerLoop(Stmt *CurStmt,
46 Stmt *OrigStmt = CurStmt;
58 for (Stmt *S : CS->body()) {
88 Stmt *OMPLoopDirective::getBody() {
90 Stmt *Body =
164 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStmt, Expr *TaskRedRef,
169 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + sizeof(Stmt *));
[all...]
H A DASTTypeTraits.cpp36 { NKI_None, "Stmt" },
92 ASTNodeKind ASTNodeKind::getFromNode(const Stmt &S) {
94 case Stmt::NoStmtClass: return NKI_None;
96 case Stmt::CLASS##Class: return ASTNodeKind(NKI_##CLASS);
147 else if (const Stmt *S = get<Stmt>())
159 else if (const Stmt *S = get<Stmt>())
176 if (const Stmt *S = get<Stmt>())
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DRunLoopAutoreleaseLeakChecker.cpp65 static bool seenBefore(const Stmt *Parent, const Stmt *A, const Stmt *B) {
66 for (const Stmt *C : Parent->children()) {
87 const Stmt *DeclBody = D->getBody();
101 const auto *RLR = Match.getNodeAs<Stmt>(RunLoopRunBind);
H A DUndefBranchChecker.cpp40 for (const Stmt *SubStmt : Ex->children())
54 void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const;
59 void UndefBranchChecker::checkBranchCondition(const Stmt *Condition,
77 // Get the predecessor node and check if is a PostStmt with the Stmt
H A DArrayBoundChecker.cpp31 void checkLocation(SVal l, bool isLoad, const Stmt* S,
36 void ArrayBoundChecker::checkLocation(SVal l, bool isLoad, const Stmt* LoadS,
H A DUnreachableCodeChecker.cpp39 static inline const Stmt *getUnreachableStmt(const CFGBlock *CB);
121 if (const Stmt *label = CB->getLabel())
122 if (label->getStmtClass() == Stmt::DefaultStmtClass)
149 if (const Stmt *S = getUnreachableStmt(CB)) {
155 if (const Stmt *Parent = PM->getParent(S))
199 // Find the Stmt* in a CFGBlock for reporting a warning
200 const Stmt *UnreachableCodeChecker::getUnreachableStmt(const CFGBlock *CB) {
207 if (const Stmt *S = CB->getTerminatorStmt())
235 const Stmt *cond = pred->getTerminatorCondition();
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp162 llvm::DenseMap<const Stmt *, unsigned> &CounterMap;
165 llvm::DenseMap<const Stmt *, unsigned> &CounterMap)
199 PGOHash::HashType updateCounterMappings(Stmt *S) {
207 bool VisitStmt(Stmt *S) {
223 for (Stmt *CS : If->children()) {
256 PGOHash::HashType getHashType(PGOHashVersion HashVersion, const Stmt *S) {
260 case Stmt::LabelStmtClass:
262 case Stmt::WhileStmtClass:
264 case Stmt::DoStmtClass:
266 case Stmt
[all...]
H A DCoverageMappingGen.h30 class Stmt;
98 llvm::DenseMap<const Stmt *, unsigned> *CounterMap;
107 llvm::DenseMap<const Stmt *, unsigned> *CounterMap)
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DExprOpenMP.h58 Stmt *SubExprs[END_EXPR];
131 static bool classof(const Stmt *T) {
217 static bool classof(const Stmt *T) {
223 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObjects<Expr *>());
227 Stmt *const *Begin =
228 reinterpret_cast<Stmt *const *>(getTrailingObjects<Expr *>());
405 static bool classof(const Stmt *T) {
411 Stmt **Begin = reinterpret_cast<Stmt **>(getTrailingObject
[all...]
H A DStmtOpenMP.h19 #include "clang/AST/Stmt.h"
33 class OMPExecutableDirective : public Stmt {
70 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)),
85 void setAssociatedStmt(Stmt *S) {
95 std::forward_iterator_tag, Stmt *, ptrdiff_t, Stmt *, Stmt *> {
123 Stmt *operator*() const { return *ChildI; }
124 Stmt *operator->() const { return **this; }
253 const Stmt *getAssociatedStm
[all...]
H A DExprObjC.h23 #include "clang/AST/Stmt.h"
53 Stmt *String;
82 static bool classof(const Stmt *T) {
119 static bool classof(const Stmt *T) {
129 Stmt *SubExpr;
176 return reinterpret_cast<Stmt const * const*>(&SubExpr);
180 return reinterpret_cast<Stmt const * const*>(&SubExpr + 1);
183 static bool classof(const Stmt *T) {
247 return child_range(reinterpret_cast<Stmt **>(getElements()),
248 reinterpret_cast<Stmt **>(getElement
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/
H A DAnalysisDeclContext.h46 class Stmt;
126 void registerForcedBlockExpression(const Stmt *stmt);
127 const CFGBlock *getBlockForRegisteredExpression(const Stmt *stmt);
130 Stmt *getBody() const;
135 Stmt *getBody(bool &IsAutosynthesized) const;
182 const Stmt *S, const CFGBlock *Blk,
297 const Stmt *CallSite;
311 const Stmt *S, const CFGBlock *Block, unsigned BlockCount,
319 const Stmt *getCallSite() const { return CallSite; }
332 const LocationContext *ParentLC, const Stmt *
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h13 #include "clang/AST/Stmt.h"
110 const Stmt *operator[](size_t I) const {
113 return SelectedNode.get().Node.get<Stmt>();
115 return SelectedNode.get().Children[I].Node.get<Stmt>();
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelConsumer.cpp28 ModelConsumer::ModelConsumer(llvm::StringMap<Stmt *> &Bodies)
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h1 //===- Environment.h - Map from Stmt* to Locations/Values -------*- C++ -*-===//
24 class Stmt;
31 /// An entry in the environment consists of a Stmt and an LocationContext.
35 class EnvironmentEntry : public std::pair<const Stmt *,
38 EnvironmentEntry(const Stmt *s, const LocationContext *L);
40 const Stmt *getStmt() const { return first; }
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeGenError.h13 #include "clang/AST/Stmt.h"
24 ByteCodeGenError(const Stmt *S) : ByteCodeGenError(S->getBeginLoc()) {}
H A DSource.h17 #include "clang/AST/Stmt.h"
84 SourceInfo(const Stmt *E) : Source(E) {}
89 const Stmt *asStmt() const { return Source.dyn_cast<const Stmt *>(); }
96 llvm::PointerUnion<const Decl *, const Stmt *> Source;
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp17 #include "clang/AST/Stmt.h"
296 if (const Stmt *Term = B->getTerminatorStmt()) {
301 case Stmt::CXXBindTemporaryExprClass:
307 case Stmt::DeclStmtClass:
311 case Stmt::BinaryOperatorClass: // '&&' and '||'
315 case Stmt::BinaryConditionalOperatorClass:
316 case Stmt::ConditionalOperatorClass:
324 case Stmt::ChooseExprClass:
328 case Stmt::CXXTryStmtClass:
340 case Stmt
[all...]
H A DBugReporter.cpp21 #include "clang/AST/Stmt.h"
170 const Stmt *getParent(const Stmt *S) const {
254 generateDiagForGotoOP(const PathDiagnosticConstruct &C, const Stmt *S,
262 generateDiagForBinaryOP(const PathDiagnosticConstruct &C, const Stmt *T,
291 const Stmt *CallSite = CExit.getCalleeContext()->getCallSite();
535 const Stmt *Start = CF->getStartLocation().asStmt();
536 const Stmt *End = CF->getEndLocation().asStmt();
579 if (const Stmt *S = C.getCurrentNode()->getNextStmtForDiagnostics())
616 static const Stmt *getEnclosingParen
[all...]

Completed in 247 milliseconds

1234567891011>>