[Lldb-commits] [lldb] [llvm] [lldb][Language] Make SourceLanguage::GetDescription for language version (PR #162050)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 6 02:15:11 PDT 2025
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 origin/main HEAD --extensions cpp,h -- lldb/source/Target/Language.cpp lldb/unittests/Target/LanguageTest.cpp llvm/include/llvm/BinaryFormat/Dwarf.h llvm/lib/BinaryFormat/Dwarf.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/unittests/Target/LanguageTest.cpp b/lldb/unittests/Target/LanguageTest.cpp
index e9745c931..e3f24bf7e 100644
--- a/lldb/unittests/Target/LanguageTest.cpp
+++ b/lldb/unittests/Target/LanguageTest.cpp
@@ -43,10 +43,8 @@ TEST_F(LanguageTest, SourceLanguage_GetDescription) {
EXPECT_EQ(SourceLanguage(eLanguageTypeC_plus_plus_20).GetDescription(),
"C++20");
- EXPECT_EQ(SourceLanguage(eLanguageTypeC).GetDescription(),
- "C (K&R and ISO)");
- EXPECT_EQ(SourceLanguage(eLanguageTypeC89).GetDescription(),
- "C89");
+ EXPECT_EQ(SourceLanguage(eLanguageTypeC).GetDescription(), "C (K&R and ISO)");
+ EXPECT_EQ(SourceLanguage(eLanguageTypeC89).GetDescription(), "C89");
EXPECT_EQ(SourceLanguage(eLanguageTypeObjC).GetDescription(), "Objective C");
EXPECT_EQ(SourceLanguage(eLanguageTypeMipsAssembler).GetDescription(),
``````````
</details>
https://github.com/llvm/llvm-project/pull/162050
More information about the lldb-commits
mailing list