Skip to content

Commit 30dd1a9

Browse files
authored
Merge pull request #5875 from bitjammer/parse-typecheck-flag
Parse typecheck flag
2 parents 7358bf9 + 6d8514b commit 30dd1a9

File tree

6,031 files changed

+6216
-6199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,031 files changed

+6216
-6199
lines changed

docs/Testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ Substitutions in lit tests
222222
Substitutions that start with ``%target`` configure the compiler for building
223223
code for the target that is not the build machine:
224224

225-
* ``%target-parse-verify-swift``: parse and type check the current Swift file
226-
for the target platform and verify diagnostics, like ``swift -frontend -parse -verify
225+
* ``%target-typecheck-verify-swift``: parse and type check the current Swift file
226+
for the target platform and verify diagnostics, like ``swift -frontend -typecheck -verify
227227
%s``.
228228

229229
Use this substitution for testing semantic analysis in the compiler.

include/swift/Frontend/FrontendOptions.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ class FrontendOptions {
136136

137137
enum ActionType {
138138
NoneAction, ///< No specific action
139-
Parse, ///< Parse and type-check only
139+
Parse, ///< Parse only
140+
Typecheck, ///< Parse and type-check only
140141
DumpParse, ///< Parse only and dump AST
141142
DumpInterfaceHash, ///< Parse and dump the interface token hash.
142143
DumpAST, ///< Parse, type-check, and dump AST

include/swift/Option/Options.td

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,12 @@ def fixit_all : Flag<["-"], "fixit-all">,
423423
Flags<[FrontendOption, NoInteractiveOption, DoesNotAffectIncrementalBuild]>;
424424

425425
// No Output Modes
426-
def parse : Flag<["-"], "parse">,
426+
def parse: Flag<["-"], "parse">,
427427
HelpText<"Parse input file(s)">, ModeOpt,
428428
Flags<[FrontendOption, NoInteractiveOption, DoesNotAffectIncrementalBuild]>;
429+
def typecheck : Flag<["-"], "typecheck">,
430+
HelpText<"Parse and type-check input file(s)">, ModeOpt,
431+
Flags<[FrontendOption, NoInteractiveOption, DoesNotAffectIncrementalBuild]>;
429432
def dump_parse : Flag<["-"], "dump-parse">,
430433
HelpText<"Parse input file(s) and dump AST(s)">, ModeOpt,
431434
Flags<[FrontendOption, NoInteractiveOption, DoesNotAffectIncrementalBuild]>;

lib/Driver/Driver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,7 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
10421042
break;
10431043

10441044
case options::OPT_parse:
1045+
case options::OPT_typecheck:
10451046
case options::OPT_dump_parse:
10461047
case options::OPT_dump_ast:
10471048
case options::OPT_print_ast:

lib/Frontend/CompilerInvocation.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
249249
Action = FrontendOptions::EmitSIBGen;
250250
} else if (Opt.matches(OPT_parse)) {
251251
Action = FrontendOptions::Parse;
252+
} else if (Opt.matches(OPT_typecheck)) {
253+
Action = FrontendOptions::Typecheck;
252254
} else if (Opt.matches(OPT_dump_parse)) {
253255
Action = FrontendOptions::DumpParse;
254256
} else if (Opt.matches(OPT_dump_ast)) {
@@ -460,6 +462,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
460462
break;
461463

462464
case FrontendOptions::Parse:
465+
case FrontendOptions::Typecheck:
463466
case FrontendOptions::DumpParse:
464467
case FrontendOptions::DumpInterfaceHash:
465468
case FrontendOptions::DumpAST:
@@ -661,6 +664,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
661664
Diags.diagnose(SourceLoc(), diag::error_mode_cannot_emit_dependencies);
662665
return true;
663666
case FrontendOptions::Parse:
667+
case FrontendOptions::Typecheck:
664668
case FrontendOptions::EmitModuleOnly:
665669
case FrontendOptions::EmitSILGen:
666670
case FrontendOptions::EmitSIL:
@@ -688,6 +692,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
688692
Diags.diagnose(SourceLoc(), diag::error_mode_cannot_emit_header);
689693
return true;
690694
case FrontendOptions::Parse:
695+
case FrontendOptions::Typecheck:
691696
case FrontendOptions::EmitModuleOnly:
692697
case FrontendOptions::EmitSILGen:
693698
case FrontendOptions::EmitSIL:
@@ -706,6 +711,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
706711
switch (Opts.RequestedAction) {
707712
case FrontendOptions::NoneAction:
708713
case FrontendOptions::Parse:
714+
case FrontendOptions::Typecheck:
709715
case FrontendOptions::DumpParse:
710716
case FrontendOptions::DumpInterfaceHash:
711717
case FrontendOptions::DumpAST:

lib/Frontend/FrontendOptions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ bool FrontendOptions::actionHasOutput() const {
2020
switch (RequestedAction) {
2121
case NoneAction:
2222
case Parse:
23+
case Typecheck:
2324
case DumpParse:
2425
case DumpAST:
2526
case DumpInterfaceHash:
@@ -49,6 +50,7 @@ bool FrontendOptions::actionIsImmediate() const {
4950
switch (RequestedAction) {
5051
case NoneAction:
5152
case Parse:
53+
case Typecheck:
5254
case DumpParse:
5355
case DumpAST:
5456
case DumpInterfaceHash:

lib/FrontendTool/FrontendTool.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,16 @@ static bool performCompile(CompilerInstance &Instance,
736736
if (shouldTrackReferences)
737737
Instance.setReferencedNameTracker(&nameTracker);
738738

739-
if (Action == FrontendOptions::DumpParse ||
739+
if (Action == FrontendOptions::Parse ||
740+
Action == FrontendOptions::DumpParse ||
740741
Action == FrontendOptions::DumpInterfaceHash)
741742
Instance.performParseOnly();
742743
else
743744
Instance.performSema();
744745

746+
if (Action == FrontendOptions::Parse)
747+
return false;
748+
745749
if (observer) {
746750
observer->performedSemanticAnalysis(Instance);
747751
}
@@ -853,8 +857,8 @@ static bool performCompile(CompilerInstance &Instance,
853857
opts.ImplicitObjCHeaderPath.empty() &&
854858
!Context.LangOpts.EnableAppExtensionRestrictions;
855859

856-
// We've just been told to perform a parse, so we can return now.
857-
if (Action == FrontendOptions::Parse) {
860+
// We've just been told to perform a typecheck, so we can return now.
861+
if (Action == FrontendOptions::Typecheck) {
858862
if (!opts.ObjCHeaderOutputPath.empty())
859863
return printAsObjC(opts.ObjCHeaderOutputPath, Instance.getMainModule(),
860864
opts.ImplicitObjCHeaderPath, moduleIsPublic);

test/APINotes/basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift -I %S/Inputs/custom-modules -F %S/Inputs/custom-frameworks
1+
// RUN: %target-typecheck-verify-swift -I %S/Inputs/custom-modules -F %S/Inputs/custom-frameworks
22
import APINotesTest
33
import APINotesFrameworkTest
44

test/APINotes/broken-swift-name.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift -I %S/Inputs/broken-modules
1+
// RUN: %target-typecheck-verify-swift -I %S/Inputs/broken-modules
22
import BrokenAPINotes
33

44
func testBrokenSwiftName(x: inout ZXSpectrum) {

test/APINotes/type_changes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift -I %S/Inputs/custom-modules -F %S/Inputs/custom-frameworks
1+
// RUN: %target-typecheck-verify-swift -I %S/Inputs/custom-modules -F %S/Inputs/custom-frameworks
22

33
// REQUIRES: objc_interop
44

test/CircularReferences/global_typealias.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift -iterative-type-checker
1+
// RUN: %target-typecheck-verify-swift -iterative-type-checker
22

33
typealias A = B // expected-error{{circular reference}}
44
typealias C = D // expected-note{{through reference here}}

test/ClangImporter/AppKit_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift %clang-importer-sdk
1+
// RUN: %target-typecheck-verify-swift %clang-importer-sdk
22

33
// REQUIRES: OS=macosx
44

test/ClangImporter/CoreMIDI_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift %clang-importer-sdk
1+
// RUN: %target-typecheck-verify-swift %clang-importer-sdk
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/CoreServices_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift %clang-importer-sdk
1+
// RUN: %target-typecheck-verify-swift %clang-importer-sdk
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/Darwin_sdk_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -parse %s -verify
1+
// RUN: %target-swift-frontend -typecheck %s -verify
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/Darwin_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift %clang-importer-sdk
1+
// RUN: %target-typecheck-verify-swift %clang-importer-sdk
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/Dispatch_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift
1+
// RUN: %target-typecheck-verify-swift
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/MixedSource/Xcc_include.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/Xcc_include.h -parse %s 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-ONLY %s
1+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/Xcc_include.h -typecheck %s 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-ONLY %s
22

3-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/Xcc_include.h -import-objc-header %S/../../Inputs/empty.swift -parse %s 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-PLUS-BRIDGING %s
3+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/Xcc_include.h -import-objc-header %S/../../Inputs/empty.swift -typecheck %s 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-PLUS-BRIDGING %s
44

5-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/Xcc_include.h -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -parse %s -disable-objc-attr-requires-foundation-module 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-FRAMEWORK %s
5+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/Xcc_include.h -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -typecheck %s -disable-objc-attr-requires-foundation-module 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-FRAMEWORK %s
66

7-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/this_header_does_not_exist.h -parse %s 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-MISSING %s
7+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xcc -include -Xcc %S/Inputs/this_header_does_not_exist.h -typecheck %s 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE-MISSING %s
88

99
// REQUIRES: objc_interop
1010

test/ClangImporter/MixedSource/broken-bridging-header.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: not %target-swift-frontend -parse %S/../../Inputs/empty.swift -import-objc-header %t/fake.h 2>&1 | %FileCheck -check-prefix=MISSING-HEADER %s
2+
// RUN: not %target-swift-frontend -typecheck %S/../../Inputs/empty.swift -import-objc-header %t/fake.h 2>&1 | %FileCheck -check-prefix=MISSING-HEADER %s
33

44
// RUN: cp %S/Inputs/error-on-define.h %t
5-
// RUN: not %target-swift-frontend -parse %S/../../Inputs/empty.swift -import-objc-header %t/error-on-define.h 2>&1 | %FileCheck -check-prefix=MISSING-OTHER-HEADER %s
5+
// RUN: not %target-swift-frontend -typecheck %S/../../Inputs/empty.swift -import-objc-header %t/error-on-define.h 2>&1 | %FileCheck -check-prefix=MISSING-OTHER-HEADER %s
66

77
// RUN: cp %S/Inputs/error-on-define-impl.h %t
8-
// RUN: not %target-swift-frontend -parse %S/../../Inputs/empty.swift -import-objc-header %t/error-on-define.h -Xcc -DERROR 2>&1 | %FileCheck -check-prefix=HEADER-ERROR %s
8+
// RUN: not %target-swift-frontend -typecheck %S/../../Inputs/empty.swift -import-objc-header %t/error-on-define.h -Xcc -DERROR 2>&1 | %FileCheck -check-prefix=HEADER-ERROR %s
99

1010

1111
// RUN: %target-swift-frontend -emit-module -o %t -module-name HasBridgingHeader %S/../../Inputs/empty.swift -import-objc-header %t/error-on-define.h
1212

13-
// RUN: %target-swift-frontend -parse %s -I %t -Xcc -DERROR -verify -show-diagnostics-after-fatal
14-
// RUN: not %target-swift-frontend -parse %s -I %t -Xcc -DERROR 2>&1 | %FileCheck -check-prefix=HEADER-ERROR %s
13+
// RUN: %target-swift-frontend -typecheck %s -I %t -Xcc -DERROR -verify -show-diagnostics-after-fatal
14+
// RUN: not %target-swift-frontend -typecheck %s -I %t -Xcc -DERROR 2>&1 | %FileCheck -check-prefix=HEADER-ERROR %s
1515

1616
// RUN: rm %t/error-on-define-impl.h
17-
// RUN: %target-swift-frontend -parse %s -I %t -verify -show-diagnostics-after-fatal
18-
// RUN: not %target-swift-frontend -parse %s -I %t 2>&1 | %FileCheck -check-prefix=MISSING-OTHER-HEADER %s
17+
// RUN: %target-swift-frontend -typecheck %s -I %t -verify -show-diagnostics-after-fatal
18+
// RUN: not %target-swift-frontend -typecheck %s -I %t 2>&1 | %FileCheck -check-prefix=MISSING-OTHER-HEADER %s
1919

2020
// REQUIRES: objc_interop
2121

test/ClangImporter/MixedSource/broken-modules.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: not %target-swift-frontend -parse %s -I %S/Inputs/broken-modules/ -enable-source-import -show-diagnostics-after-fatal 2> %t/err.txt
2+
// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/broken-modules/ -enable-source-import -show-diagnostics-after-fatal 2> %t/err.txt
33
// RUN: %FileCheck -check-prefix CHECK -check-prefix CLANG-CHECK %s < %t/err.txt
44

5-
// RUN: not %target-swift-frontend -parse %s -import-objc-header %S/Inputs/broken-modules/BrokenClangModule.h -enable-source-import 2> %t/err.bridging-header.txt
5+
// RUN: not %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/broken-modules/BrokenClangModule.h -enable-source-import 2> %t/err.bridging-header.txt
66
// RUN: %FileCheck -check-prefix CHECK-BRIDGING-HEADER -check-prefix CLANG-CHECK %s < %t/err.bridging-header.txt
77

8-
// RUN: not %target-swift-frontend -parse %s -import-objc-header %S/../../Inputs/empty.swift 2>&1 | %FileCheck -check-prefix=EMPTY-HEADER %s
8+
// RUN: not %target-swift-frontend -typecheck %s -import-objc-header %S/../../Inputs/empty.swift 2>&1 | %FileCheck -check-prefix=EMPTY-HEADER %s
99

1010
// REQUIRES: objc_interop
1111

test/ClangImporter/MixedSource/import-mixed-framework.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// RUN: cp -r %S/Inputs/mixed-framework/Mixed.framework %t
44

55
// Don't crash if a generated header is present but the swiftmodule is missing.
6-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %t -parse %s
6+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %t -typecheck %s
77

88
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t/Mixed.framework/Modules/Mixed.swiftmodule/%target-swiftmodule-name %S/Inputs/mixed-framework/Mixed.swift -import-underlying-module -F %t -module-name Mixed -disable-objc-attr-requires-foundation-module
9-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %t -parse %s -verify
9+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %t -typecheck %s -verify
1010

1111
// XFAIL: linux
1212

test/ClangImporter/MixedSource/import-mixed-with-header-twice.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/../Inputs/custom-modules -import-objc-header %t/mixed-target/header.h -emit-module-path %t/MixedWithHeader.swiftmodule %S/Inputs/mixed-with-header.swift %S/../../Inputs/empty.swift -module-name MixedWithHeader -disable-objc-attr-requires-foundation-module
55
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %t -I %S/../Inputs/custom-modules -import-objc-header %t/mixed-target/header-again.h -emit-module-path %t/MixedWithHeaderAgain.swiftmodule %S/Inputs/mixed-with-header-again.swift %S/../../Inputs/empty.swift -module-name MixedWithHeaderAgain -disable-objc-attr-requires-foundation-module
6-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/../Inputs/custom-modules -I %t -parse %s -verify
6+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/../Inputs/custom-modules -I %t -typecheck %s -verify
77

88
// RUN: rm %t/mixed-target/header.h
9-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %t -I %S/../Inputs/custom-modules -parse %s 2>&1 | %FileCheck %s -check-prefix=USE-SERIALIZED-HEADER
9+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %t -I %S/../Inputs/custom-modules -typecheck %s 2>&1 | %FileCheck %s -check-prefix=USE-SERIALIZED-HEADER
1010

1111
// XFAIL: linux
1212

test/ClangImporter/MixedSource/import-mixed-with-header.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
// FIXME: END -enable-source-import hackaround
88

99
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/../Inputs/custom-modules -import-objc-header %t/mixed-target/header.h -emit-module-path %t/MixedWithHeader.swiftmodule %S/Inputs/mixed-with-header.swift %S/../../Inputs/empty.swift -module-name MixedWithHeader -disable-objc-attr-requires-foundation-module
10-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/../Inputs/custom-modules -parse %s -verify
10+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/../Inputs/custom-modules -typecheck %s -verify
1111

1212
// RUN: rm -rf %t/mixed-target/
13-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/../Inputs/custom-modules -parse %s -verify
13+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/../Inputs/custom-modules -typecheck %s -verify
1414

1515
// XFAIL: linux
1616

test/ClangImporter/MixedSource/mixed-nsuinteger.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/user-module -parse %s -verify
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/user-module -typecheck %s -verify
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/MixedSource/mixed-target-using-header.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/../Inputs/custom-modules -import-objc-header %S/Inputs/mixed-target/header.h -parse %s -disable-objc-attr-requires-foundation-module -verify
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/../Inputs/custom-modules -import-objc-header %S/Inputs/mixed-target/header.h -typecheck %s -disable-objc-attr-requires-foundation-module -verify
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/MixedSource/mixed-target-using-module.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -parse %s -verify -disable-objc-attr-requires-foundation-module
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -typecheck %s -verify -disable-objc-attr-requires-foundation-module
22
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -emit-ir %S/../../Inputs/empty.swift - | %FileCheck -check-prefix=CHECK-AUTOLINK %s
3-
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name WrongName -import-underlying-module -parse %s -disable-objc-attr-requires-foundation-module 2>&1 | %FileCheck -check-prefix=CHECK-WRONG-NAME %s
3+
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name WrongName -import-underlying-module -typecheck %s -disable-objc-attr-requires-foundation-module 2>&1 | %FileCheck -check-prefix=CHECK-WRONG-NAME %s
44

55
// REQUIRES: objc_interop
66

test/ClangImporter/MixedSource/resolve-cross-language.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -emit-module -emit-objc-header -o %t %S/Inputs/resolve-cross-language/Base.swift -disable-objc-attr-requires-foundation-module
55
// RUN: cp %S/Inputs/resolve-cross-language/Base-module.map %t/module.map
6-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -parse -I %t -F %S/Inputs/resolve-cross-language %s -verify
6+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -typecheck -I %t -F %S/Inputs/resolve-cross-language %s -verify
77

88
// REQUIRES: objc_interop
99

test/ClangImporter/SceneKit_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-parse-verify-swift
1+
// RUN: %target-typecheck-verify-swift
22

33
// REQUIRES: objc_interop
44
// REQUIRES: OS=macosx

test/ClangImporter/Security_test.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse %s -verify
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/accessibility_framework.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -verify %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s
22

33
// REQUIRES: OS=macosx
44
// REQUIRES: objc_interop

test/ClangImporter/adapter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -verify -I %S/Inputs/custom-modules %s
2-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -verify -I %S/Inputs/custom-modules -DREVERSED %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s
2+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -DREVERSED %s
33

44
// REQUIRES: objc_interop
55

test/ClangImporter/attr-swift_name.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -Xcc -w -parse %s 2>&1 | %FileCheck %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -Xcc -w -typecheck %s 2>&1 | %FileCheck %s
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/attr-swift_name_renaming.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -Xcc -w -parse -verify %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -Xcc -w -typecheck -verify %s
22

33
// XFAIL: linux
44

0 commit comments

Comments
 (0)