/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | AvoidGotoCheck.cpp | 34 stmt(anyOf(forStmt(hasAncestor(Loop)), cxxForRangeStmt(hasAncestor(Loop)), in registerMatchers() 35 whileStmt(hasAncestor(Loop)), doStmt(hasAncestor(Loop)))); in registerMatchers() 37 Finder->addMatcher(gotoStmt(anyOf(unless(hasAncestor(NestedLoop)), in registerMatchers()
|
D | ProBoundsArrayToPointerDecayCheck.cpp | 30 return stmt(hasAncestor(cxxForRangeStmt( in AST_MATCHER()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | ThrowKeywordMissingCheck.cpp | 28 unless(anyOf(hasAncestor(stmt( in registerMatchers() 30 hasAncestor(varDecl()), in registerMatchers() 31 allOf(hasAncestor(CtorInitializerList), in registerMatchers() 32 unless(hasAncestor(cxxCatchStmt())))))) in registerMatchers()
|
D | IntegerDivisionCheck.cpp | 37 hasAncestor(castExpr(hasCastKind(CK_IntegralToFloating)) in registerMatchers() 39 unless(hasAncestor(expr( in registerMatchers() 41 hasAncestor(castExpr(equalsBoundNode("FloatCast"))))))) in registerMatchers()
|
D | TerminatingContinueCheck.cpp | 29 continueStmt(hasAncestor(stmt(anyOf(forStmt(), whileStmt(), in registerMatchers() 32 hasAncestor(doWithFalse)) in registerMatchers()
|
D | UnhandledSelfAssignmentCheck.cpp | 54 ofClass(cxxRecordDecl(unless(hasAncestor(classTemplateDecl())))), in registerMatchers() 63 ofClass(cxxRecordDecl(hasAncestor(classTemplateDecl()))), in registerMatchers()
|
D | UseAfterMoveCheck.cpp | 99 return anyOf(hasAncestor(typeLoc()), in inDecltypeOrTemplateArg() 100 hasAncestor(declRefExpr( in inDecltypeOrTemplateArg() 102 hasAncestor(expr(hasUnevaluatedContext()))); in inDecltypeOrTemplateArg() 402 anyOf(hasAncestor(lambdaExpr().bind("containing-lambda")), in registerMatchers() 403 hasAncestor(functionDecl().bind("containing-func"))), in registerMatchers()
|
D | ForwardDeclarationNamespaceCheck.cpp | 30 auto IsInSpecialization = hasAncestor( in registerMatchers() 36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())), in registerMatchers()
|
D | SizeofContainerCheck.cpp | 30 unless(hasAncestor(binaryOperator( in registerMatchers()
|
D | LambdaFunctionNameCheck.cpp | 63 Finder->addMatcher(predefinedExpr(hasAncestor(lambdaExpr())).bind("E"), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-change-namespace/ |
D | ChangeNamespace.cpp | 378 allOf(hasAncestor(namespaceDecl(hasName(FullOldNs)).bind("ns_decl")), in registerMatchers() 381 IsInMovedNs, unless(hasAncestor(namespaceDecl(hasName(Prefix))))); in registerMatchers() 422 hasAncestor(namespaceDecl()), in registerMatchers() 424 isImplicit(), hasAncestor(namespaceDecl(isAnonymous())), in registerMatchers() 425 hasAncestor(cxxRecordDecl()), in registerMatchers() 445 hasAncestor(isImplicit()), in registerMatchers() 446 hasAncestor(UsingShadowDeclInClass), in registerMatchers() 447 hasAncestor(functionDecl(isDefaulted())))), in registerMatchers() 448 hasAncestor(decl().bind("dc"))) in registerMatchers() 466 hasAncestor(decl(IsInMovedNs).bind("dc")), in registerMatchers() [all …]
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTContextParentMapTest.cpp | 79 hasAncestor(cxxRecordDecl(isTemplateInstantiation())), in TEST() 80 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation()))))))); in TEST() 111 varDecl(hasName("y"), hasAncestor(functionDecl( in TEST()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 1496 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))), in TEST() 1503 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))), in TEST() 1558 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A")))))); in TEST() 1564 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X")))))); in TEST() 1571 hasAncestor(recordDecl(hasName("A")))))))); in TEST() 1577 integerLiteral(equals(42), hasAncestor(ifStmt())))); in TEST() 1583 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f")))))); in TEST() 1589 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))), in TEST() 1596 fieldDecl(hasAncestor( in TEST() 1599 hasAncestor(recordDecl()))) in TEST() [all …]
|
/external/clang/unittests/AST/ |
D | ASTContextParentMapTest.cpp | 77 hasAncestor(cxxRecordDecl(isTemplateInstantiation())), in TEST() 78 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation()))))))); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseUncaughtExceptionsCheck.cpp | 40 unless(hasAncestor(initListExpr()))) in registerMatchers() 46 hasAncestor(initListExpr())) in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | RunLoopAutoreleaseLeakChecker.cpp | 159 hasAncestor(autoreleasePoolStmt().bind(OtherStmtAutoreleasePoolBind))); in checkTempObjectsInSamePool() 177 auto NoPoolM = unless(hasAncestor(autoreleasePoolStmt())); in checkTempObjectsInNoPool()
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
D | Tree.java | 58 public boolean hasAncestor(int ttype); in hasAncestor() method
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | UnnecessaryValueParamCheck.cpp | 37 unless(hasAncestor(callExpr()))), in isReferencedOutsideOfCallExpr() 48 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(), in hasLoopStmtAncestor()
|
D | InefficientStringConcatenationCheck.cpp | 61 hasAncestor(stmt(anyOf(cxxForRangeStmt(), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | ContainerSizeEmptyCheck.cpp | 62 unless(hasAncestor(cxxMethodDecl( in registerMatchers() 93 unless(hasAncestor( in registerMatchers()
|
D | UppercaseLiteralSuffixCheck.cpp | 203 hasAncestor(isImplicit()), in registerMatchers() 204 hasAncestor(substNonTypeTemplateParmExpr()))))), in registerMatchers()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 3549 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))), in TEST() 3556 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))), in TEST() 3611 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A")))))); in TEST() 3617 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X")))))); in TEST() 3624 hasAncestor(recordDecl(hasName("A")))))))); in TEST() 3630 integerLiteral(equals(42), hasAncestor(ifStmt())))); in TEST() 3636 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f")))))); in TEST() 3642 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))), in TEST() 3649 fieldDecl(hasAncestor( in TEST() 3652 hasAncestor(recordDecl()))) in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | StaticObjectExceptionCheck.cpp | 29 hasAncestor(functionDecl()))), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/objc/ |
D | SuperSelfCheck.cpp | 80 hasAncestor(objcMethodDecl( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | FunctionNamingCheck.cpp | 101 hasAncestor(namespaceDecl()), isMain(), isImplicit(), in registerMatchers()
|