Searched refs:Stmt (Results 26 - 50 of 237) sorted by relevance

12345678910

/external/clang/include/clang/AST/
H A DStmtOpenMP.h20 #include "clang/AST/Stmt.h"
33 class OMPExecutableDirective : public Stmt {
70 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)),
86 void setAssociatedStmt(Stmt *S) { *child_begin() = S; }
154 Stmt *getAssociatedStmt() const { return const_cast<Stmt *>(*child_begin()); }
158 static bool classof(const Stmt *S) {
164 Stmt **ChildStorage = reinterpret_cast<Stmt **>(getClauses().end());
215 ArrayRef<OMPClause *> Clauses, Stmt *AssociatedStm
[all...]
H A DPrettyPrinter.h24 class Stmt;
30 virtual bool handledStmt(Stmt* E, raw_ostream& OS) = 0;
H A DASTImporter.h33 class Stmt;
65 llvm::DenseMap<Stmt *, Stmt *> ImportedStmts;
143 Stmt *Import(Stmt *FromS);
H A DEvaluatedExprVisitor.h86 void VisitStmt(Stmt *S) {
87 for (Stmt::child_range C = S->children(); C; ++C)
/external/clang/lib/AST/
H A DASTTypeTraits.cpp34 { NKI_None, "Stmt" },
79 else if (const Stmt *S = get<Stmt>())
90 else if (const Stmt *S = get<Stmt>())
105 if (const Stmt *S = get<Stmt>())
H A DStmtProfile.cpp1 //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===//
10 // This file implements the Stmt::Profile method, which builds a unique bit
36 void VisitStmt(const Stmt *S);
70 void StmtProfiler::VisitStmt(const Stmt *S) {
72 for (Stmt::const_child_range C = S->children(); C; ++C) {
645 static Stmt::StmtClass DecodeOperatorCall(const CXXOperatorCallExpr *S,
663 return Stmt::UnaryOperatorClass;
667 return Stmt::BinaryOperatorClass;
672 return Stmt::UnaryOperatorClass;
676 return Stmt
[all...]
/external/clang/include/clang/Analysis/
H A DAnalysisContext.h27 class Stmt;
128 void registerForcedBlockExpression(const Stmt *stmt);
129 const CFGBlock *getBlockForRegisteredExpression(const Stmt *stmt);
132 Stmt *getBody() const;
137 Stmt *getBody(bool &IsAutosynthesized) const;
175 const Stmt *S,
267 const Stmt *CallSite;
277 const Stmt *s, const CFGBlock *blk,
285 const Stmt *getCallSite() const { return CallSite; }
297 const LocationContext *parent, const Stmt *
[all...]
H A DProgramPoint.h188 static ProgramPoint getProgramPoint(const Stmt *S, ProgramPoint::Kind K,
227 const Stmt *getTerminator() const {
241 StmtPoint(const Stmt *S, const void *p2, Kind k, const LocationContext *L,
247 const Stmt *getStmt() const { return (const Stmt*) getData1(); }
265 PreStmt(const Stmt *S, const LocationContext *L, const ProgramPointTag *tag,
266 const Stmt *SubStmt = nullptr)
269 const Stmt *getSubStmt() const { return (const Stmt*) getData2(); }
282 PostStmt(const Stmt *
[all...]
H A DCFG.h18 #include "clang/AST/Stmt.h"
36 class Stmt;
117 CFGStmt(Stmt *S) : CFGElement(Statement, S) {}
119 const Stmt *getStmt() const {
120 return static_cast<const Stmt *>(Data1.getPointer());
196 CFGAutomaticObjDtor(const VarDecl *var, const Stmt *stmt)
204 const Stmt *getTriggerStmt() const {
205 return static_cast<Stmt*>(Data2.getPointer());
305 llvm::PointerIntPair<Stmt *, 1> Data;
308 CFGTerminator(Stmt *
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDereferenceChecker.cpp35 void reportBug(ProgramStateRef State, const Stmt *S, CheckerContext &C,
39 void checkLocation(SVal location, bool isLoad, const Stmt* S,
41 void checkBind(SVal L, SVal V, const Stmt *S, CheckerContext &C) const;
62 case Stmt::DeclRefExprClass: {
71 case Stmt::MemberExprClass: {
79 case Stmt::ObjCIvarRefExprClass: {
90 void DereferenceChecker::reportBug(ProgramStateRef State, const Stmt *S,
125 case Stmt::ArraySubscriptExprClass: {
133 case Stmt::UnaryOperatorClass: {
140 case Stmt
[all...]
H A DVirtualCallChecker.cpp112 // Stmt visitor methods.
115 void VisitStmt(Stmt *S) { VisitChildren(S); }
116 void VisitChildren(Stmt *S);
127 void WalkAST::VisitChildren(Stmt *S) {
128 for (Stmt::child_iterator I = S->child_begin(), E = S->child_end(); I!=E; ++I)
129 if (Stmt *child = *I)
221 if (Stmt *Body = I->getBody()) {
229 if (Stmt *Body = DD->getBody()) {
H A DTraversalChecker.cpp30 void checkBranchCondition(const Stmt *Condition, CheckerContext &C) const;
35 void TraversalDumper::checkBranchCondition(const Stmt *Condition,
39 const Stmt *Parent = dyn_cast<ObjCForCollectionStmt>(Condition);
H A DUndefBranchChecker.cpp40 for (Stmt::const_child_iterator I = Ex->child_begin(),
56 void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const;
61 void UndefBranchChecker::checkBranchCondition(const Stmt *Condition,
79 // Get the predecessor node and check if is a PostStmt with the Stmt
H A DUndefCapturedBlockVarChecker.cpp37 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S,
43 for (Stmt::const_child_iterator I = S->child_begin(), E = S->child_end();
45 if (const Stmt *child = *I) {
/external/clang/lib/CodeGen/
H A DCodeGenPGO.h41 std::unique_ptr<llvm::DenseMap<const Stmt *, unsigned>> RegionCounterMap;
42 std::unique_ptr<llvm::DenseMap<const Stmt *, uint64_t>> StmtCountMap;
78 bool getStmtCount(const Stmt *S, uint64_t &Count) {
81 llvm::DenseMap<const Stmt*, uint64_t>::const_iterator
91 void setCurrentStmt(const Stmt *S) {
100 llvm::MDNode *createLoopWeights(const Stmt *Cond, RegionCounter &Cnt);
131 unsigned getRegionCounter(const Stmt *S) {
162 RegionCounter(CodeGenPGO &PGO, const Stmt *S)
/external/clang/lib/Analysis/
H A DReachableCode.cpp49 static bool isTrivialDoWhile(const CFGBlock *B, const Stmt *S) {
52 if (const Stmt *Term = B->getTerminator()) {
61 static bool isDeadReturn(const CFGBlock *B, const Stmt *S) {
126 static bool isExpandedFromConfigurationMacro(const Stmt *S,
159 static bool isConfigurationValue(const Stmt *S,
182 case Stmt::CallExprClass: {
187 case Stmt::DeclRefExprClass:
189 case Stmt::ObjCBoolLiteralExprClass:
192 case Stmt::CXXBoolLiteralExprClass:
193 case Stmt
[all...]
H A DLiveVariables.cpp15 #include "clang/AST/Stmt.h"
86 llvm::ImmutableSet<const Stmt *>::Factory SSetFact;
90 llvm::DenseMap<const Stmt *, LiveVariables::LivenessValues> stmtsToLiveness;
120 bool LiveVariables::LivenessValues::isLive(const Stmt *S) const {
147 llvm::ImmutableSetRef<const Stmt *>
182 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) {
186 bool LiveVariables::isLive(const Stmt *Loc, const Stmt *S) {
214 void Visit(Stmt *S);
231 static const Stmt *LookThroughStm
[all...]
H A DBodyFarm.cpp57 CompoundStmt *makeCompound(ArrayRef<Stmt*>);
107 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) {
170 typedef Stmt *(*FunctionFarmer)(ASTContext &C, const FunctionDecl *D);
173 static Stmt *create_dispatch_once(ASTContext &C, const FunctionDecl *D) {
226 Stmt *Stmts[2];
229 CompoundStmt *CS = M.makeCompound(ArrayRef<Stmt*>(Stmts, 2));
251 static Stmt *create_dispatch_sync(ASTContext &C, const FunctionDecl *D) {
277 static Stmt *create_OSAtomicCompareAndSwap(ASTContext &C, const FunctionDecl *D)
327 Stmt *Stmts[2];
340 CompoundStmt *Body = M.makeCompound(ArrayRef<Stmt*>(Stmt
[all...]
H A DThreadSafetyCommon.cpp43 case Stmt::IntegerLiteralClass:
45 case Stmt::StringLiteralClass: {
51 case Stmt::CharacterLiteralClass:
52 case Stmt::CXXNullPtrLiteralExprClass:
53 case Stmt::GNUNullExprClass:
54 case Stmt::CXXBoolLiteralExprClass:
55 case Stmt::FloatingLiteralClass:
56 case Stmt::ImaginaryLiteralClass:
57 case Stmt::ObjCStringLiteralClass:
80 til::SExpr *SExprBuilder::lookupStmt(const Stmt *
[all...]
H A DCFG.cpp64 const Stmt *stmt) const;
238 llvm::SmallVector<Stmt *, 12> childrenBuf;
239 ArrayRef<Stmt*> children;
241 reverse_children(Stmt *S);
243 typedef ArrayRef<Stmt*>::reverse_iterator iterator;
249 reverse_children::reverse_children(Stmt *S) {
256 case Stmt::InitListExprClass: {
258 children = llvm::makeArrayRef(reinterpret_cast<Stmt**>(IE->getInits()),
267 for (Stmt::child_range I = S->children(); I; ++I) {
328 const Stmt *lastLooku
[all...]
/external/clang/lib/ARCMigrate/
H A DTransRetainReleaseDealloc.cpp37 Stmt *Body;
54 void transformBody(Stmt *body, Decl *ParentD) {
193 Stmt *nextStmt = getNextStmt(E);
214 Stmt *prevStmt, *nextStmt;
221 bool isPlusOneAssignToVar(Stmt *S, Decl *RefD) {
246 Stmt *getNextStmt(Expr *E) {
250 std::pair<Stmt *, Stmt *> getPreviousAndNextStmt(Expr *E) {
251 Stmt *prevStmt = nullptr, *nextStmt = nullptr;
255 Stmt *Outer
[all...]
H A DTransAutoreleasePool.cpp79 void transformBody(Stmt *body, Decl *ParentD) {
129 Stmt::child_iterator retI = scope.End;
167 for (Stmt::child_iterator
169 Stmt *child = getEssential(*I);
218 void clearUnavailableDiags(Stmt *S) {
228 Stmt::child_iterator Begin;
229 Stmt::child_iterator End;
237 Stmt::child_iterator rangeS = Begin;
241 Stmt::child_iterator rangeE = Begin;
242 for (Stmt
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp57 static const Stmt *GetPreviousStmt(const ExplodedNode *N) {
59 if (const Stmt *S = PathDiagnosticLocation::getStmt(N))
65 static inline const Stmt*
67 if (const Stmt *S = PathDiagnosticLocation::getStmt(N))
263 const Stmt *Start = CF->getStartLocation().asStmt();
264 const Stmt *End = CF->getEndLocation().asStmt();
345 const Stmt *getParent(const Stmt *S) {
351 PathDiagnosticLocation getEnclosingStmtLocation(const Stmt *S);
365 if (const Stmt *
[all...]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h1 //== Environment.h - Map from Stmt* to Locations/Values ---------*- C++ -*--==//
30 /// An entry in the environment consists of a Stmt and an LocationContext.
34 class EnvironmentEntry : public std::pair<const Stmt*,
37 EnvironmentEntry(const Stmt *s, const LocationContext *L);
39 const Stmt *getStmt() const { return first; }
/external/clang/lib/Sema/
H A DJumpDiagnostics.cpp66 llvm::DenseMap<Stmt*, unsigned> LabelAndGotoScopes;
67 SmallVector<Stmt*, 16> Jumps;
72 JumpScopeChecker(Stmt *Body, Sema &S);
77 void BuildScopeInformation(Stmt *S, unsigned &origParentScope);
84 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc,
94 JumpScopeChecker::JumpScopeChecker(Stmt *Body, Sema &s)
269 void JumpScopeChecker::BuildScopeInformation(Stmt *S, unsigned &origParentScope) {
281 case Stmt::AddrLabelExprClass:
285 case Stmt
[all...]

Completed in 282 milliseconds

12345678910