Skip to content

Commit 660573c

Browse files
committed
Revised comment and code style
1 parent 29088d9 commit 660573c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def dump_clang_diagnostics : Flag<["-"], "dump-clang-diagnostics">,
228228
HelpText<"Dump Clang diagnostics to stderr">;
229229

230230
def disable_modules_validate_system_headers : Flag<["-"], "disable-modules-validate-system-headers">,
231-
HelpText<"Disable modules validate system headers in the clang importer">;
231+
HelpText<"Disable validating system headers in the Clang importer">;
232232

233233
def emit_verbose_sil : Flag<["-"], "emit-verbose-sil">,
234234
HelpText<"Emit locations during SIL emission">;

lib/ClangImporter/ClangImporter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,6 @@ getNormalInvocationArguments(std::vector<std::string> &invocationArgStrs,
344344
SHIMS_INCLUDE_FLAG, searchPathOpts.RuntimeResourcePath,
345345
});
346346

347-
if (!importerOpts.DisableModulesValidateSystemHeaders) {
348-
invocationArgStrs.push_back("-fmodules-validate-system-headers");
349-
}
350-
351347
// Set C language options.
352348
if (triple.isOSDarwin()) {
353349
invocationArgStrs.insert(invocationArgStrs.end(), {
@@ -487,6 +483,10 @@ getNormalInvocationArguments(std::vector<std::string> &invocationArgStrs,
487483
invocationArgStrs.back().append(moduleCachePath);
488484
}
489485

486+
if (!importerOpts.DisableModulesValidateSystemHeaders) {
487+
invocationArgStrs.push_back("-fmodules-validate-system-headers");
488+
}
489+
490490
if (importerOpts.DetailedPreprocessingRecord) {
491491
invocationArgStrs.insert(invocationArgStrs.end(), {
492492
"-Xclang", "-detailed-preprocessing-record",

0 commit comments

Comments
 (0)