/external/llvm-project/clang/unittests/Tooling/ |
D | LookupTest.cpp | 15 std::function<void(CallExpr *)> OnCall; 19 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr() 42 auto replaceCallExpr = [&](const CallExpr *Expr, in TEST() 51 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() 57 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() 63 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() 69 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() 76 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() 82 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() 88 Visitor.OnCall = [&](CallExpr *Expr) { in TEST() [all …]
|
D | FixItTest.cpp | 22 bool VisitCallExpr(CallExpr *Expr) { in VisitCallExpr() 27 std::function<void(CallExpr *, ASTContext *Context)> OnCall; 37 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 48 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 58 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 69 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 83 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 103 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 118 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 145 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() [all …]
|
/external/clang/unittests/Tooling/ |
D | LookupTest.cpp | 16 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 …]
|
D | FixItTest.cpp | 23 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/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | UnixAPIChecker.cpp | 41 class UnixAPIMisuseChecker : public Checker< check::PreStmt<CallExpr> > { 48 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 50 void CheckOpen(CheckerContext &C, const CallExpr *CE) const; 51 void CheckOpenAt(CheckerContext &C, const CallExpr *CE) const; 52 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const; 55 const CallExpr *CE, OpenVariant Variant) const; 64 class UnixAPIPortabilityChecker : public Checker< check::PreStmt<CallExpr> > { 66 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 71 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const; 72 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const; [all …]
|
D | ExprInspectionChecker.cpp | 35 mutable llvm::DenseMap<const CallExpr *, ReachedStat> ReachedStats; 37 void analyzerEval(const CallExpr *CE, CheckerContext &C) const; 38 void analyzerCheckInlined(const CallExpr *CE, CheckerContext &C) const; 39 void analyzerWarnIfReached(const CallExpr *CE, CheckerContext &C) const; 40 void analyzerNumTimesReached(const CallExpr *CE, CheckerContext &C) const; 41 void analyzerCrash(const CallExpr *CE, CheckerContext &C) const; 42 void analyzerWarnOnDeadSymbol(const CallExpr *CE, CheckerContext &C) const; 43 void analyzerDump(const CallExpr *CE, CheckerContext &C) const; 44 void analyzerExplain(const CallExpr *CE, CheckerContext &C) const; 45 void analyzerPrintState(const CallExpr *CE, CheckerContext &C) const; [all …]
|
D | DebugIteratorModeling.cpp | 33 void analyzerIteratorDataField(const CallExpr *CE, CheckerContext &C, 35 void analyzerIteratorPosition(const CallExpr *CE, CheckerContext &C) const; 36 void analyzerIteratorContainer(const CallExpr *CE, CheckerContext &C) const; 37 void analyzerIteratorValidity(const CallExpr *CE, CheckerContext &C) const; 40 typedef void (DebugIteratorModeling::*FnCheck)(const CallExpr *, 68 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() 81 void DebugIteratorModeling::analyzerIteratorDataField(const CallExpr *CE, in analyzerIteratorDataField() 101 void DebugIteratorModeling::analyzerIteratorPosition(const CallExpr *CE, in analyzerIteratorPosition() 109 void DebugIteratorModeling::analyzerIteratorContainer(const CallExpr *CE, in analyzerIteratorContainer() 117 void DebugIteratorModeling::analyzerIteratorValidity(const CallExpr *CE, in analyzerIteratorValidity()
|
D | CheckSecuritySyntaxOnly.cpp | 87 void VisitCallExpr(CallExpr *CE); 96 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD); 98 typedef void (WalkAST::*FnCheck)(const CallExpr *, const FunctionDecl *); 103 void checkCall_bcmp(const CallExpr *CE, const FunctionDecl *FD); 104 void checkCall_bcopy(const CallExpr *CE, const FunctionDecl *FD); 105 void checkCall_bzero(const CallExpr *CE, const FunctionDecl *FD); 106 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD); 107 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD); 108 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD); 109 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD); [all …]
|
D | DebugContainerModeling.cpp | 33 void analyzerContainerDataField(const CallExpr *CE, CheckerContext &C, 35 void analyzerContainerBegin(const CallExpr *CE, CheckerContext &C) const; 36 void analyzerContainerEnd(const CallExpr *CE, CheckerContext &C) const; 39 typedef void (DebugContainerModeling::*FnCheck)(const CallExpr *, 65 const auto *CE = dyn_cast_or_null<CallExpr>(Call.getOriginExpr()); in evalCall() 78 void DebugContainerModeling::analyzerContainerDataField(const CallExpr *CE, in analyzerContainerDataField() 118 void DebugContainerModeling::analyzerContainerBegin(const CallExpr *CE, in analyzerContainerBegin() 125 void DebugContainerModeling::analyzerContainerEnd(const CallExpr *CE, in analyzerContainerEnd()
|
D | MacOSXAPIChecker.cpp | 33 class MacOSXAPIChecker : public Checker< check::PreStmt<CallExpr> > { 39 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 41 void CheckDispatchOnce(CheckerContext &C, const CallExpr *CE, 45 const CallExpr *, 65 void MacOSXAPIChecker::CheckDispatchOnce(CheckerContext &C, const CallExpr *CE, in CheckDispatchOnce() 153 void MacOSXAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt()
|
D | CStringChecker.cpp | 119 const CallExpr *) const; 152 void evalMemcpy(CheckerContext &C, const CallExpr *CE) const; 153 void evalMempcpy(CheckerContext &C, const CallExpr *CE) const; 154 void evalMemmove(CheckerContext &C, const CallExpr *CE) const; 155 void evalBcopy(CheckerContext &C, const CallExpr *CE) const; 156 void evalCopyCommon(CheckerContext &C, const CallExpr *CE, 161 void evalMemcmp(CheckerContext &C, const CallExpr *CE) const; 163 void evalstrLength(CheckerContext &C, const CallExpr *CE) const; 164 void evalstrnLength(CheckerContext &C, const CallExpr *CE) const; 166 const CallExpr *CE, [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
D | RedundantStrcatCallsCheck.cpp | 49 void RemoveCallLeaveArgs(const CallExpr* Call, StrCatCheckResult* CheckResult) { in RemoveCallLeaveArgs() 62 const clang::CallExpr* ProcessArgument(const Expr* Arg, in ProcessArgument() 69 if (const auto *SubStrcatCall = selectFirst<const CallExpr>( in ProcessArgument() 82 StrCatCheckResult ProcessCall(const CallExpr* RootCall, bool IsAppend, in ProcessCall() 85 std::deque<const CallExpr*> CallsToProcess = {RootCall}; in ProcessCall() 90 const CallExpr* CallExpr = CallsToProcess.front(); in ProcessCall() local 93 int StartArg = CallExpr == RootCall && IsAppend; in ProcessCall() 94 for (const auto *Arg : CallExpr->arguments()) { in ProcessCall() 97 if (const clang::CallExpr* Sub = in ProcessCall() 110 const CallExpr* RootCall; in check() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | ExprInspectionChecker.cpp | 24 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 …]
|
D | StreamChecker.cpp | 76 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 …]
|
D | UnixAPIChecker.cpp | 32 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 …]
|
D | GenericTaintChecker.cpp | 31 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 …]
|
D | ChrootChecker.cpp | 42 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()
|
D | CheckSecuritySyntaxOnly.cpp | 79 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 …]
|
D | VirtualCallChecker.cpp | 35 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()
|
D | MacOSXAPIChecker.cpp | 33 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()
|
D | PthreadLockChecker.cpp | 52 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 …]
|
D | CStringChecker.cpp | 62 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 …]
|
D | CStringSyntaxChecker.cpp | 57 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()
|
/external/javassist/src/main/javassist/compiler/ast/ |
D | CallExpr.java | 26 public class CallExpr extends Expr { class 31 private CallExpr(ASTree _head, ASTList _tail) { in CallExpr() method in CallExpr 44 public static CallExpr makeCall(ASTree target, ASTree args) { in makeCall() 45 return new CallExpr(target, new ASTList(args)); in makeCall()
|
/external/llvm-project/clang-tools-extra/clang-tidy/linuxkernel/ |
D | MustCheckErrsCheck.cpp | 36 const CallExpr *MatchedCallExpr = Result.Nodes.getNodeAs<CallExpr>("call"); in check() 42 const CallExpr *MatchedTransitiveCallExpr = in check() 43 Result.Nodes.getNodeAs<CallExpr>("transitive_call"); in check()
|