/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
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()
|
D | DurationUnnecessaryConversionCheck.cpp | 34 callExpr(callee(functionDecl(hasName(DurationFactory))), in registerMatchers() 39 auto inverse_function_matcher = callExpr( in registerMatchers() 51 auto fdiv_matcher = callExpr( in registerMatchers() 60 callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 67 callExpr(callee(functionDecl(hasName(DurationFactory))), in registerMatchers()
|
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()
|
D | UpgradeDurationConversionsCheck.cpp | 62 callExpr(callee(functionDecl( in registerMatchers() 76 callExpr(callee(functionDecl( in registerMatchers() 108 hasParent(callExpr( in registerMatchers()
|
/external/llvm-project/clang/unittests/Tooling/ |
D | RangeSelectorTest.cpp | 137 ast_matchers::internal::Matcher<Stmt> M = callExpr().bind(CallID); in TEST() 156 ast_matchers::internal::Matcher<Stmt> M = callExpr().bind(CallID); in TEST() 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() 310 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST() 323 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST() 497 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/linuxkernel/ |
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()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
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()
|
D | PosixReturnCheck.cpp | 35 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 44 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 53 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
|
D | SuspiciousMemsetUsageCheck.cpp | 34 callExpr( in registerMatchers() 47 Finder->addMatcher(callExpr(callee(MemsetDecl), in registerMatchers() 54 callExpr(callee(MemsetDecl), in registerMatchers()
|
D | MisplacedOperatorInStrlenInAllocCheck.cpp | 28 callExpr(callee(StrLenFunc), in registerMatchers() 59 callExpr(callee(decl(anyOf(Alloc0Func, Alloc0FuncPtr))), in registerMatchers() 65 callExpr(callee(decl(anyOf(Alloc1Func, Alloc1FuncPtr))), in registerMatchers()
|
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()
|
D | UndefinedMemoryManipulationCheck.cpp | 33 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyName( in registerMatchers() 42 callExpr(callee(functionDecl(hasAnyName("::memcpy", "::memmove"))), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | NoMallocCheck.cpp | 41 Finder->addMatcher(callExpr(callee(functionDecl(hasAnyListedName(AllocList)))) in registerMatchers() 47 callExpr(callee(functionDecl(hasAnyListedName(ReallocList)))) in registerMatchers() 53 callExpr(callee(functionDecl(hasAnyListedName(DeallocList)))) in registerMatchers()
|
D | OwningMemoryCheck.cpp | 52 callExpr(callee(functionDecl(LegacyCreatorFunctions))); in registerMatchers() 64 callExpr(callee( in registerMatchers() 87 callExpr(callee(LegacyOwnerConsumers), in registerMatchers() 151 callExpr(forEachArgumentWithParam( in registerMatchers() 158 Finder->addMatcher(callExpr(forEachArgumentWithParam( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
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()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | VariadicResolutionTest.java | 65 MethodCallExpr callExpr = Navigator.findMethodCall(method, "variadicMethod").get(); in methodCallWithReferenceTypeAsVaridicArgumentIsSolved() local 69 MethodUsage callee = javaParserFacade.solveMethodAsUsage(callExpr); in methodCallWithReferenceTypeAsVaridicArgumentIsSolved() 79 MethodCallExpr callExpr = Navigator.findMethodCall(method, "variadicWithGenericArg").get(); in resolveVariadicMethodWithGenericArgument() local 83 MethodUsage callee = javaParserFacade.solveMethodAsUsage(callExpr); in resolveVariadicMethodWithGenericArgument()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | CommandProcessorCheck.cpp | 21 callExpr( in registerMatchers() 27 unless(callExpr(callee(functionDecl(hasName("::system"))), in registerMatchers()
|
D | NonTrivialTypesLibcMemoryCallsCheck.cpp | 107 callExpr(callee(namedDecl(hasAnyNameStdString( in registerMatchers() 114 callExpr(callee(namedDecl(hasAnyNameStdString( in registerMatchers() 120 callExpr(callee(namedDecl(hasAnyNameStdString( in registerMatchers()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/ |
D | TypeExtractor.java | 361 MethodCallExpr callExpr = (MethodCallExpr) getParentNode(node); in visit() local 363 SymbolReference<MethodDeclaration> refMethod = facade.solve(callExpr); in visit() 365 … throw new UnsolvedSymbolException(getParentNode(node).toString(), callExpr.getName().getId()); in visit() 373 if (callExpr.getScope().isPresent()) { in visit() 374 Expression scope = callExpr.getScope().get(); in visit() 481 MethodCallExpr callExpr = (MethodCallExpr) getParentNode(node); in visit() local 483 …arser.symbolsolver.model.declarations.MethodDeclaration> refMethod = facade.solve(callExpr, false); in visit() 485 … throw new UnsolvedSymbolException(getParentNode(node).toString(), callExpr.getName().getId()); in visit() 490 MethodUsage usage = facade.solveMethodAsUsage(callExpr); in visit()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/ |
D | TypeExtractor.java | 354 MethodCallExpr callExpr = (MethodCallExpr) requireParentNode(node); in visit() local 356 SymbolReference<ResolvedMethodDeclaration> refMethod = facade.solve(callExpr); in visit() 358 ….resolution.UnsolvedSymbolException(requireParentNode(node).toString(), callExpr.getName().getId()… in visit() 366 if (callExpr.getScope().isPresent()) { in visit() 367 Expression scope = callExpr.getScope().get(); in visit() 465 MethodCallExpr callExpr = (MethodCallExpr) requireParentNode(node); in visit() local 467 SymbolReference<ResolvedMethodDeclaration> refMethod = facade.solve(callExpr, false); in visit() 469 ….resolution.UnsolvedSymbolException(requireParentNode(node).toString(), callExpr.getName().getId()… in visit() 473 MethodUsage usage = facade.solveMethodAsUsage(callExpr); in visit()
|
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/ |
D | PreferIsaOrDynCastInConditionalsCheck.cpp | 28 callExpr( in registerMatchers() 38 callExpr(allOf(unless(isMacroID()), unless(cxxMemberCallExpr()), in registerMatchers() 44 callExpr( in registerMatchers()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 371 StatementMatcher CallMethodX = callExpr(callee(cxxMethodDecl(hasName("x")))); in TEST() 377 traverse(ast_type_traits::TK_AsIs, callExpr(callee(cxxConversionDecl()))); in TEST() 386 callExpr(callee(memberExpr())))); in TEST() 388 notMatches("class Y { void x() { this->x(); } };", callExpr(callee(callExpr())))); in TEST() 392 StatementMatcher CallArgumentY = callExpr( in TEST() 400 StatementMatcher WrongIndex = callExpr( in TEST() 408 StatementMatcher CallArgumentY = callExpr(HasArgumentY); in TEST() 440 ast_type_traits::TK_AsIs, callExpr(hasAnyArgument(implicitCastExpr()))); in TEST() 576 auto MatchesCall = cxxMemberCallExpr(on(callExpr())); in TEST() 615 cxxMemberCallExpr(onImplicitObjectArgument(callExpr()))); in TEST() [all …]
|
/external/llvm-project/clang/lib/ASTMatchers/ |
D | GtestMatchers.cpp | 91 return callExpr(callee(getComparisonDecl(Cmp)), in gtestAssert() 98 return callExpr(callee(getComparisonDecl(Cmp)), in gtestExpect()
|