Home
last modified time | relevance | path

Searched refs:hasAncestor (Results 1 – 25 of 66) sorted by relevance

123

/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DAvoidGotoCheck.cpp34 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()
DProBoundsArrayToPointerDecayCheck.cpp30 return stmt(hasAncestor(cxxForRangeStmt( in AST_MATCHER()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DThrowKeywordMissingCheck.cpp28 unless(anyOf(hasAncestor(stmt( in registerMatchers()
30 hasAncestor(varDecl()), in registerMatchers()
31 allOf(hasAncestor(CtorInitializerList), in registerMatchers()
32 unless(hasAncestor(cxxCatchStmt())))))) in registerMatchers()
DIntegerDivisionCheck.cpp37 hasAncestor(castExpr(hasCastKind(CK_IntegralToFloating)) in registerMatchers()
39 unless(hasAncestor(expr( in registerMatchers()
41 hasAncestor(castExpr(equalsBoundNode("FloatCast"))))))) in registerMatchers()
DTerminatingContinueCheck.cpp29 continueStmt(hasAncestor(stmt(anyOf(forStmt(), whileStmt(), in registerMatchers()
32 hasAncestor(doWithFalse)) in registerMatchers()
DUnhandledSelfAssignmentCheck.cpp54 ofClass(cxxRecordDecl(unless(hasAncestor(classTemplateDecl())))), in registerMatchers()
63 ofClass(cxxRecordDecl(hasAncestor(classTemplateDecl()))), in registerMatchers()
DUseAfterMoveCheck.cpp99 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()
DForwardDeclarationNamespaceCheck.cpp30 auto IsInSpecialization = hasAncestor( in registerMatchers()
36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())), in registerMatchers()
DSizeofContainerCheck.cpp30 unless(hasAncestor(binaryOperator( in registerMatchers()
DLambdaFunctionNameCheck.cpp63 Finder->addMatcher(predefinedExpr(hasAncestor(lambdaExpr())).bind("E"), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp378 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/
DASTContextParentMapTest.cpp79 hasAncestor(cxxRecordDecl(isTemplateInstantiation())), in TEST()
80 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation()))))))); in TEST()
111 varDecl(hasName("y"), hasAncestor(functionDecl( in TEST()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1496 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/
DASTContextParentMapTest.cpp77 hasAncestor(cxxRecordDecl(isTemplateInstantiation())), in TEST()
78 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation()))))))); in TEST()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseUncaughtExceptionsCheck.cpp40 unless(hasAncestor(initListExpr()))) in registerMatchers()
46 hasAncestor(initListExpr())) in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DRunLoopAutoreleaseLeakChecker.cpp159 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/
DTree.java58 public boolean hasAncestor(int ttype); in hasAncestor() method
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DUnnecessaryValueParamCheck.cpp37 unless(hasAncestor(callExpr()))), in isReferencedOutsideOfCallExpr()
48 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(), in hasLoopStmtAncestor()
DInefficientStringConcatenationCheck.cpp61 hasAncestor(stmt(anyOf(cxxForRangeStmt(), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DContainerSizeEmptyCheck.cpp62 unless(hasAncestor(cxxMethodDecl( in registerMatchers()
93 unless(hasAncestor( in registerMatchers()
DUppercaseLiteralSuffixCheck.cpp203 hasAncestor(isImplicit()), in registerMatchers()
204 hasAncestor(substNonTypeTemplateParmExpr()))))), in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp3549 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/
DStaticObjectExceptionCheck.cpp29 hasAncestor(functionDecl()))), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/objc/
DSuperSelfCheck.cpp80 hasAncestor(objcMethodDecl( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DFunctionNamingCheck.cpp101 hasAncestor(namespaceDecl()), isMain(), isImplicit(), in registerMatchers()

123