mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The `DebugDescription` macro has been accepted. Additionally, the `DebugDescriptionMacro` feature was not providing conditional declaration as I originally intended. References to the feature are not needed and can be removed. (cherry-picked from #77738)
This commit is contained in:
@@ -284,7 +284,6 @@ target_compile_options(swiftCore PRIVATE
|
||||
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature FreestandingMacros>"
|
||||
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature BitwiseCopyable>"
|
||||
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature Extern>"
|
||||
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature DebugDescriptionMacro>"
|
||||
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -group-info-path -Xfrontend ${CMAKE_CURRENT_SOURCE_DIR}/GroupInfo.json>"
|
||||
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -enable-experimental-concise-pound-file>"
|
||||
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-autolinking-runtime-compatibility-concurrency>"
|
||||
|
||||
@@ -331,8 +331,8 @@ else()
|
||||
set(swift_lib_dir "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/../lib")
|
||||
endif()
|
||||
|
||||
# For `@DebugDescription`.
|
||||
list(APPEND swift_stdlib_compile_flags "-plugin-path" "${swift_lib_dir}/swift/host/plugins")
|
||||
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "DebugDescriptionMacro")
|
||||
|
||||
set(swift_core_incorporate_object_libraries)
|
||||
list(APPEND swift_core_incorporate_object_libraries swiftRuntime)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
import SwiftShims
|
||||
|
||||
// Macros are disabled when Swift is built without swift-syntax.
|
||||
#if $Macros && $DebugDescriptionMacro && hasAttribute(attached)
|
||||
#if $Macros && hasAttribute(attached)
|
||||
|
||||
/// Converts description definitions to a debugger Type Summary.
|
||||
///
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
struct MyStruct {}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// REQUIRES: swift_swift_parser
|
||||
// REQUIRES: swift_feature_DebugDescriptionMacro
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -enable-experimental-feature DebugDescriptionMacro -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -disable-availability-checking -typecheck -plugin-path %swift-plugin-dir -dump-macro-expansions > %t/expansions-dump.txt 2>&1
|
||||
// RUN: %FileCheck %s < %t/expansions-dump.txt
|
||||
|
||||
@DebugDescription
|
||||
|
||||
Reference in New Issue
Block a user