/external/clang/include/clang/Analysis/ |
ProgramPoint.h | 153 static ProgramPoint getProgramPoint(const Stmt *S, ProgramPoint::Kind K, 189 const Stmt *getTerminator() const { 200 StmtPoint(const Stmt *S, const void *p2, Kind k, const LocationContext *L, 204 const Stmt *getStmt() const { return (const Stmt*) getData1(); } 218 PreStmt(const Stmt *S, const LocationContext *L, const ProgramPointTag *tag, 219 const Stmt *SubStmt = 0) 222 const Stmt *getSubStmt() const { return (const Stmt*) getData2(); } 231 PostStmt(const Stmt *S, const void *data, Kind k, const LocationContext *L [all...] |
AnalysisContext.h | 31 class Stmt; 136 void registerForcedBlockExpression(const Stmt *stmt); 137 const CFGBlock *getBlockForRegisteredExpression(const Stmt *stmt); 139 Stmt *getBody() const; 169 const Stmt *S, 258 const Stmt *CallSite; 268 const Stmt *s, const CFGBlock *blk, 276 const Stmt *getCallSite() const { return CallSite; [all...] |
CFG.h | 25 #include "clang/AST/Stmt.h" 34 class Stmt; 97 CFGStmt(Stmt *S) : CFGElement(Statement, S) {} 99 const Stmt *getStmt() const { 100 return static_cast<const Stmt *>(Data1.getPointer()); 148 CFGAutomaticObjDtor(const VarDecl *var, const Stmt *stmt) 149 : CFGImplicitDtor(AutomaticObjectDtor, var, stmt) {} 156 const Stmt *getTriggerStmt() const { 157 return static_cast<Stmt*>(Data2.getPointer()) [all...] |
/external/clang/lib/ARCMigrate/ |
Transforms.h | 19 class Stmt; 48 Stmt *TopStmt; 51 BodyContext(MigrationContext &MigrateCtx, Stmt *S) 56 Stmt *getTopStmt() { return TopStmt; } 181 bool TraverseStmt(Stmt *rootS) { 190 void clearRefsIn(Stmt *S, ExprSet &refs); 197 void collectRefs(ValueDecl *D, Stmt *S, ExprSet &refs); 199 void collectRemovables(Stmt *S, ExprSet &exprs);
|
TransAutoreleasePool.cpp | 78 void transformBody(Stmt *body) { 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::child_iterator I = rangeS; I != End; ++I [all...] |
/external/clang/lib/AST/ |
StmtProfile.cpp | 1 //===---- 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); 38 #define STMT(Node, Base) void Visit##Node(const Node *S); 70 void StmtProfiler::VisitStmt(const Stmt *S) { 72 for (Stmt::const_child_range C = S->children(); C; ++C) { 494 static Stmt::StmtClass DecodeOperatorCall(const CXXOperatorCallExpr *S, 512 return Stmt::UnaryOperatorClass; 516 return Stmt::BinaryOperatorClass; 521 return Stmt::UnaryOperatorClass [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
IdempotentOperationChecker.cpp | 57 #include "clang/AST/Stmt.h" 96 static bool containsNonLocalVarDecl(const Stmt *S); 333 const Stmt *predStmt 628 case Stmt::ArraySubscriptExprClass: 629 case Stmt::MemberExprClass: 630 case Stmt::StmtExprClass: 631 case Stmt::CallExprClass: 632 case Stmt::VAArgExprClass: 633 case Stmt::ShuffleVectorExprClass: 639 case Stmt::IntegerLiteralClass [all...] |
VirtualCallChecker.cpp | 111 // Stmt visitor methods. 114 void VisitStmt(Stmt *S) { VisitChildren(S); } 115 void VisitChildren(Stmt *S); 126 void WalkAST::VisitChildren(Stmt *S) { 127 for (Stmt::child_iterator I = S->child_begin(), E = S->child_end(); I!=E; ++I) 128 if (Stmt *child = *I) 223 if (Stmt *Body = I->getBody()) { 231 if (Stmt *Body = DD->getBody()) {
|
MallocChecker.cpp | 39 const Stmt *S; 42 RefState(Kind k, const Stmt *s) : K(k), S(s) {} 47 const Stmt *getStmt() const { return S; } 53 static RefState getAllocateUnchecked(const Stmt *s) { 59 static RefState getReleased(const Stmt *s) { return RefState(Released, s); } 60 static RefState getEscaped(const Stmt *s) { return RefState(Escaped, s); } 61 static RefState getRelinquished(const Stmt *s) { 85 typedef std::pair<const Stmt*, const MemRegion*> LeakInfo; 126 void checkLocation(SVal l, bool isLoad, const Stmt *S, 128 void checkBind(SVal location, SVal val, const Stmt*S [all...] |
CheckerDocumentation.cpp | 60 /// callback can be specialized to be called with any subclass of Stmt. 73 /// callback can be specialized to be called with any subclass of Stmt. 85 void checkBranchCondition(const Stmt *Condition, CheckerContext &Ctx) const {} 96 void checkLocation(SVal Loc, bool IsLoad, const Stmt *S, 106 void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &C) const {}
|
UndefBranchChecker.cpp | 40 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
|
UndefCapturedBlockVarChecker.cpp | 36 static const DeclRefExpr *FindBlockDeclRefExpr(const Stmt *S, 42 for (Stmt::const_child_iterator I = S->child_begin(), E = S->child_end(); 44 if (const Stmt *child = *I) {
|
/frameworks/compile/slang/ |
slang_rs_ast_replace.cpp | 26 clang::Stmt *OuterStmt, 27 clang::Stmt *OldStmt, 28 clang::Stmt *NewStmt) { 33 // This simplifies use in various Stmt visitor passes where the only 43 clang::Stmt **UpdatedStmtList = new clang::Stmt*[CS->size()]; 64 void RSASTReplace::VisitStmt(clang::Stmt *S) { 65 // This function does the actual iteration through all sub-Stmt's within 66 // a given Stmt. Note that this function is skipped by all of the other 68 for (clang::Stmt::child_iterator I = S->child_begin(), E = S->child_end() [all...] |
slang_rs_object_ref_count.cpp | 25 #include "clang/AST/Stmt.h" 95 std::list<clang::Stmt*> &StmtList, clang::SourceLocation Loc) { 99 clang::Stmt **CompoundStmtList; 100 CompoundStmtList = new clang::Stmt*[NewStmtCount]; 102 std::list<clang::Stmt*>::const_iterator I = StmtList.begin(); 103 std::list<clang::Stmt*>::const_iterator E = StmtList.end(); 122 clang::Stmt *S, 123 std::list<clang::Stmt*> &StmtList) { 127 clang::Stmt **UpdatedStmtList = 128 new clang::Stmt*[CS->size() + StmtList.size()] [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
BugReporter.cpp | 46 static inline const Stmt *GetStmt(const ProgramPoint &P) { 65 static const Stmt *GetPreviousStmt(const ExplodedNode *N) { 67 if (const Stmt *S = GetStmt(N->getLocation())) 73 static const Stmt *GetNextStmt(const ExplodedNode *N) { 75 if (const Stmt *S = GetStmt(N->getLocation())) { 79 case Stmt::ChooseExprClass: 80 case Stmt::BinaryConditionalOperatorClass: continue; 81 case Stmt::ConditionalOperatorClass: continue; 82 case Stmt::BinaryOperatorClass: { 97 static inline const Stmt* 1169 const Stmt *stmt = S->getStmt(); local [all...] |
CoreEngine.cpp | 343 if (const Stmt *Term = B->getTerminator()) { 348 case Stmt::BinaryOperatorClass: // '&&' and '||' 352 case Stmt::BinaryConditionalOperatorClass: 353 case Stmt::ConditionalOperatorClass: 361 case Stmt::ChooseExprClass: 365 case Stmt::CXXTryStmtClass: { 378 case Stmt::DoStmtClass: 382 case Stmt::CXXForRangeStmtClass: 386 case Stmt::ForStmtClass: 390 case Stmt::ContinueStmtClass [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
Environment.h | 1 //== 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) 38 : std::pair<const Stmt*, 41 const Stmt *getStmt() const { return first; }
|
SubEngine.h | 25 class Stmt; 67 virtual void processBranch(const Stmt *Condition, const Stmt *Term,
|
/external/clang/include/clang/AST/ |
ASTImporter.h | 33 class Stmt; 62 llvm::DenseMap<Stmt *, Stmt *> ImportedStmts; 140 Stmt *Import(Stmt *FromS);
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
BugReporterVisitor.h | 112 /// Creates a visitor for every VarDecl inside a Stmt and registers it with 114 static void registerStatementVarDecls(BugReport &BR, const Stmt *S); 185 PathDiagnosticPiece *VisitTerminator(const Stmt *Term, 230 const Stmt *S, 233 const Stmt *GetDerefExpr(const ExplodedNode *N); 234 const Stmt *GetDenomExpr(const ExplodedNode *N); 235 const Stmt *GetCalleeExpr(const ExplodedNode *N); 236 const Stmt *GetRetValExpr(const ExplodedNode *N);
|
/external/clang/lib/Analysis/ |
LiveVariables.cpp | 4 #include "clang/AST/Stmt.h" 91 llvm::ImmutableSet<const Stmt *>::Factory SSetFact; 95 llvm::DenseMap<const Stmt *, LiveVariables::LivenessValues> stmtsToLiveness; 125 bool LiveVariables::LivenessValues::isLive(const Stmt *S) const { 152 llvm::ImmutableSetRef<const Stmt *> 187 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) { 191 bool LiveVariables::isLive(const Stmt *Loc, const Stmt *S) { 219 void Visit(Stmt *S); 236 static const Stmt *LookThroughStmt(const Stmt *S) [all...] |
ReachableCode.cpp | 34 typedef llvm::SmallVector<std::pair<const CFGBlock *, const Stmt *>, 12> 50 const Stmt *findDeadCode(const CFGBlock *Block); 52 void reportDeadCode(const Stmt *S, 88 static bool isValidDeadStmt(const Stmt *S) { 96 const Stmt *DeadCodeScan::findDeadCode(const clang::CFGBlock *Block) { 99 const Stmt *S = CS->getStmt(); 105 const Stmt *S = T.getStmt(); 115 ((std::pair<const CFGBlock *, const Stmt *>*) p2)->second->getLocStart() < 116 ((std::pair<const CFGBlock *, const Stmt *>*) p1)->second->getLocStart(); 134 const Stmt *S = findDeadCode(Block) [all...] |
CFG.cpp | 62 const Stmt *stmt) const; 288 const Stmt *lastLookup; 306 CFG* buildCFG(const Decl *D, Stmt *Statement); 308 bool alwaysAdd(const Stmt *stmt); 363 CFGBlock *Visit(Stmt *S, AddStmtChoice asc = AddStmtChoice::NotAlwaysAdd); 364 CFGBlock *VisitStmt(Stmt *S, AddStmtChoice asc); 365 CFGBlock *VisitChildren(Stmt *S); 370 CFGBlock *VisitForTemporaryDtors(Stmt *E, bool BindToTemporary = false) 3375 const Stmt *stmt= SE->getStmt(); local [all...] |
/external/clang/lib/Sema/ |
JumpDiagnostics.cpp | 62 llvm::DenseMap<Stmt*, unsigned> LabelAndGotoScopes; 63 SmallVector<Stmt*, 16> Jumps; 68 JumpScopeChecker(Stmt *Body, Sema &S); 73 void BuildScopeInformation(Stmt *S, unsigned &origParentScope); 80 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 89 JumpScopeChecker::JumpScopeChecker(Stmt *Body, Sema &s) : S(s) { 153 // C++11 [stmt.dcl]p3: 161 // C++03 [stmt.dcl.p3: 277 void JumpScopeChecker::BuildScopeInformation(Stmt *S, unsigned &origParentScope) [all...] |
/external/clang/lib/CodeGen/ |
CGStmt.cpp | 10 // This contains code to emit Stmt nodes as LLVM code. 32 void CodeGenFunction::EmitStopPoint(const Stmt *S) { 43 void CodeGenFunction::EmitStmt(const Stmt *S) { 72 case Stmt::NoStmtClass: 73 case Stmt::CXXCatchStmtClass: 74 case Stmt::SEHExceptStmtClass: 75 case Stmt::SEHFinallyStmtClass: 76 case Stmt::MSDependentExistsStmtClass: 78 case Stmt::NullStmtClass: 79 case Stmt::CompoundStmtClass [all...] |