| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GCDAntipatternChecker.cpp | 93 auto SemaphoreCreateM = callExpr(allOf( in findGCDAntiPatternWithSemaphore() 107 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr( in findGCDAntiPatternWithSemaphore() 118 callExpr(HasBlockAndCallsSignalM), in findGCDAntiPatternWithSemaphore() 123 callExpr( in findGCDAntiPatternWithSemaphore() 137 auto DispatchGroupCreateM = callExpr(callsName("dispatch_group_create")); in findGCDAntiPatternWithGroup() 146 stmt(callExpr(allOf(callsName("dispatch_group_enter"), in findGCDAntiPatternWithGroup() 153 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr( in findGCDAntiPatternWithGroup() 164 callExpr(HasBlockAndCallsLeaveM), in findGCDAntiPatternWithGroup() 169 callExpr( in findGCDAntiPatternWithGroup()
|
| H A D | OSObjectCStyleCast.cpp | 86 auto DynamicCastM = callExpr(callee(functionDecl(hasName("safeMetaCast")))); in checkASTCodeBody() 94 auto AllocClassWithNameM = callExpr( in checkASTCodeBody()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | TypePromotionInMathFnCheck.cpp | 71 callExpr(callee(functionDecl(OneDoubleArgFns, parameterCountIs(1), in registerMatchers() 82 callExpr(callee(functionDecl(TwoDoubleArgFns, parameterCountIs(2), in registerMatchers() 91 callExpr(callee(functionDecl(hasName("::fma"), parameterCountIs(3), in registerMatchers() 102 callExpr(callee(functionDecl( in registerMatchers() 114 callExpr(callee(functionDecl(hasName("::nexttoward"), parameterCountIs(2), in registerMatchers() 124 callExpr( in registerMatchers() 136 callExpr(callee(functionDecl(hasName("::scalbln"), parameterCountIs(2), in registerMatchers() 145 callExpr(callee(functionDecl(hasName("::scalbn"), parameterCountIs(2), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | TimeSubtractionCheck.cpp | 40 callExpr(hasParent(materializeTemporaryExpr(hasParent( in isConstructorAssignment() 44 callExpr(hasParent(varDecl())).bind("e"))), in isConstructorAssignment() 58 hasParent(callExpr()), in isArgument() 61 expr(hasParent(callExpr()), in isArgument() 102 auto TimeInverseMatcher = callExpr(callee( in registerMatchers() 112 callExpr( in registerMatchers() 164 callExpr(callee(functionDecl(hasName( in check()
|
| H A D | RedundantStrcatCallsCheck.cpp | 29 callExpr(callee(functionDecl(hasName("::absl::StrCat")))); in registerMatchers() 31 callExpr(callee(functionDecl(hasName("::absl::StrAppend")))); in registerMatchers() 34 const auto CallToEither = callExpr( in registerMatchers() 37 callExpr(CallToStrcat, unless(hasAncestor(CallToEither))).bind("StrCat"), in registerMatchers() 68 has(callExpr(callee(functionDecl(*Strcat))).bind("StrCat"))); in processArgument()
|
| H A D | DurationUnnecessaryConversionCheck.cpp | 34 callExpr(callee(functionDecl(hasName(DurationFactory))), in registerMatchers() 39 auto InverseFunctionMatcher = callExpr( in registerMatchers() 51 auto FdivMatcher = callExpr( in registerMatchers() 60 callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 67 callExpr(callee(functionDecl(hasName(DurationFactory))), in registerMatchers()
|
| H A D | UpgradeDurationConversionsCheck.cpp | 62 callExpr(callee(functionDecl( in registerMatchers() 76 callExpr(callee(functionDecl( in registerMatchers() 107 hasParent(callExpr( in registerMatchers()
|
| H A D | StrCatAppendCheck.cpp | 54 callExpr(hasAnyArgument(expr(hasDescendant(declRefExpr( in registerMatchers() 68 callExpr(callee(StrCat), hasArgument(0, AlphaNum), in registerMatchers()
|
| H A D | FasterStrsplitDelimiterCheck.cpp | 83 callExpr(callee(functionDecl(hasName("::absl::StrSplit"))), in registerMatchers() 94 callExpr(callee(functionDecl(hasName("::absl::MaxSplits"))), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RangeSelectorTest.cpp | 176 TestMatch Match = matchCode(Code, callExpr().bind(Call)); in TEST() 260 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST() 272 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST() 286 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST() 298 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST() 526 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST() 541 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST() 556 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST() 589 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST() 605 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST() [all …]
|
| H A D | TransformerTest.cpp | 210 callExpr(callee(functionDecl(hasName("strlen"))), in ruleStrlenSize() 257 makeRule(callExpr(callee(functionDecl(hasName("f")))), in TEST_F() 275 callExpr(callee(functionDecl(hasName("f")))), in TEST_F() 961 makeRule(callExpr(callee(functionDecl(hasName("f1")))), in TEST_F() 964 makeRule(callExpr(callee(functionDecl(hasAnyName("f1", "f2")))), in TEST_F() 986 makeRule(callExpr(callee(functionDecl(hasName("f1")))), in TEST_F() 1014 makeRule(callExpr(callee(functionDecl(hasName("f1")))), in TEST_F() 1044 makeRule(callExpr(callee(functionDecl(hasName("f1")))), in TEST_F() 1047 makeRule(implicitCastExpr(hasSourceExpression(callExpr())), in TEST_F() 1650 makeRule(callExpr(callee( in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/linuxkernel/ |
| H A D | MustCheckErrsCheck.cpp | 25 callExpr(callee(ErrFn), hasParent(NonCheckingStmts)).bind("call"), in registerMatchers() 28 auto ReturnToCheck = returnStmt(hasReturnValue(callExpr(callee(ErrFn)))); in registerMatchers() 30 Finder->addMatcher(callExpr(callee(ReturnsErrFn), hasParent(NonCheckingStmts)) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | FoldInitTypeCheck.cpp | 42 callExpr(callee(functionDecl( in registerMatchers() 50 callExpr(callee(functionDecl(hasName("::std::inner_product"), in registerMatchers() 59 callExpr(callee(functionDecl(hasName("::std::reduce"), in registerMatchers() 67 callExpr(callee(functionDecl(hasName("::std::inner_product"), in registerMatchers()
|
| H A D | PosixReturnCheck.cpp | 35 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 44 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 53 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
|
| H A D | MisplacedOperatorInStrlenInAllocCheck.cpp | 28 callExpr(callee(StrLenFunc), in registerMatchers() 58 traverse(TK_AsIs, callExpr(callee(decl(anyOf(Alloc0Func, Alloc0FuncPtr))), in registerMatchers() 63 traverse(TK_AsIs, callExpr(callee(decl(anyOf(Alloc1Func, Alloc1FuncPtr))), in registerMatchers()
|
| H A D | SuspiciousMemsetUsageCheck.cpp | 34 callExpr( in registerMatchers() 46 callExpr(callee(MemsetDecl), argumentCountIs(3), in registerMatchers() 52 callExpr(callee(MemsetDecl), argumentCountIs(3), in registerMatchers()
|
| H A D | NoEscapeCheck.cpp | 20 Finder->addMatcher(callExpr(callee(functionDecl(hasName("::dispatch_async"))), in registerMatchers() 24 Finder->addMatcher(callExpr(callee(functionDecl(hasName("::dispatch_after"))), in registerMatchers()
|
| H A D | UndefinedMemoryManipulationCheck.cpp | 33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 42 callExpr(callee(functionDecl(hasAnyName("::memcpy", "::memmove"))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NoMallocCheck.cpp | 33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 40 callExpr(callee(functionDecl( in registerMatchers() 47 callExpr(callee(functionDecl( in registerMatchers()
|
| H A D | OwningMemoryCheck.cpp | 43 callExpr(callee(functionDecl(LegacyCreatorFunctions))); in registerMatchers() 55 callExpr(callee( in registerMatchers() 77 traverse(TK_AsIs, callExpr(callee(LegacyOwnerConsumers), in registerMatchers() 136 callExpr(forEachArgumentWithParam( in registerMatchers() 143 Finder->addMatcher(callExpr(forEachArgumentWithParam( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseUncaughtExceptionsCheck.cpp | 31 declRefExpr(to(functionDecl(hasName(MatchText))), unless(callExpr())) in registerMatchers() 39 Finder->addMatcher(callExpr(DirectCallToUncaughtException, in registerMatchers() 45 Finder->addMatcher(callExpr(DirectCallToUncaughtException, in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | NonTrivialTypesLibcMemoryCallsCheck.cpp | 90 callExpr(callee(namedDecl(hasAnyName( in registerMatchers() 96 callExpr(callee(namedDecl(hasAnyName( in registerMatchers() 102 callExpr(callee(namedDecl(hasAnyName( in registerMatchers()
|
| H A D | CommandProcessorCheck.cpp | 21 callExpr( in registerMatchers() 27 unless(callExpr(callee(functionDecl(hasName("::system"))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | PreferIsaOrDynCastInConditionalsCheck.cpp | 28 callExpr( in registerMatchers() 38 callExpr(allOf(unless(isMacroID()), unless(cxxMemberCallExpr()), in registerMatchers() 44 callExpr( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | SingleWorkItemBarrierCheck.cpp | 31 forEachDescendant(callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 35 unless(hasDescendant(callExpr(callee(functionDecl( in registerMatchers()
|