[Debugging] Add DebugDescriptionMacro experimental feature (#73107)

This removes the leading underscore from the macro.
This commit is contained in:
Dave Lee
2024-04-18 17:25:44 -07:00
committed by GitHub
parent d6a4a3553b
commit e57f70bd4d
19 changed files with 43 additions and 34 deletions

View File

@@ -1538,6 +1538,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.DisableDynamicActorIsolation |=
Args.hasArg(OPT_disable_dynamic_actor_isolation);
// @DebugDescription uses @_section and @_used attributes.
if (Opts.hasFeature(Feature::DebugDescriptionMacro))
Opts.enableFeature(Feature::SymbolLinkageMarkers);
#if SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
/// Enable round trip parsing via the new swift parser unless it is disabled
/// explicitly. The new Swift parser can have mismatches with C++ parser -