Home
last modified time | relevance | path

Searched refs:StartsWith (Results 1 – 25 of 46) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Support/
H A DTriple.cpp319 .StartsWith("bpf", BPFArch) in getArchTypeForLLVMName()
557 .StartsWith("ios", Triple::IOS) in parseOS()
560 .StartsWith("lv2", Triple::Lv2) in parseOS()
567 .StartsWith("zos", Triple::ZOS) in parseOS()
571 .StartsWith("nacl", Triple::NaCl) in parseOS()
572 .StartsWith("aix", Triple::AIX) in parseOS()
573 .StartsWith("cuda", Triple::CUDA) in parseOS()
574 .StartsWith("nvcl", Triple::NVCL) in parseOS()
576 .StartsWith("ps4", Triple::PS4) in parseOS()
577 .StartsWith("ps5", Triple::PS5) in parseOS()
[all …]
H A DHost.cpp1435 .StartsWith("SuperSparc", "supersparc") in getHostCPUNameForSPARC()
1436 .StartsWith("HyperSparc", "hypersparc") in getHostCPUNameForSPARC()
1437 .StartsWith("SpitFire", "ultrasparc") in getHostCPUNameForSPARC()
1438 .StartsWith("BlackBird", "ultrasparc") in getHostCPUNameForSPARC()
1439 .StartsWith("Sabre", " ultrasparc") in getHostCPUNameForSPARC()
1441 .StartsWith("Cheetah", "ultrasparc3") in getHostCPUNameForSPARC()
1442 .StartsWith("Jalapeno", "ultrasparc3") in getHostCPUNameForSPARC()
1443 .StartsWith("Jaguar", "ultrasparc3") in getHostCPUNameForSPARC()
1444 .StartsWith("Panther", "ultrasparc3") in getHostCPUNameForSPARC()
1445 .StartsWith("Serrano", "ultrasparc3") in getHostCPUNameForSPARC()
[all …]
H A DARMTargetParser.cpp269 .StartsWith("aarch64", ISAKind::AARCH64) in parseArchISA()
270 .StartsWith("arm64", ISAKind::AARCH64) in parseArchISA()
271 .StartsWith("thumb", ISAKind::THUMB) in parseArchISA()
272 .StartsWith("arm", ISAKind::ARM) in parseArchISA()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/
H A DExpandAutoTypeTests.cpp13 using ::testing::StartsWith;
50 StartsWith("fail: Could not deduce type for 'auto' type")); in TEST_F()
53 StartsWith("fail: Could not expand type of function pointer")); in TEST_F()
79 StartsWith("fail: Could not deduce type for 'auto' type")); in TEST_F()
85 StartsWith("fail: Could not deduce")); in TEST_F()
89 StartsWith("fail: Could not deduce")); in TEST_F()
H A DExtractFunctionTests.cpp14 using ::testing::StartsWith;
46 StartsWith("unavailable")); in TEST_F()
49 StartsWith("unavailable")); in TEST_F()
115 EXPECT_THAT(apply("void f() { [[int a; f();]] }"), StartsWith("fail")); in TEST_F()
530 EXPECT_THAT(apply(" for(;;) [[if(1) continue;]] "), StartsWith("fail")); in TEST_F()
531 EXPECT_THAT(apply(" while(1) [[if(1) break;]] "), StartsWith("fail")); in TEST_F()
532 EXPECT_THAT(apply(" switch(1) { [[break;]] }"), StartsWith("fail")); in TEST_F()
534 StartsWith("fail")); in TEST_F()
H A DDumpRecordLayoutTests.cpp15 using ::testing::StartsWith;
31 AllOf(StartsWith("message:"), HasSubstr("0 | int x"))); in TEST_F()
H A DDumpASTTests.cpp15 using ::testing::StartsWith;
27 AllOf(StartsWith("message:"), HasSubstr("BinaryOperator"), in TEST_F()
H A DDumpSymbolTests.cpp16 using ::testing::StartsWith;
28 AllOf(StartsWith("message:"), testing::HasSubstr(ID), in TEST_F()
/llvm-project-15.0.7/lldb/unittests/Utility/
H A DNameMatchesTest.cpp33 TEST(NameMatchesTest, StartsWith) { in TEST() argument
34 EXPECT_TRUE(NameMatches("foo", NameMatch::StartsWith, "f")); in TEST()
35 EXPECT_TRUE(NameMatches("foo", NameMatch::StartsWith, "")); in TEST()
36 EXPECT_TRUE(NameMatches("", NameMatch::StartsWith, "")); in TEST()
37 EXPECT_FALSE(NameMatches("foo", NameMatch::StartsWith, "b")); in TEST()
38 EXPECT_FALSE(NameMatches("", NameMatch::StartsWith, "b")); in TEST()
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DAsmLexer.cpp882 .StartsWith("call16", {AsmToken::PercentCall16, 7}) in LexToken()
888 .StartsWith("got_hi", {AsmToken::PercentGot_Hi, 7}) in LexToken()
889 .StartsWith("got_lo", {AsmToken::PercentGot_Lo, 7}) in LexToken()
893 .StartsWith("got", {AsmToken::PercentGot, 4}) in LexToken()
894 .StartsWith("gp_rel", {AsmToken::PercentGp_Rel, 7}) in LexToken()
895 .StartsWith("higher", {AsmToken::PercentHigher, 7}) in LexToken()
897 .StartsWith("hi", {AsmToken::PercentHi, 3}) in LexToken()
898 .StartsWith("lo", {AsmToken::PercentLo, 3}) in LexToken()
899 .StartsWith("neg", {AsmToken::PercentNeg, 4}) in LexToken()
902 .StartsWith("tlsgd", {AsmToken::PercentTlsgd, 6}) in LexToken()
[all …]
H A DWasmAsmParser.cpp156 .StartsWith(".data", SectionKind::getData()) in parseSectionDirective()
157 .StartsWith(".tdata", SectionKind::getThreadData()) in parseSectionDirective()
158 .StartsWith(".tbss", SectionKind::getThreadBSS()) in parseSectionDirective()
159 .StartsWith(".rodata", SectionKind::getReadOnly()) in parseSectionDirective()
160 .StartsWith(".text", SectionKind::getText()) in parseSectionDirective()
161 .StartsWith(".custom_section", SectionKind::getMetadata()) in parseSectionDirective()
162 .StartsWith(".bss", SectionKind::getBSS()) in parseSectionDirective()
165 .StartsWith(".init_array", SectionKind::getData()) in parseSectionDirective()
166 .StartsWith(".debug_", SectionKind::getMetadata()) in parseSectionDirective()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/
H A DTraceTests.cpp26 using testing::StartsWith;
172 StartsWith("d,dist,x,1.000000e+00,"), in TEST_F()
173 StartsWith("c,cnt,,1.000000e+00,"), in TEST_F()
174 StartsWith("d,dist,y,2.000000e+00,"), "")); in TEST_F()
182 EXPECT_THAT(outputLines(), ElementsAre(_, StartsWith(R"(d,dist,",",1)"), in TEST_F()
183 StartsWith(R"(d,dist,"a""b",1)"), in TEST_F()
184 StartsWith("d,dist,\"a\nb\",1"), "")); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/Frontend/OpenMP/
H A DOMPAssume.h29 bool StartsWith; member
38 #define OMP_ASSUME_CLAUSE(Identifier, StartsWith, HasDirectiveList, \ argument
40 {Identifier, StartsWith, HasDirectiveList, HasExpression},
/llvm-project-15.0.7/llvm/lib/Remarks/
H A DRemarkFormat.cpp38 .StartsWith("--- ", Format::YAML) // This is only an assumption. in magicToFormat()
39 .StartsWith(remarks::Magic, Format::YAMLStrTab) in magicToFormat()
40 .StartsWith(remarks::ContainerMagic, Format::Bitstream) in magicToFormat()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DInsertionPointTests.cpp37 auto StartsWith = in TEST() local
51 auto Loc = insertionPoint(NS, {Anchor{StartsWith(Prefix), Direction}}); in TEST()
66 auto Loc = insertionPoint(NS, {Anchor{StartsWith(P1), Anchor::Above}, in TEST()
67 Anchor{StartsWith(P2), Anchor::Above}}); in TEST()
75 auto Edit = insertDecl("foo;", NS, {Anchor{StartsWith("a"), Anchor::Below}}); in TEST()
80 Edit = insertDecl("x;", NS, {Anchor{StartsWith("no_match"), Anchor::Below}}); in TEST()
H A DDumpASTTests.cpp174 EXPECT_THAT(Node.arcana, testing::StartsWith("TranslationUnitDecl ")); in TEST()
182 EXPECT_THAT(Node.arcana, testing::StartsWith("VarDecl ")); in TEST()
185 EXPECT_THAT(Node.children.front().arcana, testing::StartsWith("QualType ")); in TEST()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/abseil/
H A Dstring-find-startswith.rst7 compared with 0, and suggests replacing with ``absl::StartsWith()``. This is
22 if (absl::StartsWith(s, "Hello World")) { /* do something */ }
23 if (absl::StartsWith(s, "Hello World")) { /* do something */ }
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStringSwitchTest.cpp73 TEST(StringSwitchTest, StartsWith) { in TEST() argument
76 .StartsWith("add", [](int X, int Y) { return X + Y; }) in TEST()
77 .StartsWith("sub", [](int X, int Y) { return X - Y; }) in TEST()
78 .StartsWith("mul", [](int X, int Y) { return X * Y; }) in TEST()
79 .StartsWith("div", [](int X, int Y) { return X / Y; }) in TEST()
/llvm-project-15.0.7/lld/MachO/
H A DSectionPriorities.cpp310 .StartsWith("i386:", CPU_TYPE_I386) in parseOrderFile()
311 .StartsWith("x86_64:", CPU_TYPE_X86_64) in parseOrderFile()
312 .StartsWith("arm:", CPU_TYPE_ARM) in parseOrderFile()
313 .StartsWith("arm64:", CPU_TYPE_ARM64) in parseOrderFile()
314 .StartsWith("ppc:", CPU_TYPE_POWERPC) in parseOrderFile()
315 .StartsWith("ppc64:", CPU_TYPE_POWERPC64) in parseOrderFile()
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DNameMatches.h19 StartsWith, enumerator
/llvm-project-15.0.7/lldb/source/Utility/
H A DNameMatches.cpp24 case NameMatch::StartsWith: in NameMatches()
/llvm-project-15.0.7/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp1172 .StartsWith("addc", true) in MaybePredicatedInst()
1173 .StartsWith("add", true) in MaybePredicatedInst()
1174 .StartsWith("and", true) in MaybePredicatedInst()
1175 .StartsWith("sh", true) in MaybePredicatedInst()
1176 .StartsWith("subb", true) in MaybePredicatedInst()
1177 .StartsWith("sub", true) in MaybePredicatedInst()
1178 .StartsWith("or", true) in MaybePredicatedInst()
1179 .StartsWith("xor", true) in MaybePredicatedInst()
/llvm-project-15.0.7/lldb/unittests/tools/lldb-server/tests/
H A DLLGSTest.cpp75 testing::StartsWith( in TEST_F()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DExprInspectionChecker.cpp98 .StartsWith("clang_analyzer_explain", in REGISTER_SET_WITH_PROGRAMSTATE()
105 .StartsWith("clang_analyzer_dumpSvalType", in REGISTER_SET_WITH_PROGRAMSTATE()
107 .StartsWith("clang_analyzer_dump", in REGISTER_SET_WITH_PROGRAMSTATE()
120 .StartsWith("clang_analyzer_isTainted", in REGISTER_SET_WITH_PROGRAMSTATE()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DUtilsTest.cpp36 EXPECT_THAT(CI->TargetOpts->Triple, testing::StartsWith("i386-")); in TEST()

12