[Lldb-commits] [lldb] [lldb][Language] Simplify SourceLanguage::GetDescription (PR #161804)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 3 09:23:14 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 -- lldb/unittests/Target/Language.cpp lldb/source/Target/Language.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/source/Target/Language.cpp b/lldb/source/Target/Language.cpp
index a7b39b71d..1f34c7607 100644
--- a/lldb/source/Target/Language.cpp
+++ b/lldb/source/Target/Language.cpp
@@ -551,7 +551,8 @@ ToDwarfSourceLanguage(lldb::LanguageType language_type) {
switch (language_type) {
case eLanguageTypeMipsAssembler:
return llvm::dwarf::DW_LANG_Mips_Assembler;
- default: break;
+ default:
+ break;
}
llvm_unreachable("Unhandled language type");
``````````
</details>
https://github.com/llvm/llvm-project/pull/161804
More information about the lldb-commits
mailing list