[llvm] Fix line table lookups in line tables with multiple lines with the sa… (PR #70879)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 17:40:05 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 4fbbb7ad7c1c96f0fa795e2b1528b93f604e2303 96244aae4e8269059341d85b4aeddd251e81b4ae -- llvm/lib/DebugInfo/GSYM/LineTable.cpp llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp b/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
index 499910447e37..9fbfe195b294 100644
--- a/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
+++ b/llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
@@ -4187,7 +4187,8 @@ TEST(GSYMTest, TestLineTablesWithEmptyRanges) {
// 0x0000000000001000 10 0 1 0 0 is_stmt
// 0x0000000000001010 11 0 1 0 0 is_stmt
// 0x0000000000001010 12 0 1 0 0 is_stmt
- // 0x0000000000001050 13 0 1 0 0 is_stmt end_sequence
+ // 0x0000000000001050 13 0 1 0 0 is_stmt
+ // end_sequence
StringRef yamldata = R"(
debug_str:
@@ -4323,6 +4324,6 @@ TEST(GSYMTest, TestLineTablesWithEmptyRanges) {
// 0x1010.
auto LR = GR->lookup(0x1010);
ASSERT_THAT_EXPECTED(LR, Succeeded());
- EXPECT_THAT(LR->Locations,
- testing::ElementsAre(SourceLocation{"foo", "/tmp", "main.cpp", 12, 16}));
+ EXPECT_THAT(LR->Locations, testing::ElementsAre(SourceLocation{
+ "foo", "/tmp", "main.cpp", 12, 16}));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/70879
More information about the llvm-commits
mailing list