[Lldb-commits] [lldb] [LLDB] Don't ignore artificial variables and members for coroutines (PR #70779)

via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 31 03:44:53 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 00a831421fdd94aec65221bdb37042c1aacfe8e0 4cc40aafef4db5133f4360b2fb367e1776dc2901 -- lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
index c7d9eb37f9b5..1018db81a58a 100644
--- a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
@@ -42,8 +42,7 @@ CPPLanguageRuntime::CPPLanguageRuntime(Process *process)
 
 bool CPPLanguageRuntime::IsAllowedRuntimeValue(ConstString name) {
   // FIXME: use a list when the list grows more.
-  return name == g_this ||
-         name == ConstString("__promise") ||
+  return name == g_this || name == ConstString("__promise") ||
          name == ConstString("__coro_frame");
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/70779


More information about the lldb-commits mailing list