[Lldb-commits] [lldb] ec8c818 - [lldb][NFC] Don't use C++20 designated initializer (#201075)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 5 00:58:44 PDT 2026


Author: Raphael Isemann
Date: 2026-06-05T08:58:40+01:00
New Revision: ec8c8183af2087e9b6e543b3331af57db0f5a9e4

URL: https://github.com/llvm/llvm-project/commit/ec8c8183af2087e9b6e543b3331af57db0f5a9e4
DIFF: https://github.com/llvm/llvm-project/commit/ec8c8183af2087e9b6e543b3331af57db0f5a9e4.diff

LOG: [lldb][NFC] Don't use C++20 designated initializer (#201075)

This source triggers the `-Wc++20-designator` warning as we're still
using C++ 17.

Added: 
    

Modified: 
    lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp b/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp
index 50c37dcd4568e..fdeb1f176adc4 100644
--- a/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp
+++ b/lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp
@@ -276,59 +276,59 @@ TEST_P(SDKPathParsingMultiparamTests, TestSDKPathFromDebugInfo) {
 
 SDKPathParsingTestData sdkPathParsingTestCases[] = {
     /// Multiple CUs with a mix of internal and public SDKs
-    {.input_sdk_paths =
-         {"/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk",
-          "/invalid/path/to/something.invalid.sdk",
-          "/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.0.Internal.sdk",
-          "/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk"},
-     .expect_mismatch = true,
-     .expect_internal_sdk = true,
-     .expect_sdk_path_pattern = "Internal.sdk"},
+    {/*.input_sdk_paths=*/{
+         "/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk",
+         "/invalid/path/to/something.invalid.sdk",
+         "/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.0.Internal.sdk",
+         "/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk"},
+     /*.expect_mismatch=*/true,
+     /*.expect_internal_sdk=*/true,
+     /*.expect_sdk_path_pattern=*/"Internal.sdk"},
 
     /// Single CU with a public SDK
-    {.input_sdk_paths =
-         {"/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk"},
-     .expect_mismatch = false,
-     .expect_internal_sdk = false,
-     .expect_sdk_path_pattern = "MacOSX10.9.sdk"},
+    {/*.input_sdk_paths=*/{
+         "/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk"},
+     /*.expect_mismatch=*/false,
+     /*.expect_internal_sdk=*/false,
+     /*.expect_sdk_path_pattern=*/"MacOSX10.9.sdk"},
 
     /// Single CU with an internal SDK
-    {.input_sdk_paths =
-         {"/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.0.Internal.sdk"},
-     .expect_mismatch = false,
-     .expect_internal_sdk = true,
-     .expect_sdk_path_pattern = "Internal.sdk"},
+    {/*.input_sdk_paths=*/{
+         "/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.0.Internal.sdk"},
+     /*.expect_mismatch=*/false,
+     /*.expect_internal_sdk=*/true,
+     /*.expect_sdk_path_pattern=*/"Internal.sdk"},
 
     /// Two CUs with an internal SDK each
-    {.input_sdk_paths =
-         {"/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.0.Internal.sdk",
-          "/Library/Developer/CommandLineTools/SDKs/iPhoneOS12.9.Internal.sdk"},
-     .expect_mismatch = false,
-     .expect_internal_sdk = true,
-     .expect_sdk_path_pattern = "Internal.sdk"},
+    {/*.input_sdk_paths=*/{
+         "/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.0.Internal.sdk",
+         "/Library/Developer/CommandLineTools/SDKs/iPhoneOS12.9.Internal.sdk"},
+     /*.expect_mismatch=*/false,
+     /*.expect_internal_sdk=*/true,
+     /*.expect_sdk_path_pattern=*/"Internal.sdk"},
 
     /// Two CUs with a public (non-CommandLineTools) SDK each
-    {.input_sdk_paths = {"/Path/To/SDKs/iPhoneOS14.1.sdk",
-                         "/Path/To/SDKs/MacOSX11.3.sdk"},
-     .expect_mismatch = false,
-     .expect_internal_sdk = false,
-     .expect_sdk_path_pattern = "iPhoneOS14.1.sdk"},
+    {/*.input_sdk_paths=*/{"/Path/To/SDKs/iPhoneOS14.1.sdk",
+                           "/Path/To/SDKs/MacOSX11.3.sdk"},
+     /*.expect_mismatch=*/false,
+     /*.expect_internal_sdk=*/false,
+     /*.expect_sdk_path_pattern=*/"iPhoneOS14.1.sdk"},
 
     /// One CU with CommandLineTools and the other a public SDK
-    {.input_sdk_paths =
-         {"/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.1.sdk",
-          "/Path/To/SDKs/MacOSX11.3.sdk"},
-     .expect_mismatch = false,
-     .expect_internal_sdk = false,
-     .expect_sdk_path_pattern = "iPhoneOS14.1.sdk"},
+    {/*.input_sdk_paths=*/{
+         "/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.1.sdk",
+         "/Path/To/SDKs/MacOSX11.3.sdk"},
+     /*.expect_mismatch=*/false,
+     /*.expect_internal_sdk=*/false,
+     /*.expect_sdk_path_pattern=*/"iPhoneOS14.1.sdk"},
 
     /// One CU with CommandLineTools and the other an internal SDK
-    {.input_sdk_paths =
-         {"/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.1.sdk",
-          "/Path/To/SDKs/MacOSX11.3.Internal.sdk"},
-     .expect_mismatch = true,
-     .expect_internal_sdk = true,
-     .expect_sdk_path_pattern = "iPhoneOS14.1.Internal.sdk"},
+    {/*.input_sdk_paths=*/{
+         "/Library/Developer/CommandLineTools/SDKs/iPhoneOS14.1.sdk",
+         "/Path/To/SDKs/MacOSX11.3.Internal.sdk"},
+     /*.expect_mismatch=*/true,
+     /*.expect_internal_sdk=*/true,
+     /*.expect_sdk_path_pattern=*/"iPhoneOS14.1.Internal.sdk"},
 };
 
 INSTANTIATE_TEST_SUITE_P(SDKPathParsingTests, SDKPathParsingMultiparamTests,


        


More information about the lldb-commits mailing list