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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to