mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #70602 from ApolloZhu/macro/expression-as-default-argument
[Macros] Expression macro as caller-side default argument
This commit is contained in:
@@ -1781,6 +1781,11 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
|
||||
StringRef explicitSwiftModuleMap = searchPathOpts.ExplicitSwiftModuleMap;
|
||||
genericSubInvocation.getSearchPathOptions().ExplicitSwiftModuleMap =
|
||||
explicitSwiftModuleMap.str();
|
||||
|
||||
// Load plugin libraries for macro expression as default arguments
|
||||
genericSubInvocation.getSearchPathOptions().PluginSearchOpts =
|
||||
searchPathOpts.PluginSearchOpts;
|
||||
|
||||
auto &subClangImporterOpts = genericSubInvocation.getClangImporterOptions();
|
||||
// Respect the detailed-record preprocessor setting of the parent context.
|
||||
// This, and the "raw" clang module format it implicitly enables, are
|
||||
|
||||
Reference in New Issue
Block a user