[Lldb-commits] [lldb] [NFC][lldb][lldb-dap] fix C++20 extension warning (PR #140031)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 15 02:38:27 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Ebuka Ezike (da-viper)
<details>
<summary>Changes</summary>
warning for designated initializers
---
Full diff: https://github.com/llvm/llvm-project/pull/140031.diff
1 Files Affected:
- (modified) lldb/unittests/DAP/ProtocolTypesTest.cpp (+5-5)
``````````diff
diff --git a/lldb/unittests/DAP/ProtocolTypesTest.cpp b/lldb/unittests/DAP/ProtocolTypesTest.cpp
index 0c119bdb544d8..c34d98cf890ef 100644
--- a/lldb/unittests/DAP/ProtocolTypesTest.cpp
+++ b/lldb/unittests/DAP/ProtocolTypesTest.cpp
@@ -305,11 +305,11 @@ TEST(ProtocolTypesTest, Scope) {
scope.endLine = 10;
scope.endColumn = 20;
- scope.source =
- Source{.name = "testName",
- .path = "/path/to/source",
- .sourceReference = 12345,
- .presentationHint = Source::eSourcePresentationHintNormal};
+ // scope.source =
+ scope.source->name = "testName";
+ scope.source->path = "/path/to/source";
+ scope.source->sourceReference = 12345;
+ scope.source->presentationHint = Source::eSourcePresentationHintNormal;
llvm::Expected<Scope> deserialized_scope = roundtrip(scope);
ASSERT_THAT_EXPECTED(deserialized_scope, llvm::Succeeded());
``````````
</details>
https://github.com/llvm/llvm-project/pull/140031
More information about the lldb-commits
mailing list