Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
/include/swift/IDE/ @ahoppen @bnbarham @rintaro @hamishknight
/include/swift/Index/ @bnbarham
/include/swift/Refactoring @ahoppen @bnbarham
/include/swift/Option/*Options* @tshortli
/include/swift/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
/include/swift/PrintAsClang @zoecarver @hyp @egorzhdan
# TODO: /include/swift/SIL/
Expand Down
14 changes: 7 additions & 7 deletions include/swift/Option/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def package_name : Separate<["-"], "package-name">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorablePrivate]>,
HelpText<"Name of the package the module belongs to">;
def export_as : Separate<["-"], "export-as">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable]>,
Flags<[FrontendOption, ModuleInterfaceOption]>,
HelpText<"Module name to use when referenced in clients module interfaces">;

def emit_module : Flag<["-"], "emit-module">,
Expand Down Expand Up @@ -762,7 +762,7 @@ def disable_actor_data_race_checks :
HelpText<"Disable runtime checks for actor data races">;

def enable_bare_slash_regex : Flag<["-"], "enable-bare-slash-regex">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable]>,
Flags<[FrontendOption, ModuleInterfaceOption]>,
HelpText<"Enable the use of forward slash regular-expression literal syntax">;

def warn_implicit_overrides :
Expand Down Expand Up @@ -794,11 +794,11 @@ def strict_concurrency : Joined<["-"], "strict-concurrency=">,

def enable_experimental_feature :
Separate<["-"], "enable-experimental-feature">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable]>,
Flags<[FrontendOption, ModuleInterfaceOption]>,
HelpText<"Enable an experimental feature">;

def enable_upcoming_feature : Separate<["-"], "enable-upcoming-feature">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable]>,
Flags<[FrontendOption, ModuleInterfaceOption]>,
HelpText<"Enable a feature that will be introduced in an upcoming language "
"version">;

Expand Down Expand Up @@ -1286,7 +1286,7 @@ def explain_module_dependency : Separate<["-"], "explain-module-dependency">,
HelpText<"Emit remark/notes describing why compilaiton may depend on a module with a given name.">;

def min_inlining_target_version : Separate<["-"], "target-min-inlining-version">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable]>,
Flags<[FrontendOption, ModuleInterfaceOption]>,
HelpText<"Require inlinable code with no '@available' attribute to back-deploy "
"to this version of the '-target' OS">;

Expand Down Expand Up @@ -1405,12 +1405,12 @@ def working_directory_EQ : Joined<["-"], "working-directory=">,
Alias<working_directory>;

def user_module_version : Separate<["-"], "user-module-version">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable, NewDriverOnlyOption]>,
Flags<[FrontendOption, ModuleInterfaceOption, NewDriverOnlyOption]>,
HelpText<"Module version specified from Swift module authors">,
MetaVarName<"<vers>">;

def allowable_client : Separate<["-"], "allowable-client">,
Flags<[FrontendOption, ModuleInterfaceOptionIgnorable, NewDriverOnlyOption]>,
Flags<[FrontendOption, ModuleInterfaceOption, NewDriverOnlyOption]>,
HelpText<"Module names that are allowed to import this module">,
MetaVarName<"<vers>">;
// VFS
Expand Down
2 changes: 1 addition & 1 deletion lib/AST/ModuleDependencies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ ModuleDependenciesCache::ModuleDependenciesCache(
std::string scannerContextHash)
: globalScanningService(globalScanningService),
mainScanModuleName(mainScanModuleName),
moduleOutputPath(moduleOutputPath),
scannerContextHash(scannerContextHash),
moduleOutputPath(moduleOutputPath),
clangScanningTool(*globalScanningService.ClangScanningService,
globalScanningService.getClangScanningFS()) {
globalScanningService.configureForContextHash(scannerContextHash);
Expand Down
2 changes: 1 addition & 1 deletion test/ModuleInterface/allowable-client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// RUN: %FileCheck %s --check-prefix=INTERFACE-FLAG < %t/textual/Foo.swiftinterface

// INTERFACE-FLAG: swift-module-flags-ignorable:
// INTERFACE-FLAG: swift-module-flags:
// INTERFACE-FLAG: -allowable-client FooFriend1 -allowable-client FooFriend2 -allowable-client FooFriend3


Expand Down
2 changes: 1 addition & 1 deletion test/ModuleInterface/option-filtering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// CHECK-SWIFTINTERFACE-NOT: -enable-experimental-feature LayoutStringValueWitnesses
// CHECK-SWIFTINTERFACE-NOT: -enable-experimental-feature LayoutStringValueWitnessesInstantiation
// CHECK-SWIFTINTERFACE: swift-module-flags-ignorable:
// CHECK-SWIFTINTERFACE: swift-module-flags:
// CHECK-SWIFTINTERFACE-SAME: -enable-experimental-feature MoveOnlyClasses
// CHECK-SWIFTINTERFACE-SAME: -enable-experimental-feature NoImplicitCopy

Expand Down
3 changes: 1 addition & 2 deletions test/ModuleInterface/option-preservation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
//
// CHECK-SWIFTINTERFACE: swift-module-flags:
// CHECK-SWIFTINTERFACE-SAME: -enable-library-evolution
// CHECK-SWIFTINTERFACE-SAME: -target-min-inlining-version 42
// CHECK-SWIFTINTERFACE-SAME: -Onone
// CHECK-SWIFTINTERFACE-SAME: -enforce-exclusivity=unchecked
// CHECK-SWIFTINTERFACE-SAME: -autolink-force-load
// CHECK-SWIFTINTERFACE: swift-module-flags-ignorable:
// CHECK-SWIFTINTERFACE-SAME: -target-min-inlining-version 42
// CHECK-SWIFTINTERFACE-SAME: -enable-bare-slash-regex

// Make sure flags show up when filelists are enabled
Expand Down