Home
last modified time | relevance | path

Searched refs:hasName (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp200 recordDecl(hasName("Y"), has(recordDecl(hasName("X")))); in TEST_P()
213 has(recordDecl(hasName("Y"))), hasName("Z"))), in TEST_P()
215 has(recordDecl(hasName("B"))), hasName("C"))), in TEST_P()
271 has(recordDecl(anyOf(hasName("C"), has(recordDecl(hasName("A"))), in TEST_P()
302 recordDecl(hasName("X"), has(recordDecl(hasName("Z"))), in TEST_P()
335 recordDecl(hasDescendant(recordDecl(hasName("X"))), hasName("Z")); in TEST_P()
348 hasName("Z")); in TEST_P()
437 anyOf(hasName("Y"), allOf(isDerivedFrom("X"), hasName("Z")))); in TEST_P()
445 recordDecl(anyOf(hasName("X"), hasName("Y"), hasName("Z"), hasName("U"))); in TEST_P()
450 hasName("X"), hasName("Y"), hasName("Z"), hasName("U"), hasName("V"))); in TEST_P()
[all …]
H A DASTMatchersTraversalTest.cpp162 recordDecl(hasName("A"), has(recordDecl(hasName("B"))))); in TEST()
1484 hasName("E"))))); in TEST()
1487 hasName("D"))))); in TEST()
1490 hasName("D"))))); in TEST()
1493 hasName("E"))))); in TEST()
5136 recordDecl(hasName("::A"), decl().bind("x"), unless(hasName("fooble"))), in TEST()
5187 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A")))))); in TEST()
5193 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X")))))); in TEST()
5199 varDecl(hasName("c"), hasType(recordDecl(hasName("C"), in TEST()
5909 hasName("x"), in TEST()
[all …]
H A DASTMatchersNodeTest.cpp32 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST_P()
45 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST_P()
126 varDecl(hasName("MyVar2"), in TEST_P()
142 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST_P()
164 classTemplateDecl(hasName("X"), hasDescendant(fieldDecl(hasName("a")))))); in TEST_P()
175 classTemplateDecl(hasName("X"), hasDescendant(fieldDecl(hasName("a")))))); in TEST_P()
228 EXPECT_TRUE(matches("enum X {};", enumDecl(hasName("X")))); in TEST_P()
249 EXPECT_TRUE(matches("enum E {};", tagDecl(hasName("E")))); in TEST_P()
318 callExpr(hasDeclaration(cxxMethodDecl(hasName("x")))); in TEST_P()
407 templateTypeParmDecl(hasName("T")))); in TEST_P()
[all …]
H A DGtestMatchersTest.cpp293 expr(), callExpr(callee(functionDecl(hasName("::testing::Eq"))))))); in TEST()
304 expr(), callExpr(callee(functionDecl(hasName("::testing::Eq"))))))); in TEST()
315 gtestOnCall(expr(hasType(cxxRecordDecl(hasName("Mock")))), in TEST()
329 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST()
342 gtestOnCall(expr(hasType(cxxRecordDecl(hasName("Mock")))), in TEST()
356 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST()
370 gtestExpectCall(expr(hasType(cxxRecordDecl(hasName("Mock")))), in TEST()
384 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST()
398 gtestExpectCall(expr(hasType(cxxRecordDecl(hasName("Mock")))), in TEST()
412 callee(functionDecl(hasName("gmock_TwoArgsMethod")))) in TEST()
H A DASTMatchersInternalTest.cpp26 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST()
125 cxxRecordDecl(hasMethod(cxxMethodDecl(hasName("operator+")).bind("Op+")))
161 DeclarationMatcher HasClassB = just(has(recordDecl(hasName("B")).bind("b"))); in TEST()
183 polymorphicHas(recordDecl(hasName("B")).bind("b")); in TEST()
195 polymorphicHas(recordDecl(hasName("B"))); in TEST()
302 functionDecl(isInline(), hasName("f")))); in TEST()
304 namespaceDecl(isInline(), hasName("m")))); in TEST()
306 varDecl(isInline(), hasName("Foo")), {Lang_CXX17})); in TEST()
315 recordDecl(hasName("X"), isExpansionInMainFile()))); in TEST()
346 recordDecl(isExpansionInFileMatching("b.*"), hasName("B")), true, in TEST()
[all …]
/llvm-project-15.0.7/clang/unittests/AST/
H A DDeclPrinterTest.cpp980 classTemplateDecl(hasName("A")).bind("id"), in TEST()
988 classTemplateDecl(hasName("A")).bind("id"), in TEST()
996 classTemplateDecl(hasName("A")).bind("id"), in TEST()
1004 classTemplateDecl(hasName("A")).bind("id"), in TEST()
1012 classTemplateDecl(hasName("A")).bind("id"), in TEST()
1020 classTemplateDecl(hasName("A")).bind("id"), in TEST()
1029 classTemplateDecl(hasName("A")).bind("id"), in TEST()
1385 namedDecl(hasName("A:inRange:"), in TEST()
1393 namedDecl(hasName("P1")).bind("id"), in TEST()
1397 namedDecl(hasName("P2")).bind("id"), in TEST()
[all …]
H A DASTImporterTest.cpp1589 hasName("Base"), in TEST_P()
1633 hasName("Base"), in TEST_P()
2072 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("D")))); in TEST_P()
2089 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("B")))); in TEST_P()
2132 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("B")))); in TEST_P()
2134 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("D")))); in TEST_P()
2162 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("B")))); in TEST_P()
2164 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("D")))); in TEST_P()
2200 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("B")))); in TEST_P()
2253 cxxMethodDecl(hasName("f"), hasParent(cxxRecordDecl(hasName("B")))); in TEST_P()
[all …]
H A DStructuralEquivalenceTest.cpp79 auto Matcher = namedDecl(hasName(Identifier)); in makeNamedDecls()
267 get<1>(Decls), classTemplateDecl(hasName("Base"))); in TEST_F()
281 get<1>(Decls), cxxRecordDecl(hasName("X"))); in TEST_F()
591 functionDecl(allOf(hasName("f"), isDefinition()))); in TEST_F()
599 functionDecl(allOf(hasName("f"), isDefinition()))); in TEST_F()
707 TU, indirectFieldDecl(hasName("a"))); in TEST_F()
711 TU, indirectFieldDecl(hasName("b"))); in TEST_F()
740 TU, indirectFieldDecl(hasName("a"))); in TEST_F()
746 TU1, indirectFieldDecl(hasName("a"))); in TEST_F()
916 get<0>(Decls), cxxConstructorDecl(hasName("foo"))); in TEST_F()
[all …]
H A DASTTraverserTest.cpp256 classTemplateSpecializationDecl(hasName("templ")).bind("fn"), in TEST()
440 functionDecl(hasName("conversionOperator"), in TEST()
471 functionDecl(hasName("template_test"), in TEST()
499 hasName("varDeclCtors"), in TEST()
649 cxxConstructorDecl(hasName("MyStruct"), in TEST()
1476 callExpr(callee(functionDecl(hasName("hasDefaultArg")))) in TEST()
1500 functionDecl(hasName("decomposition"), in TEST()
1540 functionDecl(hasName("decompTuple"), in TEST()
1629 classTemplateDecl(hasName("TemplStruct")).bind("rec"), in TEST()
1758 functionTemplateDecl(hasName("timesTwo")).bind("fn"), in TEST()
[all …]
H A DASTImporterODRStrategiesTest.cpp38 return functionDecl(hasName("X"), unless(isImplicit())); in getPattern()
47 BindableMatcher<Decl> getPattern() { return typedefNameDecl(hasName("X")); } in getPattern()
55 BindableMatcher<Decl> getPattern() { return typedefNameDecl(hasName("X")); } in getPattern()
63 BindableMatcher<Decl> getPattern() { return enumDecl(hasName("X")); } in getPattern()
71 BindableMatcher<Decl> getPattern() { return enumDecl(hasName("X")); } in getPattern()
79 BindableMatcher<Decl> getPattern() { return enumConstantDecl(hasName("X")); } in getPattern()
89 return cxxRecordDecl(hasName("X"), unless(isImplicit())); in getPattern()
100 BindableMatcher<Decl> getPattern() { return varDecl(hasName("X")); } in getPattern()
113 return classTemplateDecl(hasName("X"), unless(isImplicit())); in getPattern()
132 return functionTemplateDecl(hasName("X"), unless(isImplicit())); in getPattern()
[all …]
H A DDeclTest.cpp231 selectFirst<VarDecl>("a", match(varDecl(hasName("a")).bind("a"), Ctx)); in TEST()
233 "f", match(functionDecl(hasName("f")).bind("f"), Ctx)); in TEST()
239 selectFirst<VarDecl>("b", match(varDecl(hasName("b")).bind("b"), Ctx)); in TEST()
241 "g", match(functionDecl(hasName("g")).bind("g"), Ctx)); in TEST()
249 a = selectFirst<VarDecl>("a", match(varDecl(hasName("a")).bind("a"), CtxTS)); in TEST()
251 "f", match(functionDecl(hasName("f")).bind("f"), CtxTS)); in TEST()
256 b = selectFirst<VarDecl>("b", match(varDecl(hasName("b")).bind("b"), CtxTS)); in TEST()
258 "g", match(functionDecl(hasName("g")).bind("g"), CtxTS)); in TEST()
H A DASTContextParentMapTest.cpp30 cxxMethodDecl(hasParent(recordDecl(hasName("C")))))); in TEST()
57 cxxMethodDecl(hasName("f"), in TEST()
62 cxxMethodDecl(hasName("f"), in TEST()
68 hasName("f"), in TEST()
115 varDecl(hasName("y"), hasAncestor(functionDecl( in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSpuriouslyWakeUpFunctionsCheck.cpp23 hasName("::std::unique_lock"), in registerMatchers()
26 cxxRecordDecl(hasName("::std::mutex")))))))))))))); in registerMatchers()
32 allOf(hasName("::std::condition_variable::wait"), in registerMatchers()
36 hasName("::std::condition_variable")))))))), in registerMatchers()
39 allOf(hasName("::std::condition_variable::wait_for"), in registerMatchers()
43 hasName("::std::condition_variable")))))))), in registerMatchers()
46 allOf(hasName("::std::condition_variable::wait_until"), in registerMatchers()
50 hasName("::std::condition_variable")))))))), in registerMatchers()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DGtestMatchers.cpp42 return cxxMethodDecl(hasName("Compare"), in getComparisonDecl()
44 hasName("::testing::internal::EqHelper"))))); in getComparisonDecl()
46 return functionDecl(hasName("::testing::internal::CmpHelperNE")); in getComparisonDecl()
48 return functionDecl(hasName("::testing::internal::CmpHelperGE")); in getComparisonDecl()
50 return functionDecl(hasName("::testing::internal::CmpHelperGT")); in getComparisonDecl()
52 return functionDecl(hasName("::testing::internal::CmpHelperLE")); in getComparisonDecl()
54 return functionDecl(hasName("::testing::internal::CmpHelperLT")); in getComparisonDecl()
137 0, expr(hasType(classTemplateSpecializationDecl(hasName( in gtestThatInternal()
140 callExpr(callee(functionDecl(hasName( in gtestThatInternal()
161 callee(functionDecl(hasName(getSpecSetterName(Macro)))), in gtestCallInternal()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DTransformerTest.cpp210 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()
532 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
543 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
585 makeRule(functionDecl(hasName("f"), in TEST_F()
600 testRule(makeRule(functionDecl(hasName("f"), in TEST_F()
612 Transformer T(makeRule(functionDecl(hasName("f")), in TEST_F()
628 hasName("f"), in TEST_F()
670 testRule(makeRule(functionDecl(hasName("f")).bind("fun"), in TEST_F()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DUpgradeGoogletestCaseCheck.cpp145 hasName("::testing::Test"), in registerMatchers()
146 hasMethod(hasName("SetUpTestSuite"))))) in registerMatchers()
149 hasName("test_case_name"), in registerMatchers()
152 hasName("::testing::TestInfo"), in registerMatchers()
153 hasMethod(hasName("test_suite_name"))))) in registerMatchers()
159 hasName("::testing::TestEventListener"), in registerMatchers()
160 hasMethod(hasName("OnTestSuiteStart"))))) in registerMatchers()
168 hasName("::testing::UnitTest"), in registerMatchers()
169 hasMethod(hasName("current_test_suite"))))) in registerMatchers()
189 typeAliasDecl(hasName("::testing::TestCase")).bind("test-case"); in registerMatchers()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DSymbolTableListTraitsImpl.h54 if (I->hasName()) in setSymTabObject()
61 if (I->hasName()) in setSymTabObject()
73 if (V->hasName()) in addNodeToList()
82 if (V->hasName()) in removeNodeFromList()
107 bool HasName = V.hasName(); in transferNodesFromList()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DTypePromotionInMathFnCheck.cpp91 callExpr(callee(functionDecl(hasName("::fma"), parameterCountIs(3), in registerMatchers()
103 hasName("::frexp"), parameterCountIs(2), in registerMatchers()
114 callExpr(callee(functionDecl(hasName("::nexttoward"), parameterCountIs(2), in registerMatchers()
126 hasName("::remquo"), parameterCountIs(3), 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 DUpgradeDurationConversionsCheck.cpp36 0, expr(hasType(cxxRecordDecl(hasName("::absl::Duration"))))), in registerMatchers()
50 ofClass(cxxRecordDecl(hasName("::absl::Duration"))), in registerMatchers()
68 cxxRecordDecl(hasName("::absl::Duration"))))), in registerMatchers()
79 hasName("::absl::operator*"))), in registerMatchers()
82 cxxRecordDecl(hasName("::absl::Duration")))))) in registerMatchers()
H A DFasterStrsplitDelimiterCheck.cpp67 cxxConstructExpr(hasType(recordDecl(hasName("::absl::string_view"))), in registerMatchers()
75 hasType(recordDecl(hasName("::absl::ByAnyChar"))), in registerMatchers()
83 callExpr(callee(functionDecl(hasName("::absl::StrSplit"))), in registerMatchers()
94 callExpr(callee(functionDecl(hasName("::absl::MaxSplits"))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DIndexActionTests.cpp35 MATCHER_P(hasName, Name, "") { return arg.Name == Name; }
252 EXPECT_THAT(*IndexFile.Symbols, ElementsAre(hasName("foo"), hasName("bar"))); in TEST_F()
278 UnorderedElementsAre(hasName("S"), hasName("s"), hasName("f1"), in TEST_F()
279 hasName("unskippable1"))); in TEST_F()
311 EXPECT_THAT(*IndexFile.Symbols, testing::Contains(hasName("foo"))); in TEST_F()
312 EXPECT_THAT(*IndexFile.Symbols, testing::Contains(hasName("Bar"))); in TEST_F()
313 EXPECT_THAT(*IndexFile.Symbols, Not(testing::Contains(hasName("Baz")))); in TEST_F()
/llvm-project-15.0.7/clang/unittests/Sema/
H A DGslOwnerPointerInference.cpp25 hasName("C"), hasAttr(clang::attr::Owner)))); in TEST()
37 hasName("C"), hasAttr(clang::attr::Owner)))); in TEST()
52 hasName("C"), hasAttr(clang::attr::Owner)))); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/
H A DCloexecAccept4Check.cpp22 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
23 auto SockLenPointerType = hasType(pointsTo(namedDecl(hasName("socklen_t")))); in registerMatchers()
26 functionDecl(returns(isInteger()), hasName("accept4"), in registerMatchers()
H A DCloexecAcceptCheck.cpp21 hasType(pointsTo(recordDecl(isStruct(), hasName("sockaddr")))); in registerMatchers()
22 auto SockLenPointerType = hasType(pointsTo(namedDecl(hasName("socklen_t")))); in registerMatchers()
25 functionDecl(returns(isInteger()), hasName("accept"), in registerMatchers()
/llvm-project-15.0.7/llvm/tools/llvm-diff/lib/
H A DDiffConsumer.cpp26 if (!Arg.hasName()) in ComputeNumbering()
31 if (!Func.hasName()) in ComputeNumbering()
37 if (!BB.hasName() && !BB.getType()->isVoidTy()) in ComputeNumbering()
47 if (V->hasName()) { in printValue()
111 if (L->hasName() && R->hasName() && L->getName() == R->getName()) in header()

12345678910>>...12