/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SpuriouslyWakeUpFunctionsCheck.cpp | 21 auto hasUniqueLock = hasDescendant(declRefExpr( in registerMatchers() 28 auto hasWaitDescendantCPP = hasDescendant( in registerMatchers() 31 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers() 38 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers() 45 allOf(hasDescendant(memberExpr(hasDeclaration(functionDecl( in registerMatchers() 56 auto hasWaitDescendantC = hasDescendant( in registerMatchers() 65 unless(anyOf(hasDescendant(ifStmt(hasWaitDescendantCPP)), in registerMatchers() 66 hasDescendant(whileStmt(hasWaitDescendantCPP)), in registerMatchers() 67 hasDescendant(forStmt(hasWaitDescendantCPP)), in registerMatchers() 68 hasDescendant(doStmt(hasWaitDescendantCPP))))) in registerMatchers() [all …]
|
D | UnhandledSelfAssignmentCheck.cpp | 44 hasDescendant(binaryOperator(hasAnyOperatorName("==", "!="), in registerMatchers() 46 hasDescendant(cxxOperatorCallExpr( in registerMatchers() 56 hasDescendant(cxxConstructExpr(hasDeclaration(cxxConstructorDecl( in registerMatchers() 64 anyOf(hasDescendant( in registerMatchers() 66 hasDescendant(parenListExpr()))), in registerMatchers() 67 hasDescendant(cxxUnresolvedConstructExpr(hasDescendant(declRefExpr( in registerMatchers() 74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers()
|
D | NotNullTerminatedResultCheck.cpp | 533 hasAncestor(compoundStmt(hasDescendant(binaryOperator( in AST_MATCHER_P() 553 auto HasIncOp = anyOf(ignoringImpCasts(IncOp), hasDescendant(IncOp)); in registerMatchers() 554 auto HasDecOp = anyOf(ignoringImpCasts(DecOp), hasDescendant(DecOp)); in registerMatchers() 556 auto Container = ignoringImpCasts(cxxMemberCallExpr(hasDescendant(declRefExpr( in registerMatchers() 594 ignoringImpCasts(anyOf(Strlen, SizeOrLength, hasDescendant(Strlen), in registerMatchers() 595 hasDescendant(SizeOrLength))); in registerMatchers() 630 hasDescendant(callExpr(MallocLengthExpr))); in registerMatchers() 651 hasDescendant(DestArrayTyDecl))), in registerMatchers() 653 anyOf(DestUnknownDecl, hasDescendant(DestUnknownDecl)))); in registerMatchers() 656 hasLHS(anyOf(hasDescendant(declRefExpr(to(varDecl( in registerMatchers() [all …]
|
D | UnusedRaiiCheck.cpp | 81 match(expr(hasDescendant(typeLoc().bind("t"))), *E, *Result.Context); in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | UseAnyOfAllOfCheck.cpp | 57 hasBody(allOf(hasDescendant(returns(true)), in registerMatchers() 58 unless(anyOf(hasDescendant(breakStmt()), in registerMatchers() 59 hasDescendant(gotoStmt()), in registerMatchers() 60 hasDescendant(returnsButNotTrue)))))) in registerMatchers() 67 hasBody(allOf(hasDescendant(returns(false)), in registerMatchers() 68 unless(anyOf(hasDescendant(breakStmt()), in registerMatchers() 69 hasDescendant(gotoStmt()), in registerMatchers() 70 hasDescendant(returnsButNotFalse)))))) in registerMatchers()
|
D | UniqueptrDeleteReleaseCheck.cpp | 22 substTemplateTypeParmType(), hasDescendant(substTemplateTypeParmType()))); in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | RunLoopAutoreleaseLeakChecker.cpp | 163 hasDescendant(RunLoopRunM), in checkTempObjectsInSamePool() 164 hasDescendant(OtherMessageSentM)).bind(AutoreleasePoolBind); in checkTempObjectsInSamePool() 166 DeclarationMatcher GroupM = decl(hasDescendant(RunLoopInAutorelease)); in checkTempObjectsInSamePool() 184 hasDescendant(RunLoopRunM), in checkTempObjectsInNoPool() 185 hasDescendant(OtherMessageSentM) in checkTempObjectsInNoPool()
|
D | GCDAntipatternChecker.cpp | 99 varDecl(hasDescendant(SemaphoreCreateM)).bind(SemaphoreBinding)), in findGCDAntiPatternWithSemaphore() 107 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr( in findGCDAntiPatternWithSemaphore() 141 varDecl(hasDescendant(DispatchGroupCreateM)).bind(GroupBinding)), in findGCDAntiPatternWithGroup() 153 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr( in findGCDAntiPatternWithGroup()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | StaticObjectExceptionCheck.cpp | 30 anyOf(hasDescendant(cxxConstructExpr(hasDeclaration( in registerMatchers() 32 hasDescendant(cxxNewExpr(hasDeclaration( in registerMatchers() 34 hasDescendant(callExpr(hasDeclaration( in registerMatchers()
|
D | MutatingCopyCheck.cpp | 29 allOf(unless(hasDescendant(expr(unless(MemberExprOrSourceObject)))), in registerMatchers() 43 unless(hasDescendant(expr(unless(MemberExprOrSelf)))), MemberExprOrSelf); in registerMatchers() 51 functionDecl(hasBody(hasDescendant(IsSelfMutatingAssignment))); in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | InefficientStringConcatenationCheck.cpp | 43 hasDescendant(BasicStringPlusOperator)) in registerMatchers() 51 hasArgument(1, stmt(hasDescendant(declRefExpr( in registerMatchers() 53 hasDescendant(BasicStringPlusOperator)); in registerMatchers()
|
D | ImplicitConversionInLoopCheck.cpp | 57 hasDescendant( in registerMatchers() 59 hasDescendant(unaryOperator(hasOperatorName("*")) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/objc/ |
D | NSInvocationArgumentLifetimeCheck.cpp | 111 anyOf(hasDescendant(memberExpr(isObjCManagedLifetime())), in registerMatchers() 112 hasDescendant(objcIvarRefExpr(isObjCManagedLifetime())), in registerMatchers() 113 hasDescendant( in registerMatchers()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 67 decl(hasDescendant(loc(builtinType()))))); in TEST() 69 stmt(hasDescendant(builtinType())))); in TEST() 72 stmt(hasDescendant(loc(builtinType()))))); in TEST() 74 stmt(hasDescendant(qualType(builtinType()))))); in TEST() 77 stmt(hasDescendant(isInteger())))); in TEST() 82 varDecl(hasDescendant(isInteger())).bind("x"))), in TEST() 88 qualType(hasDescendant(builtinType())))); in TEST() 90 qualType(hasDescendant( in TEST() 93 typeLoc(hasDescendant(loc(builtinType()))))); in TEST() 136 hasDescendant(declRefExpr(to(varDecl(hasName("i")))))); in TEST() [all …]
|
D | ASTMatchersNarrowingTest.cpp | 336 recordDecl(hasDescendant(recordDecl(hasName("X"))), hasName("Z")); in TEST_P() 348 hasDescendant(recordDecl(has(recordDecl(hasName("Y"))), hasName("X"))), in TEST_P() 369 recordDecl(hasDescendant(recordDecl( in TEST_P() 370 hasDescendant(recordDecl(hasName("Y"))), hasName("X"))), in TEST_P() 390 decl(hasDescendant(typeLoc().bind("x")), has(decl())); in TEST_P() 400 decl(hasDescendant(VD), hasDescendant(RD)))); in TEST_P() 402 decl(hasDescendant(RD), hasDescendant(VD)))); in TEST_P() 405 decl(anyOf(hasDescendant(RD), hasDescendant(VD))))); in TEST_P() 466 cxxCatchStmt(anyOf(hasDescendant(varDecl()), isCatchAll())))); in TEST_P() 898 anyOf(recordDecl(hasName("A"), hasDescendant(ClassX)), in TEST_P() [all …]
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 68 decl(hasDescendant(loc(builtinType()))))); in TEST() 70 stmt(hasDescendant(builtinType())))); in TEST() 73 stmt(hasDescendant(loc(builtinType()))))); in TEST() 75 stmt(hasDescendant(qualType(builtinType()))))); in TEST() 78 stmt(hasDescendant(isInteger())))); in TEST() 83 varDecl(hasDescendant(isInteger())).bind("x"))), in TEST() 89 qualType(hasDescendant(builtinType())))); in TEST() 91 qualType(hasDescendant( in TEST() 94 typeLoc(hasDescendant(loc(builtinType()))))); in TEST() 137 hasDescendant(declRefExpr(to(varDecl(hasName("i")))))); in TEST() [all …]
|
D | ASTMatchersNarrowingTest.cpp | 194 hasDescendant(recordDecl(hasName("X"))), in TEST() 209 hasDescendant(recordDecl(has(recordDecl(hasName("Y"))), in TEST() 232 hasDescendant(recordDecl(hasDescendant(recordDecl(hasName("Y"))), in TEST() 253 decl(hasDescendant(typeLoc().bind("x")), has(decl())); in TEST() 263 decl(hasDescendant(VD), hasDescendant(RD)))); in TEST() 265 decl(hasDescendant(RD), hasDescendant(VD)))); in TEST() 268 decl(anyOf(hasDescendant(RD), hasDescendant(VD))))); in TEST() 323 cxxCatchStmt(anyOf(hasDescendant(varDecl()), isCatchAll())))); in TEST() 594 recordDecl(hasName("A"), hasDescendant(ClassX)), in TEST() 595 recordDecl(hasName("B"), hasDescendant(ClassX)))), in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | ReturnBracedInitListCheck.cpp | 26 isListInitialization(), hasDescendant(initListExpr()), in registerMatchers() 38 hasDescendant(returnStmt(hasReturnValue( in registerMatchers()
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTImporterTest.cpp | 253 functionDecl(hasDescendant( in TEST_P() 257 functionDecl(hasDescendant( in TEST_P() 261 functionDecl(hasDescendant( in TEST_P() 272 functionDecl(hasDescendant(chooseExpr()))); in TEST_P() 279 functionDecl(hasDescendant(gnuNullExpr(hasType(isInteger()))))); in TEST_P() 287 functionDecl(hasDescendant(cxxNullPtrLiteralExpr()))); in TEST_P() 295 functionDecl(hasDescendant( in TEST_P() 299 functionDecl(hasDescendant( in TEST_P() 306 Verifier, functionDecl(hasDescendant(fixedPointLiteral()))); in TEST_P() 308 Verifier, functionDecl(hasDescendant(fixedPointLiteral()))); in TEST_P() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | DeclRefExprUtils.cpp | 116 decl(hasDescendant( in isCopyConstructorArgument() 130 decl(hasDescendant( in isCopyAssignmentArgument()
|
/external/llvm-project/clang-tools-extra/clang-tidy/fuchsia/ |
D | StaticallyConstructedObjectsCheck.cpp | 37 hasDescendant(cxxConstructExpr(unless(allOf( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | InterfacesGlobalInitCheck.cpp | 32 hasInitializer(expr(hasDescendant( in registerMatchers()
|
D | ProBoundsArrayToPointerDecayCheck.cpp | 31 hasRangeBeginEndStmt(hasDescendant(equalsNode(&Node)))))) in AST_MATCHER()
|
/external/llvm-project/clang-tools-extra/clang-tidy/linuxkernel/ |
D | MustCheckErrsCheck.cpp | 29 auto ReturnsErrFn = functionDecl(hasDescendant(ReturnToCheck)); in registerMatchers()
|
/external/llvm-project/clang/unittests/StaticAnalyzer/ |
D | Reusables.h | 24 auto Matches = match(decl(hasDescendant(What.bind("root"))), in findNode()
|