Searched refs:Stmt (Results 76 - 100 of 237) sorted by relevance

12345678910

/external/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h27 class Stmt;
222 /// \brief Run checkers handling Decls containing a Stmt body.
238 const Stmt *S,
251 const Stmt *S,
260 const Stmt *S, ExprEngine &Eng,
313 const Stmt *NodeEx,
314 const Stmt *BoundEx,
321 const Stmt *S, ExprEngine &Eng,
335 void runCheckersForBranchCondition(const Stmt *condition,
354 SymbolReaper &SymReaper, const Stmt *
[all...]
/external/clang/include/clang/AST/
H A DOpenMPClause.h20 #include "clang/AST/Stmt.h"
159 Stmt *Condition;
213 Stmt *NumThreads;
271 Stmt *Safelen;
326 Stmt *NumForLoops;
524 Stmt *ChunkSize;
711 return StmtRange(reinterpret_cast<Stmt **>(varlist_begin()),
712 reinterpret_cast<Stmt **>(varlist_end()));
771 return StmtRange(reinterpret_cast<Stmt **>(varlist_begin()),
772 reinterpret_cast<Stmt **>(varlist_en
[all...]
H A DExpr.h22 #include "clang/AST/Stmt.h"
100 /// Stmt. This allows an expression to be transparently used any place a Stmt
103 class Expr : public Stmt {
109 : Stmt(SC)
121 explicit Expr(StmtClass SC, EmptyShell) : Stmt(SC) { }
688 return cast<Expr>(Stmt::IgnoreImplicit());
796 static bool classof(const Stmt *T) {
864 static bool classof(const Stmt *T) {
1153 static bool classof(const Stmt *
[all...]
H A DASTTypeTraits.h22 #include "clang/AST/Stmt.h"
135 KIND_TO_KIND_ID(Stmt)
176 /// (like \c Stmt, \c Decl, \c Type and \c NestedNameSpecifier) the returned
209 /// only Stmt, Decl, Type and NestedNameSpecifier return memoization data).
291 Decl *, Stmt *, Type *, NestedNameSpecifier *, CXXCtorInitializer *>
305 T, typename std::enable_if<std::is_base_of<Stmt, T>::value>::type>
306 : public DynCastPtrConverter<T, Stmt> {};
351 } else if (ASTNodeKind::getFromNodeKind<Stmt>().isBaseOf(NodeKind)) {
352 return BaseConverter<Stmt>::get(NodeKind, Storage.buffer);
/external/clang/lib/StaticAnalyzer/Core/
H A DPathDiagnostic.cpp206 // We need to flatten the locations (convert Stmt* to locations) because
497 static SourceLocation getValidSourceLocation(const Stmt* S,
516 const Stmt *Parent = S;
525 const Stmt *Body = ADC->getBody();
568 if (const Stmt *CallerBody = CallerInfo->getBody())
588 PathDiagnosticLocation::createBegin(const Stmt *S,
597 PathDiagnosticLocation::createEnd(const Stmt *S,
665 const Stmt* S = nullptr;
693 const Stmt *PathDiagnosticLocation::getStmt(const ExplodedNode *N) {
709 const Stmt *PathDiagnosticLocatio
[all...]
H A DCheckerManager.cpp140 const Stmt *S;
148 const Stmt *s, ExprEngine &eng, bool wasInlined = false)
169 const Stmt *S,
267 const Stmt *NodeEx; /* Will become a CFGStmt */
268 const Stmt *BoundEx;
275 SVal loc, bool isLoad, const Stmt *NodeEx,
276 const Stmt *BoundEx,
300 const Stmt *NodeEx,
301 const Stmt *BoundEx,
314 const Stmt *
[all...]
H A DSValBuilder.cpp141 DefinedOrUnknownSVal SValBuilder::conjureSymbolVal(const Stmt *stmt,
235 case Stmt::AddrLabelExprClass:
238 case Stmt::CXXScalarValueInitExprClass:
239 case Stmt::ImplicitValueInitExprClass:
242 case Stmt::ObjCStringLiteralClass: {
247 case Stmt::StringLiteralClass: {
254 case Stmt::CharacterLiteralClass: {
259 case Stmt::CXXBoolLiteralExprClass:
262 case Stmt::IntegerLiteralClass:
265 case Stmt
[all...]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSymbolManager.h155 const Stmt *S;
162 SymbolConjured(SymbolID sym, const Stmt *s, const LocationContext *lctx,
169 const Stmt *getStmt() const { return S; }
177 static void Profile(llvm::FoldingSetNodeID& profile, const Stmt *S,
269 const Stmt *S;
274 SymbolMetadata(SymbolID sym, const MemRegion* r, const Stmt *s, QualType t,
279 const Stmt *getStmt() const { return S; }
288 const Stmt *S, QualType T, unsigned Count,
497 const SymbolConjured* conjureSymbol(const Stmt *E,
519 const SymbolMetadata *getMetadataSymbol(const MemRegion *R, const Stmt *
[all...]
H A DExprEngine.h142 const Stmt *getStmt() const;
188 const Stmt *ReferenceStmt, const LocationContext *LC,
189 const Stmt *DiagnosticStmt = nullptr,
223 void processBranch(const Stmt *Condition, const Stmt *Term,
316 void Visit(const Stmt *S, ExplodedNode *Pred, ExplodedNodeSet &Dst);
422 const Stmt *S, bool IsBaseDtor,
478 void evalBind(ExplodedNodeSet &Dst, const Stmt *StoreE, ExplodedNode *Pred,
545 const Stmt *NodeEx, /* This will eventually be a CFGStmt */
546 const Stmt *BoundE
[all...]
/external/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp92 Stmt *AnalysisDeclContext::getBody(bool &IsAutosynthesized) const {
95 Stmt *Body = FD->getBody();
104 Stmt *Body = MD->getBody();
120 Stmt *AnalysisDeclContext::getBody() const {
146 void AnalysisDeclContext::registerForcedBlockExpression(const Stmt *stmt) {
156 AnalysisDeclContext::getBlockForRegisteredExpression(const Stmt *stmt) {
283 AnalysisDeclContext::getStackFrame(LocationContext const *Parent, const Stmt *S,
354 const Stmt *s,
371 const Stmt *s) {
372 return getLocationContext<ScopeContext, Stmt>(ct
[all...]
H A DCallGraph.cpp39 void VisitStmt(Stmt *S) { VisitChildren(S); }
85 void VisitChildren(Stmt *S) {
86 for (Stmt::child_range I = S->children(); I; ++I)
144 if (Stmt *Body = D->getBody())
/external/clang/unittests/ASTMatchers/Dynamic/
H A DRegistryTest.cpp129 Matcher<Stmt> IsArrowValue = constructMatcher(
130 "memberExpr", constructMatcher("isArrow")).getTypedMatcher<Stmt>();
131 Matcher<Stmt> BoolValue =
132 constructMatcher("boolLiteral").getTypedMatcher<Stmt>();
188 Matcher<Stmt> CallExpr0 = constructMatcher(
192 .getTypedMatcher<Stmt>();
194 Matcher<Stmt> CallExpr1 = constructMatcher(
200 .getTypedMatcher<Stmt>();
257 Matcher<Stmt> ConstructExpr = constructMatcher(
265 .getTypedMatcher<Stmt>();
[all...]
/external/clang/include/clang/Sema/
H A DOwnership.h10 // This file contains classes for managing ownership of Stmt and Expr nodes.
32 class Stmt;
242 template<> struct IsResultPtrLowBitFree<Stmt*> {
253 typedef ActionResult<Stmt*> StmtResult;
262 typedef MutableArrayRef<Stmt*> MultiStmtArg;
281 inline Stmt *AssertSuccess(StmtResult R) {
/external/clang/lib/StaticAnalyzer/Checkers/
H A DMallocChecker.cpp61 const Stmt *S;
66 RefState(Kind k, const Stmt *s, unsigned family)
78 const Stmt *getStmt() const { return S; }
84 static RefState getAllocated(unsigned family, const Stmt *s) {
87 static RefState getReleased(unsigned family, const Stmt *s) {
90 static RefState getRelinquished(unsigned family, const Stmt *s) {
189 void checkLocation(SVal l, bool isLoad, const Stmt *S,
220 AllocationFamily getAllocationFamily(CheckerContext &C, const Stmt *S) const;
293 bool checkUseAfterFree(SymbolRef Sym, CheckerContext &C, const Stmt *S) const;
324 const Stmt *AllocDeallocStm
384 isAllocated(const RefState *S, const RefState *SPrev, const Stmt *Stmt) argument
391 isReleased(const RefState *S, const RefState *SPrev, const Stmt *Stmt) argument
398 isRelinquished(const RefState *S, const RefState *SPrev, const Stmt *Stmt) argument
407 isReallocFailedCheck(const RefState *S, const RefState *SPrev, const Stmt *Stmt) argument
[all...]
H A DBoolAssignmentChecker.cpp29 void checkBind(SVal loc, SVal val, const Stmt *S, CheckerContext &C) const;
54 void BoolAssignmentChecker::checkBind(SVal loc, SVal val, const Stmt *S,
H A DCheckObjCDealloc.cpp31 static bool scan_dealloc(Stmt *S, Selector Dealloc) {
45 for (Stmt::child_iterator I = S->child_begin(), E= S->child_end(); I!=E; ++I)
52 static bool scan_ivar_release(Stmt *S, ObjCIvarDecl *ID,
93 for (Stmt::child_iterator I = S->child_begin(), E= S->child_end(); I!=E; ++I)
/external/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp50 // nodes (\c Stmt and \c Decl, but not \c QualType or \c TypeLoc).
101 // actually be Decl, Stmt, or Type):
113 else if (const Stmt *S = DynNode.get<Stmt>())
142 bool TraverseStmt(Stmt *StmtNode) {
144 const Stmt *StmtToTraverse = StmtNode;
198 bool shouldUseDataRecursionFor(clang::Stmt *S) const { return false; }
221 bool baseTraverse(const Stmt &StmtNode) {
222 return VisitorBase::TraverseStmt(const_cast<Stmt*>(&StmtNode));
363 bool TraverseStmt(Stmt *StmtNod
[all...]
/external/clang/unittests/AST/
H A DStmtPrinterTest.cpp10 // This file contains tests for Stmt::printPretty() and related methods.
34 void PrintStmt(raw_ostream &Out, const ASTContext *Context, const Stmt *S) {
35 assert(S != nullptr && "Expected non-null Stmt");
48 const Stmt *S = Result.Nodes.getStmtAs<Stmt>("id");
/external/clang/lib/Parse/
H A DParseAST.cpp19 #include "clang/AST/Stmt.h"
104 Stmt::EnableStatistics();
162 Stmt::PrintStats();
/external/clang/include/clang/Analysis/Analyses/
H A DUninitializedValues.h18 #include "clang/AST/Stmt.h"
33 const Stmt *Terminator;
H A DThreadSafetyCommon.h60 void handleStatement(const Stmt *S) {}
248 til::SExpr *translate(const Stmt *S, CallingContext *Ctx);
251 til::SExpr *lookupStmt(const Stmt *S);
291 typedef llvm::DenseMap<const Stmt*, til::SExpr*> StatementMap;
339 void handleStatement(const Stmt *S);
348 void insertStmt(const Stmt *S, til::SExpr *E) {
353 til::SExpr *addStatement(til::SExpr *E, const Stmt *S,
369 StatementMap SMap; // Map from Stmt to TIL Variables
H A DConsumed.h140 const Stmt *From;
180 void setSource(const Stmt *Source) { this->From = Source; }
/external/clang/include/clang/Rewrite/Core/
H A DRewriter.h30 class Stmt;
248 /// ReplaceStmt - This replaces a Stmt/Expr with another, using the pretty
251 bool ReplaceStmt(Stmt *From, Stmt *To);
265 std::string ConvertToString(Stmt *From);
/external/clang/lib/Sema/
H A DScopeInfo.cpp58 case Stmt::DeclRefExprClass:
62 case Stmt::MemberExprClass: {
68 case Stmt::ObjCIvarRefExprClass: {
74 case Stmt::PseudoObjectExprClass: {
/external/lldb/source/Expression/
H A DASTResultSynthesizer.cpp17 #include "clang/AST/Stmt.h"
154 Stmt *function_body = function_decl->getBody();
198 Stmt *method_body = MethodDecl->getBody();
237 Stmt **last_stmt_ptr = Body->body_end() - 1;
238 Stmt *last_stmt = *last_stmt_ptr;
416 *last_stmt_ptr = reinterpret_cast<Stmt*>(result_initialization_stmt_result.take());

Completed in 522 milliseconds

12345678910