[Lldb-commits] [lldb] Fix the sort function for languages to have "strict weak ordering". (PR #114160)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 29 17:19:51 PDT 2024
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 39303e24b6f628f3c080f1b54bd12383a55b9b3a 237cb04100fd35df22b4e743c575681f31b54970 --extensions cpp -- lldb/source/Commands/CommandObjectType.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp
index b5230216bb..e4c6e37444 100644
--- a/lldb/source/Commands/CommandObjectType.cpp
+++ b/lldb/source/Commands/CommandObjectType.cpp
@@ -2649,7 +2649,8 @@ public:
return false;
LanguageType lt1 = lang1->GetLanguageType();
LanguageType lt2 = lang2->GetLanguageType();
- if (lt1 == lt2) return false;
+ if (lt1 == lt2)
+ return false;
if (lt1 == guessed_language)
return true; // make the selected frame's language come first
if (lt2 == guessed_language)
``````````
</details>
https://github.com/llvm/llvm-project/pull/114160
More information about the lldb-commits
mailing list