| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | PathTests.cpp | 18 EXPECT_TRUE(pathStartsWith(testPath("foo"), testPath("foo"))); in TEST() 19 EXPECT_TRUE(pathStartsWith(testPath("foo/"), testPath("foo"))); in TEST() 21 EXPECT_FALSE(pathStartsWith(testPath("foo"), testPath("fooz"))); in TEST() 22 EXPECT_FALSE(pathStartsWith(testPath("foo/"), testPath("fooz"))); in TEST() 24 EXPECT_TRUE(pathStartsWith(testPath("foo"), testPath("foo/bar"))); in TEST() 25 EXPECT_TRUE(pathStartsWith(testPath("foo/"), testPath("foo/bar"))); in TEST() 28 EXPECT_TRUE(pathStartsWith(testPath("fOo"), testPath("foo/bar"))); in TEST() 29 EXPECT_TRUE(pathStartsWith(testPath("foo"), testPath("fOo/bar"))); in TEST() 31 EXPECT_FALSE(pathStartsWith(testPath("fOo"), testPath("foo/bar"))); in TEST() 32 EXPECT_FALSE(pathStartsWith(testPath("foo"), testPath("fOo/bar"))); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | GlobalCompilationDatabaseTests.cpp | 45 EXPECT_EQ(Cmd.Directory, testPath("foo")); in TEST() 53 Cmd = DB.getFallbackCommand(testPath("foo/bar")); in TEST() 68 if (File == testPath("foo.cc")) in getCompileCommand() 154 BarCommand.Filename = testPath("bar.cc"); in TEST_F() 200 FS.Files[testPath("compile_commands.json")] = in TEST() 262 DB.getCompileCommand(testPath("b.cc")); in TEST() 284 DB.getCompileCommand(testPath("a.cc")); in TEST() 302 .getCompileCommand(testPath(Relative)) in TEST() 385 Spec.FixedCDBPath = testPath("x/y/z"); in TEST() 415 Path File = testPath("foo.cc"); in TEST_F() [all …]
|
| H A D | BackgroundIndexTests.cpp | 106 Cmd.Directory = testPath("root"); in TEST_F() 177 FS.Files[testPath("root/A.cc")] = in TEST_F() 179 FS.Files[testPath("root/B.cc")] = in TEST_F() 199 Cmd.Directory = testPath("root"); in TEST_F() 241 FS.Files[testPath("root/A.cc")] = in TEST_F() 488 UnorderedElementsAre(testPath("root/A.cc"), testPath("root/A.h"), in TEST_F() 569 FS.Files[testPath("C.h")] = ""; in TEST_F() 583 EXPECT_THAT(Storage.keys(), ElementsAre(testPath("A.cc"), testPath("A.h"), in TEST_F() 584 testPath("B.h"), testPath("C.h"))); in TEST_F() 631 FS.Files[testPath("A.h")] = ""; in TEST_F() [all …]
|
| H A D | HeaderSourceSwitchTests.cpp | 27 auto FooCpp = testPath("foo.cpp"); in TEST() 28 auto FooH = testPath("foo.h"); in TEST() 45 auto FooC = testPath("bar.c"); in TEST() 46 auto FooHH = testPath("bar.HH"); in TEST() 55 auto Foo2C = testPath("foo2.C"); in TEST() 156 testPath("a.cpp")}, in TEST() 163 testPath("b.cpp")}, in TEST() 169 testPath("a.cpp")}, in TEST() 227 testPath("a.h")}, in TEST() 235 testPath("b.h")}, in TEST() [all …]
|
| H A D | FSTests.cpp | 25 PreambleFileStatusCache StatCache(testPath("main")); in TEST() 31 EXPECT_TRUE(StatCache.lookup(testPath("x")).has_value()); in TEST() 32 EXPECT_TRUE(StatCache.lookup(testPath("y")).has_value()); in TEST() 34 EXPECT_FALSE(StatCache.lookup(testPath("main")).has_value()); in TEST() 42 auto Cached = ConsumeFS->status(testPath("fake")); in TEST() 44 EXPECT_EQ(Cached->getName(), testPath("fake")); in TEST() 49 auto CachedDotDot = ConsumeFS->status(testPath("temp/../fake")); in TEST() 51 EXPECT_EQ(CachedDotDot->getName(), testPath("temp/../fake")); in TEST()
|
| H A D | CompileCommandsTests.cpp | 45 Mangler.ClangPath = testPath("fake/clang"); in TEST() 46 Mangler.ResourceDir = testPath("fake/resources"); in TEST() 47 Mangler.Sysroot = testPath("fake/sysroot"); in TEST() 58 Mangler.ClangPath = testPath("clang"); in TEST() 70 Mangler.ResourceDir = testPath("fake/resources"); in TEST() 78 Mangler.Sysroot = testPath("fake/sysroot"); in TEST() 88 Mangler.ClangPath = testPath("fake/clang"); in TEST() 92 EXPECT_EQ(testPath("fake/clang++"), Cmd.front()); in TEST() 98 Cmd = {testPath("path/clang++"), "foo.cc"}; in TEST() 144 Mangler.ClangPath = testPath("fake/clang"); in TEST() [all …]
|
| H A D | HeadersTests.cpp | 45 FS.Files[testPath("sub/EMPTY")] = ""; in HeadersTest() 137 std::string Subdir = testPath("sub"); 228 std::string BarHeader = testPath("bar.h"); in TEST_F() 230 std::string FooHeader = testPath("foo.h"); in TEST_F() 235 std::string BazHeader = testPath("baz.h"); in TEST_F() 276 std::string Path = testPath("sub/bar.h"); in TEST_F() 282 MainFile = testPath("main.h"); in TEST_F() 287 MainFile = testPath("sub/main.cpp"); in TEST_F() 297 BarHeader = testPath("sub/bar.h"); in TEST_F() 326 Inc.Resolved = testPath("sub/bar.h"); in TEST_F() [all …]
|
| H A D | TidyProviderTests.cpp | 20 FS.Files[testPath(".clang-tidy")] = R"yaml( in TEST() 25 FS.Files[testPath("sub1/.clang-tidy")] = R"yaml( in TEST() 30 FS.Files[testPath("sub1/sub2/.clang-tidy")] = R"yaml( in TEST() 39 auto BaseOptions = getTidyOptionsForFile(Provider, testPath("File.cpp")); in TEST() 44 auto Sub1Options = getTidyOptionsForFile(Provider, testPath("sub1/File.cpp")); in TEST() 50 getTidyOptionsForFile(Provider, testPath("sub1/sub2/File.cpp")); in TEST()
|
| H A D | IndexActionTests.cpp | 114 std::string MainFilePath = testPath("main.cpp"); in TEST_F() 142 std::string MainFilePath = testPath("main.cpp"); in TEST_F() 144 std::string HeaderPath = testPath("header.h"); in TEST_F() 167 std::string MainFilePath = testPath("main.cpp"); in TEST_F() 180 std::string HeaderPath = testPath("header.h"); in TEST_F() 206 std::string MainFilePath = testPath("main.cpp"); in TEST_F() 215 std::string HeaderPath = testPath("header.h"); in TEST_F() 235 std::string MainFilePath = testPath("main.cpp"); in TEST_F() 256 std::string MainFilePath = testPath("main.cpp"); in TEST_F() 263 addFile(testPath("good.h"), R"cpp( in TEST_F() [all …]
|
| H A D | ClangdTests.cpp | 234 auto FooCpp = testPath("foo.cpp"); in TEST() 269 auto FooCpp = testPath("foo.cpp"); in TEST() 270 auto FooH = testPath("foo.h"); in TEST() 420 auto FooCpp = testPath("foo.cpp"); in TEST() 445 auto FooCpp = testPath("foo.cpp"); in TEST() 481 auto FooCpp = testPath("foo.cpp"); in TEST() 533 auto FooCpp = testPath("foo.cpp"); in TEST() 534 auto BarCpp = testPath("bar.cpp"); in TEST() 535 auto BazCpp = testPath("baz.cpp"); in TEST() 585 Path FooCpp = testPath("foo.cpp"); in TEST() [all …]
|
| H A D | ConfigProviderTests.cpp | 101 auto P = Provider::fromYAMLFile(testPath("foo.yaml"), /*Directory=*/"", FS); in TEST() 105 EXPECT_THAT(Diags.Files, ElementsAre(testPath("foo.yaml"))); in TEST() 120 EXPECT_THAT(Diags.Files, ElementsAre(testPath("foo.yaml"))); in TEST() 127 EXPECT_THAT(Diags.Files, ElementsAre(testPath("foo.yaml"))); in TEST() 144 testPath("a/b/c/d/test.cc", llvm::sys::path::Style::posix); in TEST() 148 testPath("a/b/e/f/test.cc", llvm::sys::path::Style::posix); in TEST() 165 ElementsAre(testPath("a/foo.yaml"), testPath("a/b/c/foo.yaml"))); in TEST() 191 const auto BarPath = testPath("baz/bar.h", llvm::sys::path::Style::posix); in TEST() 199 Provider::fromYAMLFile(testPath("baz/foo.yaml"), /*Directory=*/"", FS); in TEST()
|
| H A D | TUSchedulerTests.cpp | 253 auto Path = testPath("foo.cpp"); in TEST_F() 346 auto Path = testPath("foo.cpp"); in TEST_F() 594 auto Foo = testPath("foo.cpp"); in TEST_F() 595 auto Bar = testPath("bar.cpp"); in TEST_F() 596 auto Baz = testPath("baz.cpp"); in TEST_F() 645 auto Foo = testPath("foo.cpp"); in TEST_F() 647 auto Bar = testPath("bar.cpp"); in TEST_F() 671 auto Foo = testPath("foo.cpp"); in TEST_F() 1199 static std::string Main = testPath("main.cpp"), Main2 = testPath("main2.cpp"), in TEST_F() 1482 auto A = testPath("a.cc"); in TEST_F() [all …]
|
| H A D | StdLibTests.cpp | 65 OriginalInputs.CompileCommand.Filename = testPath("main.cc"); in TEST() 66 OriginalInputs.CompileCommand.CommandLine = {"clang++", testPath("main.cc"), in TEST() 75 Loc.Paths.push_back(testPath("std/")); in TEST() 97 cantFail(SM.get().getFileManager().getDirectoryRef(testPath(P))), in TEST() 143 CDB.ExtraClangFlags.push_back("-isystem" + testPath("stdlib")); in TEST() 150 Server.addDocument(testPath("foo.cc"), A.code()); in TEST() 154 cantFail(runCodeComplete(Server, testPath("foo.cc"), A.point(), CCOpts)); in TEST()
|
| H A D | ConfigCompileTests.cpp | 204 llvm::sys::path::convert_to_slash(testPath("foo/bar.h")), in TEST_F() 210 llvm::sys::path::convert_to_slash(testPath("bar/bar.h")), in TEST_F() 216 testPath("baz"), in TEST_F() 222 testPath("foo"), in TEST_F() 429 External.File.emplace(testPath("foo")); in TEST_F() 431 testPath("foo/bar", llvm::sys::path::Style::posix)); in TEST_F() 443 External.File.emplace(testPath("foo")); in TEST_F() 464 auto FooPath = testPath("foo/", llvm::sys::path::Style::posix); in TEST_F() 497 BazPath = testPath("foo/baz.h", llvm::sys::path::Style::posix); in TEST_F() 507 BazPath = testPath("fOo/baz.h", llvm::sys::path::Style::posix); in TEST_F() [all …]
|
| H A D | URITests.cpp | 145 EXPECT_EQ(resolveOrDie(parseOrDie("unittest:///a"), testPath("x")), in TEST() 146 testPath("a")); in TEST() 182 EXPECT_EQ(resolvePathOrDie(testPath("x"), testPath("hint")), testPath("x")); in TEST() 184 auto Resolve = URI::resolvePath(testPath("x"), FilePath); in TEST() 190 auto Path = testPath("x"); in TEST()
|
| H A D | CanonicalIncludesTests.cpp | 61 auto File = addFile(*InMemFS, Files, testPath("iosfwd")); in TEST() 68 std::string BarPath = testPath("foo/bar"); in TEST() 70 auto Other = addFile(*InMemFS, Files, testPath("foo/baz")); in TEST() 82 std::string HardLinkPath = testPath("hard/link"); in TEST() 92 auto File = addFile(*InMemFS, Files, testPath("some/path")); in TEST()
|
| H A D | TestTU.cpp | 27 std::string FullFilename = testPath(Filename), in inputs() 28 FullHeaderName = testPath(HeaderFilename), in inputs() 29 ImportThunk = testPath("import_thunk.h"); in inputs() 105 return clang::clangd::buildPreamble(testPath(Filename), *CI, Inputs, in preamble() 121 auto Preamble = clang::clangd::buildPreamble(testPath(Filename), *CI, Inputs, in build() 124 auto AST = ParsedAST::build(testPath(Filename), Inputs, std::move(CI), in build() 175 Idx->updatePreamble(testPath(Filename), /*Version=*/"null", in index() 178 Idx->updateMain(testPath(Filename), AST); in index()
|
| H A D | CallHierarchyTests.cpp | 79 prepareCallHierarchy(AST, Source.point(), testPath(TU.Filename)); in TEST() 124 prepareCallHierarchy(AST, Source.point(), testPath(TU.Filename)); in TEST() 167 prepareCallHierarchy(AST, Source.point(), testPath(TU.Filename)); in TEST() 200 prepareCallHierarchy(AST, Source.point(), testPath(TU.Filename)); in TEST() 293 CheckCallHierarchy(*AST, Caller1C.point(), testPath("caller1.cc")); in TEST() 298 CheckCallHierarchy(*AST, CalleeH.point(), testPath("callee.hh")); in TEST() 303 CheckCallHierarchy(*AST, CalleeC.point(), testPath("callee.cc")); in TEST() 402 CheckCallHierarchy(*AST, Caller1C.point(), testPath("caller1.m")); in TEST() 407 CheckCallHierarchy(*AST, CalleeH.point(), testPath("callee.mi")); in TEST() 412 CheckCallHierarchy(*AST, CalleeC.point(), testPath("callee.m")); in TEST() [all …]
|
| H A D | ModulesTests.cpp | 28 TU.ExtraArgs.push_back("-fmodule-map-file=" + testPath("m.modulemap")); in TEST() 54 TU.ExtraArgs.push_back("-fmodule-map-file=" + testPath("m.modulemap")); in TEST() 76 TU.ExtraArgs.push_back("-fmodule-map-file=" + testPath("m.modulemap")); in TEST() 100 TU.ExtraArgs.push_back("-fmodule-map-file=" + testPath("m.modulemap")); in TEST()
|
| H A D | RenameTests.cpp | 1114 auto Main = testPath("main.cc"); in TEST() 1116 InMemFS->addFile(testPath("main.cc"), 0, in TEST() 1118 InMemFS->addFile(testPath("other.cc"), 0, in TEST() 1241 std::string FooHPath = testPath("foo.h"); in TEST() 1242 std::string FooCCPath = testPath("foo.cc"); in TEST() 1293 std::string FooPath = testPath("foo.cc"); in TEST() 1296 std::string BarPath = testPath("bar.cc"); in TEST() 1307 auto MainFilePath = testPath("main.cc"); in TEST() 1381 auto MainFilePath = testPath("main.cc"); in TEST() 1383 auto BarPath = testPath("bar.cc"); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/remote/ |
| H A D | MarshallingTests.cpp | 150 Marshaller ProtobufMarshaller(testPath("home/"), testPath("home/")); in TEST() 205 Marshaller WrongMarshaller(testPath("nothome/"), testPath("home/")); in TEST() 256 Marshaller ProtobufMarshaller(testPath(""), testPath("")); in TEST() 303 Marshaller ProtobufMarshaller(testPath("remote/"), testPath("local/")); in TEST() 314 Marshaller ProtobufMarshaller(testPath("remote/"), testPath("local/")); in TEST() 327 Marshaller ProtobufMarshaller(testPath("remote/"), testPath("local/")); in TEST() 345 Marshaller ProtobufMarshaller(testPath("remote/"), testPath("local/")); in TEST() 360 Marshaller ProtobufMarshaller(testPath("remote/"), testPath("local/")); in TEST() 378 Marshaller ProtobufMarshaller(testPath("remote/"), testPath("local/")); in TEST() 397 Marshaller ProtobufMarshaller(testPath("remote/"), testPath("local/")); in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/utils/libcxx/test/ |
| H A D | googlebenchmark.py | 85 testPath = path_in_suite + (subdir, fn, testname) 86 yield lit.Test.Test(testSuite, testPath, localConfig, 90 testPath,testName = os.path.split(test.getSourcePath()) 91 while not os.path.exists(testPath): 94 testPath, namePrefix = os.path.split(testPath) 97 cmd = [testPath, '--benchmark_filter=%s$' % testName ] + self.benchmark_args
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/ |
| H A D | ctor.pass.cpp | 68 for (path const& testPath : testPaths) in TEST_CASE() 71 directory_iterator it(testPath, ec); in TEST_CASE() 76 directory_iterator it(testPath, opts, ec); in TEST_CASE() 81 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath)); in TEST_CASE() 82 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath, opts)); in TEST_CASE() 219 const path testPath = ""; in TEST_CASE() local 223 directory_iterator it(testPath, ec); in TEST_CASE() 230 const path testPath = "."; in TEST_CASE() local 233 directory_iterator it(testPath, ec); in TEST_CASE()
|
| /llvm-project-15.0.7/llvm/utils/lit/lit/formats/ |
| H A D | googletest.py | 69 testPath = path_in_suite + (subdir, fn, str(idx), 78 testPath, 90 testPath = path_in_suite + ( 93 testPath, 101 testPath,testName = os.path.split(test.getSourcePath()) 102 while not os.path.exists(testPath): 105 testPath, namePrefix = os.path.split(testPath) 120 cmd = [testPath] 249 testPath = test.path_in_suite[:-2] + (testcase['name'], 251 subtest = lit.Test.Test(test.suite, testPath,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/ |
| H A D | DefineInlineTests.cpp | 393 ElementsAre(FileWithContents(testPath("a.h"), Expected))); in TEST_F() 933 testPath("a.h"), "inline void foo(){}"))); in TEST_F() 941 testPath("a.h"), "inline const int foo(){}"))); in TEST_F() 949 testPath("a.h"), "inline void foo(){}"))); in TEST_F() 957 testPath("a.h"), "constexpr void foo(){}"))); in TEST_F() 966 testPath("a.h"), "struct Foo { void foo(){} };"))); in TEST_F() 976 testPath("a.h"), "template <typename T> void foo(){}"))); in TEST_F() 987 testing::ElementsAre(FileWithContents(testPath("a.h"), in TEST_F()
|