diff options
author | Adrian Prantl <adrian-prantl@users.noreply.github.com> | 2024-01-04 09:04:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 09:04:05 -0800 |
commit | 917b404e2ccdcc31d2d64971ad094b80967a240b (patch) | |
tree | fc582e00f70df3b8a349b05270ae5fc5356ba514 /lldb/unittests | |
parent | a7a78fd427569a7ad8a27e682a66fe414f004a35 (diff) | |
download | llvm-917b404e2ccdcc31d2d64971ad094b80967a240b.zip llvm-917b404e2ccdcc31d2d64971ad094b80967a240b.tar.gz llvm-917b404e2ccdcc31d2d64971ad094b80967a240b.tar.bz2 |
Add support for inline DWARF source files. (#75880)
LLVM supports DWARF 5 linetable extension to store source files inline
in DWARF. This is particularly useful for compiler-generated source
code. This implementation tries to materialize them as temporary files
lazily, so SBAPI clients don't need to be aware of them.
rdar://110926168
Diffstat (limited to 'lldb/unittests')
-rw-r--r-- | lldb/unittests/Core/FileSpecListTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/unittests/Core/FileSpecListTest.cpp b/lldb/unittests/Core/FileSpecListTest.cpp index d65e7cd..e63f4a0 100644 --- a/lldb/unittests/Core/FileSpecListTest.cpp +++ b/lldb/unittests/Core/FileSpecListTest.cpp @@ -20,7 +20,7 @@ static FileSpec WindowsSpec(llvm::StringRef path) { return FileSpec(path, FileSpec::Style::windows); } -TEST(FileSpecListTest, RelativePathMatchesPosix) { +TEST(SupportFileListTest, RelativePathMatchesPosix) { const FileSpec fullpath = PosixSpec("/build/src/main.cpp"); const FileSpec relative = PosixSpec("./src/main.cpp"); @@ -32,7 +32,7 @@ TEST(FileSpecListTest, RelativePathMatchesPosix) { const FileSpec rel2_wrong = PosixSpec("asrc/main.cpp"); const FileSpec rel3_wrong = PosixSpec("rc/main.cpp"); - FileSpecList files; + SupportFileList files; files.Append(fullpath); files.Append(relative); files.Append(basename); @@ -72,7 +72,7 @@ TEST(FileSpecListTest, RelativePathMatchesPosix) { EXPECT_EQ((size_t)6, files.FindCompatibleIndex(3, rel3_wrong)); } -TEST(FileSpecListTest, RelativePathMatchesWindows) { +TEST(SupportFileListTest, RelativePathMatchesWindows) { const FileSpec fullpath = WindowsSpec(R"(C:\build\src\main.cpp)"); const FileSpec relative = WindowsSpec(R"(.\src\main.cpp)"); @@ -84,7 +84,7 @@ TEST(FileSpecListTest, RelativePathMatchesWindows) { const FileSpec rel2_wrong = WindowsSpec(R"(asrc\main.cpp)"); const FileSpec rel3_wrong = WindowsSpec(R"("rc\main.cpp)"); - FileSpecList files; + SupportFileList files; files.Append(fullpath); files.Append(relative); files.Append(basename); |