Home
last modified time | relevance | path

Searched refs:CallExpr (Results 1 – 25 of 144) sorted by relevance

123456

/external/clang/unittests/Tooling/
DLookupTest.cpp16 std::function<void(CallExpr *)> OnCall;
19 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr()
35 auto replaceCallExpr = [&](const CallExpr *Expr, in TEST()
44 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
50 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
56 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
62 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
69 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
75 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
81 Visitor.OnCall = [&](CallExpr *Expr) { in TEST()
[all …]
DFixItTest.cpp23 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr()
28 std::function<void(CallExpr *, ASTContext *Context)> OnCall;
38 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
49 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
59 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
70 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
84 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
104 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
119 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
146 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DStreamChecker.cpp76 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
80 void Fopen(CheckerContext &C, const CallExpr *CE) const;
81 void Tmpfile(CheckerContext &C, const CallExpr *CE) const;
82 void Fclose(CheckerContext &C, const CallExpr *CE) const;
83 void Fread(CheckerContext &C, const CallExpr *CE) const;
84 void Fwrite(CheckerContext &C, const CallExpr *CE) const;
85 void Fseek(CheckerContext &C, const CallExpr *CE) const;
86 void Ftell(CheckerContext &C, const CallExpr *CE) const;
87 void Rewind(CheckerContext &C, const CallExpr *CE) const;
88 void Fgetpos(CheckerContext &C, const CallExpr *CE) const;
[all …]
DExprInspectionChecker.cpp24 void analyzerEval(const CallExpr *CE, CheckerContext &C) const;
25 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const;
26 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const;
27 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const;
28 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const;
29 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const;
30 void analyzerGetExtent(const CallExpr *CE, CheckerContext &C) const;
32 typedef void (ExprInspectionChecker::*FnCheck)(const CallExpr *,
38 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
45 bool ExprInspectionChecker::evalCall(const CallExpr *CE, in REGISTER_SET_WITH_PROGRAMSTATE()
[all …]
DUnixAPIChecker.cpp32 class UnixAPIChecker : public Checker< check::PreStmt<CallExpr> > {
37 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
39 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
40 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
41 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
42 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
43 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
44 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
45 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
46 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
[all …]
DGenericTaintChecker.cpp31 class GenericTaintChecker : public Checker< check::PostStmt<CallExpr>,
32 check::PreStmt<CallExpr> > {
36 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
38 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
53 bool checkPre(const CallExpr *CE, CheckerContext &C) const;
56 void addSourcesPre(const CallExpr *CE, CheckerContext &C) const;
59 bool propagateFromPre(const CallExpr *CE, CheckerContext &C) const;
62 void addSourcesPost(const CallExpr *CE, CheckerContext &C) const;
73 typedef ProgramStateRef (GenericTaintChecker::*FnCheck)(const CallExpr *,
75 ProgramStateRef postScanf(const CallExpr *CE, CheckerContext &C) const;
[all …]
DCheckSecuritySyntaxOnly.cpp79 void VisitCallExpr(CallExpr *CE);
87 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
89 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *);
93 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
94 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
95 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
96 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
97 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
98 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
99 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
[all …]
DChrootChecker.cpp42 class ChrootChecker : public Checker<eval::Call, check::PreStmt<CallExpr> > {
55 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
56 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
59 void Chroot(CheckerContext &C, const CallExpr *CE) const;
60 void Chdir(CheckerContext &C, const CallExpr *CE) const;
65 bool ChrootChecker::evalCall(const CallExpr *CE, CheckerContext &C) const { in evalCall()
88 void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const { in Chroot()
98 void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) const { in Chdir()
125 void ChrootChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const { in checkPreStmt()
DVirtualCallChecker.cpp35 typedef const CallExpr * WorkListUnit;
59 const CallExpr *visitingCallExpr;
96 SaveAndRestore<const CallExpr *> SaveCall(visitingCallExpr, WLUnit); in Execute()
113 void VisitCallExpr(CallExpr *CE);
114 void VisitCXXMemberCallExpr(CallExpr *CE);
118 void ReportVirtualCall(const CallExpr *CE, bool isPure);
133 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
138 void WalkAST::VisitCXXMemberCallExpr(CallExpr *CE) { in VisitCXXMemberCallExpr()
170 void WalkAST::ReportVirtualCall(const CallExpr *CE, bool isPure) { in ReportVirtualCall()
182 for (SmallVectorImpl<const CallExpr *>::iterator I = WList.end(), in ReportVirtualCall()
DPthreadLockChecker.cpp52 class PthreadLockChecker : public Checker< check::PostStmt<CallExpr> > {
64 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
66 void AcquireLock(CheckerContext &C, const CallExpr *CE, SVal lock,
69 void ReleaseLock(CheckerContext &C, const CallExpr *CE, SVal lock) const;
70 void DestroyLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
71 void InitLock(CheckerContext &C, const CallExpr *CE, SVal Lock) const;
72 void reportUseDestroyedBug(CheckerContext &C, const CallExpr *CE) const;
81 void PthreadLockChecker::checkPostStmt(const CallExpr *CE, in REGISTER_LIST_WITH_PROGRAMSTATE()
124 void PthreadLockChecker::AcquireLock(CheckerContext &C, const CallExpr *CE, in AcquireLock()
193 void PthreadLockChecker::ReleaseLock(CheckerContext &C, const CallExpr *CE, in ReleaseLock()
[all …]
DMacOSXAPIChecker.cpp33 class MacOSXAPIChecker : public Checker< check::PreStmt<CallExpr> > {
37 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
39 void CheckDispatchOnce(CheckerContext &C, const CallExpr *CE,
43 const CallExpr *,
52 void MacOSXAPIChecker::CheckDispatchOnce(CheckerContext &C, const CallExpr *CE, in CheckDispatchOnce()
104 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt()
DCStringChecker.cpp62 bool evalCall(const CallExpr *CE, CheckerContext &C) const;
76 const CallExpr *) const;
78 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const;
79 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const;
80 void evalMemmove(CheckerContext &C, const CallExpr *CE) const;
81 void evalBcopy(CheckerContext &C, const CallExpr *CE) const;
82 void evalCopyCommon(CheckerContext &C, const CallExpr *CE,
90 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const;
92 void evalstrLength(CheckerContext &C, const CallExpr *CE) const;
93 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const;
[all …]
DCStringSyntaxChecker.cpp57 if (const CallExpr *CE = dyn_cast<CallExpr>(E)) { in isStrlen()
82 bool containsBadStrncatPattern(const CallExpr *CE);
93 void VisitCallExpr(CallExpr *CE);
103 bool WalkAST::containsBadStrncatPattern(const CallExpr *CE) { in containsBadStrncatPattern()
135 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
DObjCContainersChecker.cpp31 class ObjCContainersChecker : public Checker< check::PreStmt<CallExpr>,
32 check::PostStmt<CallExpr>,
54 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
55 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
84 void ObjCContainersChecker::checkPostStmt(const CallExpr *CE, in checkPostStmt()
107 void ObjCContainersChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt()
DMallocSizeofChecker.cpp31 typedef std::pair<const TypeSourceInfo *, const CallExpr *> TypeCallPair;
43 const CallExpr *AllocCall;
47 const CallExpr *AllocCall) in CallRecord()
91 TypeCallPair VisitCallExpr(const CallExpr *E) { in VisitCallExpr()
191 for (CallExpr::const_arg_iterator ai = i->AllocCall->arg_begin(), in checkASTCodeBody()
DMacOSKeychainAPIChecker.cpp29 class MacOSKeychainAPIChecker : public Checker<check::PreStmt<CallExpr>,
30 check::PostStmt<CallExpr>,
57 void checkPreStmt(const CallExpr *S, CheckerContext &C) const;
58 void checkPostStmt(const CallExpr *S, CheckerContext &C) const;
269 void MacOSKeychainAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt()
441 void MacOSKeychainAPIChecker::checkPostStmt(const CallExpr *CE, in checkPostStmt()
606 const CallExpr *CE = in VisitNode()
607 cast<CallExpr>(N->getLocation().castAs<StmtPoint>().getStmt()); in VisitNode()
DObjCContainersASTChecker.cpp81 void VisitCallExpr(CallExpr *CE);
85 static StringRef getCalleeName(CallExpr *CE) { in getCalleeName()
97 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr()
DMallocChecker.cpp163 check::PostStmt<CallExpr>,
202 void checkPostStmt(const CallExpr *CE, CheckerContext &C) const;
279 const CallExpr *CE,
282 static ProgramStateRef MallocMemAux(CheckerContext &C, const CallExpr *CE,
286 static ProgramStateRef MallocMemAux(CheckerContext &C, const CallExpr *CE,
294 performKernelMalloc(const CallExpr *CE, CheckerContext &C,
302 ProgramStateRef FreeMemAttr(CheckerContext &C, const CallExpr *CE,
305 ProgramStateRef FreeMemAux(CheckerContext &C, const CallExpr *CE,
317 ProgramStateRef ReallocMem(CheckerContext &C, const CallExpr *CE,
320 static ProgramStateRef CallocMem(CheckerContext &C, const CallExpr *CE,
[all …]
/external/v8/tools/clang/traffic_annotation_extractor/
Dtraffic_annotation_extractor.cpp141 if (const clang::CallExpr* call_expr = in run()
142 result.Nodes.getNodeAs<clang::CallExpr>("monitored_function")) { in run()
186 void AddFunction(const clang::CallExpr* call_expr, in AddFunction()
252 const clang::CallExpr* call_expr = nullptr; in AddAnnotation()
254 result.Nodes.getNodeAs<clang::CallExpr>("definition_function"))) { in AddAnnotation()
256 } else if ((call_expr = result.Nodes.getNodeAs<clang::CallExpr>( in AddAnnotation()
261 } else if ((call_expr = result.Nodes.getNodeAs<clang::CallExpr>( in AddAnnotation()
264 } else if ((call_expr = result.Nodes.getNodeAs<clang::CallExpr>( in AddAnnotation()
/external/v8/tools/clang/blink_gc_plugin/
DCheckTraceVisitor.h27 bool VisitCallExpr(clang::CallExpr* call);
36 clang::CallExpr* call,
38 bool CheckTraceBaseCall(clang::CallExpr* call);
/external/clang/examples/analyzer-plugin/
DMainCallChecker.cpp10 class MainCallChecker : public Checker < check::PreStmt<CallExpr> > {
14 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
18 void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const { in checkPreStmt()
/external/v8/tools/clang/plugins/
DCheckIPCVisitor.h50 void VisitCallExpr(clang::CallExpr* call_expr);
57 bool ValidateWriteParam(const clang::CallExpr* call_expr);
58 bool ValidateWriteParamSignature(const clang::CallExpr* call_expr);
/external/clang/lib/ARCMigrate/
DTransUnbridgedCasts.cpp135 if (CallExpr *callE = dyn_cast<CallExpr>(inner)) { in transformNonObjCToObjCCast()
276 void rewriteCastForCFRetain(CastExpr *castE, CallExpr *callE) { in rewriteCastForCFRetain()
357 CallExpr *callE; in transformObjCToNonObjCCast()
417 bool isPassedToCFRetain(Expr *E, CallExpr *&callE) const { in isPassedToCFRetain()
418 if ((callE = dyn_cast_or_null<CallExpr>( in isPassedToCFRetain()
431 if (CallExpr *callE = dyn_cast_or_null<CallExpr>( in isPassedToCParamWithKnownOwnership()
/external/clang/unittests/AST/
DASTTypeTraitsTest.cpp57 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<CallExpr>())); in TEST()
59 EXPECT_FALSE(DNT<CallExpr>().isBaseOf(DNT<BinaryOperator>())); in TEST()
60 EXPECT_FALSE(DNT<BinaryOperator>().isBaseOf(DNT<CallExpr>())); in TEST()
121 VERIFY_NAME(CallExpr); in TEST()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.h49 bool VisitCallExpr(clang::CallExpr *Call);
63 bool TraverseCallExpr(clang::CallExpr *Call);
65 bool VisitCallExpr(clang::CallExpr *Call);
100 bool VisitCallExpr(clang::CallExpr *Call);

123456