content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
// RUN: %empty-directory(%t.mcp)\n\n// This should fail only if -disable-clangimporter-source-import is present.\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) \\n// RUN: -enable-objc-interop -typecheck -I %S/Inputs/custom-modules \\n// RUN: -module-cache-path %t.mcp %s | %FileCheck --allow-empt...
dataset_sample\swift\apple_swift\test\ClangImporter\disable-source-import.swift
disable-source-import.swift
Swift
672
0.95
0.055556
0.833333
react-lib
89
2024-10-27T14:32:43.731610
Apache-2.0
true
835005e3156cef183b7e0e14c9f0d709
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/DoubleMainActor.h -emit-module -module-name use %s 2> %t/stderr.txt\n// RUN: %FileCheck -input-file %t/stderr.txt %s\n\n// REQUIRES: concurrency\n// REQUIRES: objc_interop\n\n// CHECK: DoubleMainAc...
dataset_sample\swift\apple_swift\test\ClangImporter\duplicate_mainactor.swift
duplicate_mainactor.swift
Swift
506
0.95
0.222222
0.857143
vue-tools
112
2023-09-16T23:16:31.290765
GPL-3.0
true
ddbdac26d3204c837323818a3b0d981e
// RUN: %empty-directory(%t/src)\n// RUN: split-file %s %t/src\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -disable-availability-checking -enable-upcoming-feature DynamicActorIsolation -Xllvm -sil-print-types -emit-silgen -module-name preconcurrency_conformances %t/src/checks.swift | %FileCheck %t/...
dataset_sample\swift\apple_swift\test\ClangImporter\dynamic_actor_isolation_checks.swift
dynamic_actor_isolation_checks.swift
Swift
16,492
0.95
0.042194
0.585492
awesome-app
583
2024-04-16T18:21:52.850727
BSD-3-Clause
true
0fb403a706a5a07beb22f86e53957513
// RUN: %target-swift-frontend -emit-ir %s -enable-objc-interop -import-objc-header %S/Inputs/enum-anon.h | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-%target-runtime %s\n\nfunc verifyIsInt(_: inout Int) { }\nfunc verifyIsInt32(_: inout Int32) { }\nfunc verifyIsUInt32(_: inout UInt32) { }\n\nvar a = Constant2\n...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-anon-sized.swift
enum-anon-sized.swift
Swift
1,154
0.95
0.051282
0.483871
node-utils
869
2025-03-31T19:05:28.468026
Apache-2.0
true
eda8f7e2c50726e6a46be2fc9c5a08c5
// RUN: %target-swift-frontend -typecheck %s -enable-objc-interop -import-objc-header %S/Inputs/enum-anon.h -verify\n\nfunc testDiags() {\n#if _runtime(_ObjC)\n let us2 = USConstant2\n#else\n let us2: UInt16 = 0\n#endif\n let _: String = us2 // expected-error {{cannot convert value of type 'UInt16' to specified type...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-anon.swift
enum-anon.swift
Swift
804
0.95
0.086957
0.526316
awesome-app
533
2024-03-24T20:31:38.010443
Apache-2.0
true
6c2c1a7ac7e9e7f3c5170a6309f2dc8a
// RUN: %target-swiftxx-frontend -emit-ir -primary-file %s -I %S/Inputs/custom-modules -o - | %FileCheck %s\n\nimport CXXInterop\n\n// CHECK-LABEL: define hidden swiftcc i8 @"$s4main19testEmptyEnumImport5values4Int8VSo04OpencD0V_tF"(i8 %0)\n// CHECK: %1 = call swiftcc i8 @"$sSo13OpenEmptyEnumV8rawValues4Int8Vvg"(i8 %0...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-cxx.swift
enum-cxx.swift
Swift
491
0.95
0
0.555556
vue-tools
641
2024-10-22T12:25:39.752718
BSD-3-Clause
true
cdcbbd0d4c1a3b18faf8033f98e83a05
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify -enable-objc-interop\n\nimport Foundation\nimport user_objc\n\nlet aliasOriginal = NSAliasesEnum.byName\n\nswitch aliasOriginal { // expected-error {{switch must be exhaustive}}\n// expected-note@-1 {{add missing case: '.differentValue'...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-dataflow.swift
enum-dataflow.swift
Swift
598
0.95
0.2
0.3125
awesome-app
414
2024-01-24T03:48:36.044727
Apache-2.0
true
2872a3d04b183313f41ea5002a67f6c9
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil %s -enable-objc-interop -I %S/Inputs/custom-modules/AliasCaseErrorEnum\n\n// REQUIRES: objc_interop\n\nimport AliasCaseErrorEnum\n\n// Make sure that we can reference aliases defined in the wrapper type\n// which themselves point at aliases inside ...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-error-case-alias.swift
enum-error-case-alias.swift
Swift
385
0.95
0
0.571429
awesome-app
881
2023-08-16T11:35:12.230369
BSD-3-Clause
true
98b491e4ae5fd1ba58a87a53d48e0268
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/enum-error.m -c -o %t/enum-error.o\n// RUN: %target-build-swift -import-objc-header %S/Inputs/enum-error.h -Xlinker %t/enum-error.o %s -o %t/a.out\n// RUN: %target-codesign %t/a.out\n// RUN: %target-run %t/a.out | %FileCheck %s\n\n// REQUIRES: executable_tes...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-error-execute.swift
enum-error-execute.swift
Swift
1,954
0.95
0.11236
0.213333
awesome-app
351
2025-05-03T00:49:08.550552
BSD-3-Clause
true
d27592c55f08999323ca0805fc2e60fc
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify -enable-objc-interop -I %S/Inputs/custom-modules/RedeclaredErrorEnum\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify -enable-objc-interop -I %S/Inputs/custom-modules/RedeclaredErrorEnum -DIMPORT_BASE...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-error-redeclared.swift
enum-error-redeclared.swift
Swift
815
0.95
0.058824
0.538462
react-lib
140
2024-06-03T17:54:47.814552
BSD-3-Clause
true
705d482562ef0d899a80b5d7d5d7afbe
// REQUIRES: OS=macosx\n\n// RUN: %target-swift-frontend -DVALUE -emit-sil %s -import-objc-header %S/Inputs/enum-error.h | %FileCheck %s -check-prefix=VALUE\n// RUN: %target-swift-frontend -DEMPTYCATCH -emit-sil %s -import-objc-header %S/Inputs/enum-error.h | %FileCheck %s -check-prefix=EMPTYCATCH\n// RUN: %target-swif...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-error.swift
enum-error.swift
Swift
6,104
0.95
0.122449
0.570248
node-utils
490
2025-02-07T15:31:34.390762
GPL-3.0
true
5fd18c93c89d5635bb8d7dc22daa93bf
// RUN: %target-swift-frontend -typecheck %s -Xcc -isystem -Xcc %S/Inputs/custom-modules -verify -swift-version 5 -verify-additional-prefix swift5-\n// RUN: %target-swift-frontend -typecheck %s -Xcc -isystem -Xcc %S/Inputs/custom-modules -verify -swift-version 6 -verify-additional-prefix swift6-\n\nimport EnumExhaustiv...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-exhaustivity-system.swift
enum-exhaustivity-system.swift
Swift
1,924
0.95
0.206897
0.166667
python-kit
369
2024-07-27T00:43:00.016766
GPL-3.0
true
9ace7b459340e4195246fc2889b527b3
// RUN: %target-swift-frontend -typecheck %s -I %S/Inputs/custom-modules -verify -warnings-as-errors -enable-nonfrozen-enum-exhaustivity-diagnostics\n\n// RUN: %target-swift-ide-test -source-filename %s -print-module -module-to-print EnumExhaustivity -I %S/Inputs/custom-modules | %FileCheck %s\n\n// CHECK-LABEL: {{^}}e...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-exhaustivity.swift
enum-exhaustivity.swift
Swift
1,719
0.95
0.15873
0.2
vue-tools
995
2024-06-09T10:10:18.470520
MIT
true
cbaaf4674de4256f035b9ab993169feb
// RUN: %target-swift-frontend -typecheck %s -enable-objc-interop -import-objc-header %S/Inputs/enum-inferred-exhaustivity.h -verify -enable-nonfrozen-enum-exhaustivity-diagnostics -warnings-as-errors\n\n// This is testing what happens with a CF_ENUM definition that doesn't include\n// any enum_extensibility attributes...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-inferred-exhaustivity.swift
enum-inferred-exhaustivity.swift
Swift
1,116
0.95
0.210526
0.375
python-kit
557
2024-08-26T15:02:31.418991
Apache-2.0
true
4ade65af93240683acef5f45aa4dfd2a
// RUN: %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/enum-new.h -verify -enable-nonfrozen-enum-exhaustivity-diagnostics\n// REQUIRES: OS=macosx\n\n_ = .Red as Color\n_ = .Cyan as MoreColor\n\nfunc test() {\n switch getColor() { // expected-warning {{switch covers known cases, but 'Color' may have...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-new.swift
enum-new.swift
Swift
1,021
0.95
0.347826
0.111111
node-utils
914
2024-01-09T04:10:09.139569
BSD-3-Clause
true
f45725b982362ef1bddbe484cb96063c
// RUN: %target-swift-frontend -emit-sil %s -enable-objc-interop -import-objc-header %S/Inputs/enum-objc.h -verify -enable-nonfrozen-enum-exhaustivity-diagnostics\n\n// REQUIRES: objc_interop\n\nfunc test(_ value: SwiftEnum, _ exhaustiveValue: ExhaustiveEnum) {\n switch value { // expected-warning {{switch covers know...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-objc.swift
enum-objc.swift
Swift
1,775
0.95
0.129032
0.24
react-lib
744
2024-04-02T01:25:00.690579
MIT
true
e06525a7e5343c281ba8f09d9c58c1e5
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify\n\nimport enums_using_attributes\n\nfunc testEvent(event: Event) {\n if event == .`init` { print("Initialize") }\n if event == .reset { print("Reset") }\n}\n
dataset_sample\swift\apple_swift\test\ClangImporter\enum-renames.swift
enum-renames.swift
Swift
235
0.95
0.25
0.166667
react-lib
636
2023-09-01T17:51:01.587588
BSD-3-Clause
true
ca19f9dca5d4d7d56dffcd057e7cce0d
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/enum-stack-protection.h %s -Onone -module-name=test -emit-sil | %FileCheck %s\n\n// Check that accessing an imported enum doesn't trigger stack protection.\n\n// CHECK-LABEL: sil @$s4test6testityyF : $@convention(thin) () -> () {\n// CHECK-NOT: stack_prot...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-stack-protection.swift
enum-stack-protection.swift
Swift
506
0.95
0.052632
0.333333
awesome-app
586
2024-12-03T23:15:11.455891
GPL-3.0
true
194ced154f0e59580268de5779b6fd29
// RUN: %swift %clang-importer-sdk -target %target-cpu-apple-macosx51 -typecheck %s -verify\n// RUN: %swift %clang-importer-sdk -target %target-cpu-apple-macosx52 -typecheck %s -verify\n\n// REQUIRES: OS=macosx\nimport Foundation\nimport user_objc\n\n// Ignore deprecated constants in prefix stripping, even if they aren...
dataset_sample\swift\apple_swift\test\ClangImporter\enum-with-target.swift
enum-with-target.swift
Swift
1,022
0.95
0.1
0.411765
vue-tools
865
2024-11-29T15:36:43.249714
GPL-3.0
true
8fc9334f44f544d0cbf178c5118fa420
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify -compiler-assertions\n// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -compiler-assertions 2>&1 | %FileCheck %s\n// -- Check that we can successfully round-trip.\n// RUN: %target-swift-frontend(mock-sdk: ...
dataset_sample\swift\apple_swift\test\ClangImporter\enum.swift
enum.swift
Swift
10,784
0.95
0.086957
0.197044
vue-tools
61
2024-07-22T04:24:53.969328
MIT
true
1f5bb386be0765dfe373699a25dd0a00
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules %s -verify\n\nimport `Weird C Module`\n\n_ = S().value\n_ = `Weird C Module`.S().value\n
dataset_sample\swift\apple_swift\test\ClangImporter\escaped-identifier-module-name.swift
escaped-identifier-module-name.swift
Swift
183
0.95
0
0.25
awesome-app
341
2023-07-13T20:00:57.525342
Apache-2.0
true
56617f3b3572bfc4aa2d2f53106657bc
// RUN: not %target-swift-frontend -enable-objc-interop -swift-version 5 -import-objc-header %S/Inputs/experimental_clang_importer_diagnostics_bridging_header.h -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s\n\nlet s: PartialImport\ns.c = 5\n// CHECK: experimental_clang_importer_diagnostics_bridging_hea...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_clang_importer_diagnostics_bridging_header.swift
experimental_clang_importer_diagnostics_bridging_header.swift
Swift
3,543
0.95
0.076923
0.895833
awesome-app
120
2024-12-18T16:36:39.415203
BSD-3-Clause
true
70fd84c68957d7e5a2a4382bbbdefba4
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s 2>&1 -diagnostic-style llvm | %FileCheck %s --strict-whitespace\n\nimport cfuncs\n\nunsupported_parameter_type(1,2)\n// CHECK: experimental_diagnostics_cfuncs.swift:5:1: error: cannot find 'unsupported_parameter_type' in scope\n// CHE...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_cfuncs.swift
experimental_diagnostics_cfuncs.swift
Swift
3,497
0.95
0.067797
0.907407
vue-tools
904
2024-10-18T21:31:31.532805
Apache-2.0
true
85f2a8ebac6f4879e8498259ba61378e
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s --strict-whitespace\n\nimport macros\n\n_ = INVALID_INTEGER_LITERAL_2\n// CHECK: experimental_diagnostics_cmacros.swift:{{[0-9]+}}:{{[0-9]+}}: error: cannot find 'INVALID_INTEGER_LITERAL_2' i...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_cmacros.swift
experimental_diagnostics_cmacros.swift
Swift
7,494
0.95
0.014085
0.861789
vue-tools
470
2025-06-07T11:55:44.364232
BSD-3-Clause
true
53d25d0567ea58a4f58510a26c384cb8
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s --strict-whitespace\n\nimport ctypes\n\nlet s: PartialImport\ns.c = 5\n// CHECK: experimental_diagnostics_cstructs.swift:{{[0-9]+}}:3: error: value of type 'PartialImport' has no member 'c'\n...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_cstructs.swift
experimental_diagnostics_cstructs.swift
Swift
1,677
0.95
0
0.777778
node-utils
646
2025-04-11T00:40:05.570336
BSD-3-Clause
true
539969c86d3dbf75bd557dae7fde7b73
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -swift-version 5 -enable-objc-interop -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s --strict-whitespace\n\n// REQUIRES: objc_interop\n\nimport IncompleteTypes\n\nlet bar = Bar()\n_ = bar.methodReturningForwardDeclaredInterface()\n// CHECK: ...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_incomplete_types.swift
experimental_diagnostics_incomplete_types.swift
Swift
12,537
0.95
0.052941
0.924051
node-utils
204
2025-05-24T16:03:05.457899
BSD-3-Clause
true
c4385086a2bd3f6f7082ca62c164a553
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -swift-version 5 -enable-objc-interop -typecheck %s 2>&1 | %FileCheck %s --strict-whitespace\n\n// REQUIRES: objc_interop\n\nimport IncompleteTypes\n\nlet foo = Foo()\n_ = foo.methodReturningCompleteInterface()\n// CHECK-NOT: experimental_diagnostics_inc...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_incomplete_types_negative.swift
experimental_diagnostics_incomplete_types_negative.swift
Swift
6,435
0.95
0.054054
0.806452
node-utils
553
2024-01-15T07:00:39.686296
GPL-3.0
true
b6b329c7f2db601f363f6342498c4933
// RUN: not %target-swift-frontend -I %S/Inputs/custom-modules -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s --strict-whitespace \n\n// This test tests that requests for diagnosis, performed by name,\n// resolve to the correct Clang declarations, even when the same name is used\n// in multiple contexts.\n\n...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_lookup_accuracy.swift
experimental_diagnostics_lookup_accuracy.swift
Swift
1,495
0.95
0.085714
0.870968
awesome-app
702
2023-12-29T19:13:35.886720
Apache-2.0
true
cc99ea746a6bbcf810b3afaf70ba9dc0
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -swift-version 5 -enable-objc-interop -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s --strict-whitespace\n\n// REQUIRES: objc_interop\n\n// Referencing a single declaration should only surface diagnostics about that declaration, no more\n\nimp...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_no_noise.swift
experimental_diagnostics_no_noise.swift
Swift
3,524
0.95
0.027778
0.876923
python-kit
613
2024-06-06T13:31:32.372209
MIT
true
38f0d5017cefd29ca5cdce85ab5abdd9
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -swift-version 5 -disable-experimental-clang-importer-diagnostics -enable-objc-interop -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s --strict-whitespace\n\n// REQUIRES: objc_interop\n\nimport cfuncs\nimport ctypes\nimport IncompleteTypes\n\n/...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_opt_out.swift
experimental_diagnostics_opt_out.swift
Swift
1,227
0.95
0
0.703704
react-lib
417
2024-04-26T06:10:35.822606
Apache-2.0
true
0519c45b51a3bb4f4c234328c0da9c74
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s 2>&1 | %FileCheck %s --strict-whitespace\n\nimport macros\n\n_ = INVALID_INTEGER_LITERAL_2\n\n// Test that experimental diagnostics for the function like macro in the same header is suppressed.\n// CHECK: macros.h:{{[0-9]+}}:{{[0-9]+}}: not...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_diagnostics_unreferenced_cmacros.swift
experimental_diagnostics_unreferenced_cmacros.swift
Swift
2,954
0.95
0.125
0.931034
awesome-app
402
2023-11-26T09:37:07.077842
Apache-2.0
true
735255153a649d09a171974828a23e04
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -swift-version 5 -enable-experimental-eager-clang-module-diagnostics -enable-objc-interop -typecheck %s -diagnostic-style llvm 2>&1 | %FileCheck %s --strict-whitespace\n\n// REQUIRES: objc_interop\n\nimport cfuncs\nimport ctypes\nimport IncompleteTypes\n...
dataset_sample\swift\apple_swift\test\ClangImporter\experimental_eager_diagnostics.swift
experimental_eager_diagnostics.swift
Swift
14,542
0.95
0.04918
0.980769
awesome-app
133
2025-05-08T19:14:32.809971
GPL-3.0
true
01236f32ab4b659842608a09be981b30
// RUN: %target-typecheck-verify-swift %clang-importer-sdk -enable-objc-interop -import-objc-header %S/Inputs/explicit_existential.h\n\n// Make sure that 'typedef id<P, Q> PAndQ' imports as a typealias without\n// the ExistentialType wrapping the underlying type.\n\nprotocol InheritsFromQAndQ : PAndQ {}\n\nfunc generic...
dataset_sample\swift\apple_swift\test\ClangImporter\explicit_existential.swift
explicit_existential.swift
Swift
516
0.95
0
0.3
node-utils
2
2024-11-13T00:39:11.161190
MIT
true
927ce02648343d22c29af9d6890f82e9
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-silgen -parse-as-library -verify %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil -O -parse-as-library -DEMIT_SIL %s\n\n// REQUIRES: objc_interop\n\nimport Foundation\nimport errors\n\n#if !EMIT_SIL\nfunc test0() {\n try Err...
dataset_sample\swift\apple_swift\test\ClangImporter\foreign_errors.swift
foreign_errors.swift
Swift
4,317
0.95
0.375
0.166667
node-utils
95
2025-05-19T07:32:18.140812
GPL-3.0
true
5f2d2ade58ee1a2134a9ad2330ba94fc
// RUN: %empty-directory(%t)\n// RUN: %build-clang-importer-objc-overlays\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -module-name generic_compat_alias -I %S/Inputs/custom-modules -typecheck -verify %s\n\n// REQUIRES: objc_interop\n// REQUIRES: OS=macosx\n\nimport ObjectiveC\nimport Fo...
dataset_sample\swift\apple_swift\test\ClangImporter\generic_compatibility_alias.swift
generic_compatibility_alias.swift
Swift
841
0.95
0.043478
0.5
vue-tools
867
2024-02-14T16:47:20.796365
GPL-3.0
true
bf149da764cb9fdc4f3c4a2000241df2
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/../IDE/Inputs/custom-modules %s -verify -enable-objc-interop\n\nimport ImportAsMember.Class\n\nfunc doIt(s: SomeClass) {\n s.doIt()\n}\n\n// Make sure we can't find doIt() via dynamic lookup.\nfunc doItDynamic(s: AnyObject) {\n s.doIt() //...
dataset_sample\swift\apple_swift\test\ClangImporter\import-as-member-objc.swift
import-as-member-objc.swift
Swift
379
0.95
0
0.222222
vue-tools
921
2023-08-24T19:09:03.142444
MIT
true
659ee79af8ce5224f0808fe15534e0f0
// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/modules\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -module-name ImportAsMemberSwiftVersioned -o %t/modules/ImportAsMemberSwiftVersioned_a.partial.swiftmodule -swift-version 4 -I %S/../IDE/Inputs/custom-modules -primary-file %S/Inputs/I...
dataset_sample\swift\apple_swift\test\ClangImporter\import-as-member-versioned.swift
import-as-member-versioned.swift
Swift
1,474
0.95
0
0.571429
awesome-app
909
2024-12-28T08:23:28.581354
BSD-3-Clause
true
281836406f910cd73674396039df7d78
// RUN: %empty-directory(%t.mcp)\n\n// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck -F %S/Inputs/frameworks -I %S/Inputs/custom-modules -module-cache-path %t.mcp %s >%t.txt 2>&1\n// RUN: %FileCheck %S/Inputs/custom-modules/ImportAsMember.h <%t.txt\n// RUN: %FileCheck %S...
dataset_sample\swift\apple_swift\test\ClangImporter\import-as-member.swift
import-as-member.swift
Swift
858
0.95
0
0.384615
vue-tools
358
2024-10-08T02:46:12.914157
MIT
true
5bc4dea0704c5819b6230ae7d94f92f8
// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/modules\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t/modules) -Xcc -DCGFLOAT_IN_COREFOUNDATION -DCGFLOAT_IN_COREFOUNDATION -emit-module -o %t/modules/CoreFoundation.swiftmodule %clang-importer-sdk-path/swift-modules/CoreFoundation.swift...
dataset_sample\swift\apple_swift\test\ClangImporter\import-cgfloat-api.swift
import-cgfloat-api.swift
Swift
1,359
0.95
0
0.529412
awesome-app
508
2024-06-22T21:13:52.950410
BSD-3-Clause
true
f108616a5a0b85e4208a86e0d26277df
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/complete-types.m -c -o %t/complete-types.o\n\n// RUN: %target-build-swift -Xfrontend -enable-upcom...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_availability.swift
incomplete_objc_types_availability.swift
Swift
2,127
0.95
0
0.461538
python-kit
147
2025-05-21T00:33:50.119841
BSD-3-Clause
true
ff0907abbe7aeccd4d7b817c59fa31b0
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/complete-types.m -c -o %t/complete-types.o\n\n// RUN: %target-build-swift -Xfrontend -enable-upcom...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_base_interface.swift
incomplete_objc_types_base_interface.swift
Swift
1,352
0.95
0
0.5
vue-tools
159
2025-01-02T14:41:59.571524
BSD-3-Clause
true
3d1b719784cd31d5ad0ec0279fe87cad
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/complete-types.m -c -o %t/complete-types.o\n\n// RUN: %target-build-swift -swift-version 6 -Xfront...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_base_interface_swift_6.swift
incomplete_objc_types_base_interface_swift_6.swift
Swift
1,235
0.95
0
0.473684
react-lib
2
2024-07-08T18:33:44.947604
Apache-2.0
true
ef4b86639a44884eeab4993f012e27e5
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/incomplete_objc_types_bridging_header.h -enable-upcoming-feature ImportObjcForwardDeclarations -enable-objc-interop -typecheck %s\n\n// REQUIRES: objc_interop\n// REQUIRES: swift_feature_ImportObjcForwardDeclarations\n\nlet foo = CFunctionReturningAForwardDec...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_bridging_header.swift
incomplete_objc_types_bridging_header.swift
Swift
378
0.95
0
0.6
vue-tools
513
2024-12-02T04:18:26.267796
BSD-3-Clause
true
3abf8b08ca854bd6f5b719cafa345167
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-2.m -c -o %t/incomplete-type-library-2.o\n// RUN: %target-clang %S/Inputs/...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_compatibility_complete_incomplete.swift
incomplete_objc_types_compatibility_complete_incomplete.swift
Swift
3,442
0.95
0.015873
0.285714
python-kit
813
2023-12-17T09:44:11.862411
BSD-3-Clause
true
2264db862d1c52f0761341990323ad92
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/complete-types.m -c -o %t/complete-types.o\n\n// RUN: %target-build-sw...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_compatibility_complete_incomplete_inter_file_clang_definition.swift
incomplete_objc_types_compatibility_complete_incomplete_inter_file_clang_definition.swift
Swift
1,594
0.95
0.025641
0.37931
python-kit
536
2025-06-16T02:28:56.401108
Apache-2.0
true
c380ad96afc1d8aca5a274db6c525180
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-build-swift -module-name CompleteSwiftTypes -parse-as-library %S/Inputs/custom-modules/IncompleteTypes/complete-swift-types.swift -emit-module -emit-module-path %t/CompleteSwiftTypes.swiftmodule\n// RUN: not %target-swift-frontend -enable-upcomin...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_compatibility_complete_incomplete_inter_file_swift_definition.swift
incomplete_objc_types_compatibility_complete_incomplete_inter_file_swift_definition.swift
Swift
2,222
0.95
0.121951
0.764706
awesome-app
109
2024-07-26T07:09:45.176145
Apache-2.0
true
0399eb292ecf73f0a20e24b0421ce7f0
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-2.m -c -o %t/incomplete-type-library-2.o\n// RUN: %target-clang %S/Inputs/...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_compatibility_incomplete_incomplete.swift
incomplete_objc_types_compatibility_incomplete_incomplete.swift
Swift
3,463
0.95
0.018868
0.384615
python-kit
232
2024-05-12T10:31:13.257668
MIT
true
2eb31bf4ad32502e98864b421f91ba77
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/complete-types.m -c -o %t/complete-types.o\n\n// RUN: %target-build-swift -Xfrontend -enable-upcom...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_full_availability.swift
incomplete_objc_types_full_availability.swift
Swift
1,553
0.95
0.071429
0.266667
node-utils
233
2023-11-29T15:54:12.676460
Apache-2.0
true
257a5b67f35368d10705938ee873b158
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-type-library-1.m -c -o %t/incomplete-type-library-1.o\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/complete-types.m -c -o %t/complete-types.o\n\n// RUN: %target-build-swift -swift-version 6 -Xfront...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_full_availability_swift_6.swift
incomplete_objc_types_full_availability_swift_6.swift
Swift
1,444
0.95
0.073171
0.241379
python-kit
91
2024-01-25T10:23:17.937046
BSD-3-Clause
true
06e6beb1d53b68783955f2d8eb48cc07
// RUN: not %target-swift-frontend -enable-upcoming-feature ImportObjcForwardDeclarations -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes %s -diagnostic-style llvm 2>&1 | %FileCheck %s\n// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-mo...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_importing_limitations_diagnostics.swift
incomplete_objc_types_importing_limitations_diagnostics.swift
Swift
3,315
0.95
0.090909
0.783784
awesome-app
826
2023-09-15T23:45:58.789640
GPL-3.0
true
09bf2ac00b30ae8ead63d62a6c8cd105
// RUN: not %target-swift-frontend -enable-upcoming-feature ImportObjcForwardDeclarations -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes %s 2>&1 | %FileCheck %s\n// RUN: not %target-swift-frontend -swift-version 6 -enable-objc-interop -typecheck -I %S/Inputs/custom-modules/IncompleteTypes %...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_no_reference.swift
incomplete_objc_types_no_reference.swift
Swift
1,896
0.95
0.1875
0.478261
react-lib
930
2023-11-23T10:54:32.479323
BSD-3-Clause
true
ceaff2fe358d17dd689de551340e9220
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-noroottype-protocol-library.m -c -o %t/incomplete-noroottype-protocol-library.o\n\n// RUN: %target-build-swift -Xfrontend -enable-upcoming-feature -Xfrontend ImportObjcForwardDeclarations -Xfrontend -enable-objc-inte...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_no_root_protocol.swift
incomplete_objc_types_no_root_protocol.swift
Swift
1,553
0.95
0.038462
0.578947
node-utils
961
2025-03-31T06:48:17.104000
Apache-2.0
true
75c083ec5b9dacc2a845ee955bdb5835
// RUN: %empty-directory(%t)\n// RUN: %target-clang %S/Inputs/custom-modules/IncompleteTypes/incomplete-nsproxy-library.m -c -o %t/incomplete-nsproxy-library.o\n\n// RUN: %target-build-swift -Xfrontend -enable-upcoming-feature -Xfrontend ImportObjcForwardDeclarations -Xfrontend -enable-objc-interop -I %S/Inputs/custom-...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_nsproxy.swift
incomplete_objc_types_nsproxy.swift
Swift
1,715
0.95
0.032258
0.478261
awesome-app
106
2024-02-02T14:12:49.157690
BSD-3-Clause
true
f947bd1e2cbd84eb899ac590849832e2
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -parse-as-library %S/Inputs/custom-modules/IncompleteTypes/complete-swift-types.swift -module-name CompleteSwiftTypes -emit-module -emit-module-path %t/CompleteSwiftTypes.swiftmodule\n// RUN: not %target-swift-frontend -enable-upcoming-feature ImportObjcForwardD...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_swift_definition_imported.swift
incomplete_objc_types_swift_definition_imported.swift
Swift
11,281
0.95
0.149425
0.920245
node-utils
880
2024-12-28T02:11:05.969009
GPL-3.0
true
80295b2a1ab3220f9d98471b0708978f
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -parse-as-library %S/Inputs/custom-modules/IncompleteTypes/complete-swift-types.swift -module-name CompleteSwiftTypes -emit-module -emit-module-path %t/CompleteSwiftTypes.swiftmodule\n// RUN: not %target-swift-frontend -enable-upcoming-feature ImportObjcForwardD...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_swift_definition_imported_implementationOnly.swift
incomplete_objc_types_swift_definition_imported_implementationOnly.swift
Swift
2,073
0.95
0.133333
0.888889
vue-tools
249
2024-10-12T16:42:17.748879
MIT
true
67495a948ead2fcdb47bf6ec78bc0202
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -parse-as-library %S/Inputs/custom-modules/IncompleteTypes/complete-swift-types.swift -module-name CompleteSwiftTypes -emit-module -emit-module-path %t/CompleteSwiftTypes.swiftmodule\n// RUN: not %target-swift-frontend -enable-upcoming-feature ImportObjcForwardD...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_swift_definition_imported_name_conflict.swift
incomplete_objc_types_swift_definition_imported_name_conflict.swift
Swift
5,517
0.95
0.125
0.909091
awesome-app
46
2025-01-25T21:19:02.761212
GPL-3.0
true
234efbfcd49691a1b8931e48e34d1f17
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -parse-as-library %S/Inputs/custom-modules/IncompleteTypes/complete-swift-types.swift -emit-module -emit-module-path %t/CompleteSwiftTypes.swiftmodule -emit-objc-header -emit-objc-header-path %t/CompleteSwiftTypes-Swift.h -emit-library -o %t/libCompleteSwiftType...
dataset_sample\swift\apple_swift\test\ClangImporter\incomplete_objc_types_swift_definition_imported_shadow_type_mismatch.swift
incomplete_objc_types_swift_definition_imported_shadow_type_mismatch.swift
Swift
1,177
0.95
0
0.727273
vue-tools
546
2023-11-02T18:36:45.957648
BSD-3-Clause
true
107b01a9c302d0fdcdafc306aa76d409
// RUN: %target-swift-frontend -typecheck -sdk "" -I %t -I %S/Inputs/custom-modules %s -verify\n\nimport IndirectFields\n\nfunc build_struct(a: Int32, c: Int32, d: Int32) -> StructWithIndirectField {\n return StructWithIndirectField(.init(a: a), c: c, d: d)\n}\n\nfunc build_struct(b: Int32, c: Int32, d: Int32) -> St...
dataset_sample\swift\apple_swift\test\ClangImporter\indirect_fields.swift
indirect_fields.swift
Swift
851
0.95
0
0.05
react-lib
445
2024-09-08T05:31:26.896389
BSD-3-Clause
true
2a11ea1b50d297092736454a763cf75a
// RUN: %target-swift-frontend -emit-silgen -I %S/Inputs/custom-modules %s | %FileCheck %s\n\n// https://github.com/apple/swift/issues/52971\n\nimport IndirectFields\n\nextension StructWithIndirectField2Copy {\n init(x: UInt32, y: UInt32) {\n self.init(.init(v: x + y))\n }\n\n init(s: StructWithIndirectField2) {\...
dataset_sample\swift\apple_swift\test\ClangImporter\indirect_field_codegen.swift
indirect_field_codegen.swift
Swift
2,210
0.95
0
0.4
node-utils
818
2024-04-20T05:36:38.304133
GPL-3.0
true
78dec2d5efdc71065a9990949957b724
// RUN: %target-swift-frontend -sdk "" -emit-sil %s -enable-objc-interop -import-objc-header %S/Inputs/inherited-protocols-sil.h -O\n\n// <rdar://problem/24547884> Protocol Extensions May Crash Swift Compiler when Whole-Module Optimization is Enabled\n\nextension SubProto {\n func foo() -> Impl {\n return Impl(chil...
dataset_sample\swift\apple_swift\test\ClangImporter\inherited-protocols-sil.swift
inherited-protocols-sil.swift
Swift
347
0.95
0
0.25
node-utils
622
2024-06-18T19:22:03.685827
Apache-2.0
true
b536b15919b8f3785c60e64bfc4e63f6
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend %clang-importer-sdk %S/Inputs/inlinable_bitfields_other.swift -emit-module -emit-module-path %t/inlinable_bitfields_other.swiftmodule\n// RUN: %target-swift-frontend %clang-importer-sdk -I %t %s -emit-ir -disable-llvm-optzns -O | %FileCheck %s -DINT=i%target-...
dataset_sample\swift\apple_swift\test\ClangImporter\inlinable_bitfields.swift
inlinable_bitfields.swift
Swift
547
0.95
0
0.555556
vue-tools
375
2025-06-20T00:01:40.185005
MIT
true
5350057dfdbc93631b03bc6501c9f581
// RUN: not %target-swift-frontend -typecheck -enable-objc-interop -import-objc-header %S/Inputs/invalid_bridging_header.h %s -diagnostic-style llvm -o - 2>&1 | %FileCheck %s\n\n// CHECK: 1:12: error: cannot find interface declaration for 'UndeclaredError'\n// CHECK: error: failed to import bridging header\n
dataset_sample\swift\apple_swift\test\ClangImporter\invalid_bridging_header.swift
invalid_bridging_header.swift
Swift
305
0.95
0.25
1
awesome-app
757
2025-07-06T17:25:07.930444
BSD-3-Clause
true
f013b0cabfb5054766842f4d9202cd30
// RUN: %empty-directory(%t/src)\n// RUN: split-file %s %t/src\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %t/src/main.swift \\n// RUN: -import-objc-header %t/src/Test.h \\n// RUN: -module-name main -I %t -verify\n\n// REQUIRES: objc_interop\n\n//--- Test.h\n@import Foundation;\n\nex...
dataset_sample\swift\apple_swift\test\ClangImporter\invalid_vars_should_have_error_type.swift
invalid_vars_should_have_error_type.swift
Swift
492
0.95
0
0.533333
node-utils
346
2025-01-12T02:16:36.021904
Apache-2.0
true
7f8d1fb021088ca7e75a4af24e22d127
// RUN: %swift %s -typecheck -parse-stdlib -dump-clang-diagnostics -target arm64e-apple-macos11.0 2>&1 | %FileCheck -check-prefix=CHECK-APPLE-M1 %s\n// RUN: %swift %s -typecheck -parse-stdlib -dump-clang-diagnostics -target arm64-apple-ios13.0-simulator 2>&1 | %FileCheck -check-prefix=CHECK-APPLE-M1 %s\n// CHECK-APPLE-...
dataset_sample\swift\apple_swift\test\ClangImporter\invocation-mcpu.swift
invocation-mcpu.swift
Swift
1,018
0.8
0
1
node-utils
436
2023-07-22T01:23:33.028393
MIT
true
289f0a0e0f0e117e6963a2b0cc1de17b
// RUN: %target-typecheck-verify-swift -import-objc-header %S/Inputs/issue-56636.h\n\n// REQUIRES: objc_interop\n\nextension Letter: Strideable {\n public func distance(to other: Self) -> RawValue.Stride {\n self.rawValue.distance( to: other.rawValue )\n }\n\n public func advanced(by n: RawValue.Stride) -> Self {...
dataset_sample\swift\apple_swift\test\ClangImporter\issue-56636.swift
issue-56636.swift
Swift
373
0.95
0
0.2
awesome-app
498
2024-08-03T10:44:36.236659
MIT
true
32fb9b13559538b0285766ec79d36d40
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s\n\nimport macros\n\nfunc verifyIsSigned(_: Int64) { }\nfunc verifyIsUnsigned(_: UInt64) { }\n\n// Windows will not convert a long long value that overflows into an unsigned\n// long long if it has the `ll` suffix of `i64` suffix. Ensur...
dataset_sample\swift\apple_swift\test\ClangImporter\long-long-promotion.swift
long-long-promotion.swift
Swift
442
0.95
0.125
0.583333
python-kit
907
2025-03-29T07:42:34.040404
Apache-2.0
true
bfc41fe2daba9e7c7274907c3f4c45e0
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck -verify %s\n\n// Most of these don't pass: rdar://110071334\n// %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-experimental-cxx-interop -enable-objc-interop -typecheck -verify %s\n\n@_exported import macros\n\nf...
dataset_sample\swift\apple_swift\test\ClangImporter\macros.swift
macros.swift
Swift
6,221
0.95
0.020833
0.058065
node-utils
304
2025-04-17T19:50:53.891253
MIT
true
c24c6d8902af4b6ae79ba27921a262ad
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -enable-objc-interop -import-objc-header %S/Inputs/macros_redef.h -emit-silgen %s | %FileCheck -check-prefix=NEGATIVE %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -enable-objc-inter...
dataset_sample\swift\apple_swift\test\ClangImporter\macros_redef.swift
macros_redef.swift
Swift
1,777
0.95
0.046875
0.222222
python-kit
733
2023-08-21T08:28:36.432438
BSD-3-Clause
true
74a4efa8fd4ea0a282a56873627ec687
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -sil-disable-pass=Simplification -Xllvm -sil-print-types -Xllvm -sil-print-debuginfo -emit-sil %s | %FileCheck %s\n\nimport macros\n\n// CHECK-LABEL: // testBitwiseOperations()\nfunc testBitwiseOperations() {\n // CHECK: %[[P0:.*]] = integer_literal ...
dataset_sample\swift\apple_swift\test\ClangImporter\macro_literals.swift
macro_literals.swift
Swift
9,474
0.95
0
0.640719
node-utils
882
2024-07-03T05:48:58.034454
BSD-3-Clause
true
7242dfbc82c9e46d82b14ec46165b88e
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -import-objc-header %S/Inputs/mirror_import_overrides_1.h -typecheck -verify %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -import-objc-header %S/Inputs/mirror_import_overrides_2.h -typecheck -ver...
dataset_sample\swift\apple_swift\test\ClangImporter\mirror_import_overrides.swift
mirror_import_overrides.swift
Swift
615
0.95
0
0.214286
awesome-app
267
2023-08-07T11:30:41.153081
MIT
true
2d69efb475df906b2f4fff0b170feb19
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil %s -verify\n// REQUIRES: objc_interop\n\nimport Foundation\n\nfunc mirrorInstancePropertyAsStaticMethod() {\n // Instance properties are mirrored as static _methods_. Make sure this works.\n let _: AnyClass = NSObject.classForCoder()\n}\n
dataset_sample\swift\apple_swift\test\ClangImporter\mirror_instance_property_static_method.swift
mirror_instance_property_static_method.swift
Swift
303
0.95
0
0.428571
python-kit
321
2023-08-08T03:07:45.153746
Apache-2.0
true
6be5cb1e776907a2b161df2607cbb7c4
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -emit-module -parse-as-library %S/Inputs/overlay.swift -sdk %S/Inputs -I %S/Inputs/custom-modules -module-name ClangModuleWithOverlay -o %t\n// RUN: %target-swift-frontend %s -sdk %S/Inputs -I %S/Inputs/custom-modules -I %t -typecheck\n// RUN: %target-swift...
dataset_sample\swift\apple_swift\test\ClangImporter\missing-overlay.swift
missing-overlay.swift
Swift
564
0.95
0.125
0.833333
awesome-app
286
2024-09-21T11:23:36.401908
MIT
true
7ad9b32db6b8cb9523a057840356e2a5
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -module-alias "//my/project:uncommon_name=CommonName" -typecheck -I %S/Inputs/custom-modules %s -Rmodule-loading 2> %t/load-result.output\n\n// RUN: %FileCheck %s -input-file %t/load-result.output -check-prefix CHECK-FOO\n// CHE...
dataset_sample\swift\apple_swift\test\ClangImporter\module-alias-escaped-identifier.swift
module-alias-escaped-identifier.swift
Swift
511
0.95
0
0.625
node-utils
252
2025-04-03T18:31:50.588713
MIT
true
d2b1bbf266c2ae73271199a2b3a9e040
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -module-alias UncommonName=CommonName -typecheck -I %S/Inputs/custom-modules %s -Rmodule-loading 2> %t/load-result.output\n\n// RUN: %FileCheck %s -input-file %t/load-result.output -check-prefix CHECK-FOO\n// CHECK-FOO: import U...
dataset_sample\swift\apple_swift\test\ClangImporter\module-alias.swift
module-alias.swift
Swift
447
0.95
0
0.625
react-lib
694
2024-08-18T01:50:56.082603
Apache-2.0
true
bfa680d1c142d868ee8b8b933971b17c
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 -import-objc-header %S/Inputs/move_only_types_cycle.h\n// REQUIRES: objc_interop\n// REQUIRES: OS=macosx\n\n// This test triggered a cyclic dependency between @objc getter selector\n// checking and some checking for move-only ...
dataset_sample\swift\apple_swift\test\ClangImporter\move_only_types_cycle.swift
move_only_types_cycle.swift
Swift
555
0.95
0.095238
0.375
vue-tools
861
2023-10-06T02:41:24.643108
Apache-2.0
true
2d2a59f72ac2cb0a8394e9d61c2123bf
// REQUIRES: objc_interop\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -import-objc-header %S/Inputs/nested_protocol_name.h -typecheck -verify %s\n\n// RUN: echo '#include "nested_protocol_name.h"' > %t.m\n// RUN: %target-swift-ide-test -source-filename %s -print-header -header-...
dataset_sample\swift\apple_swift\test\ClangImporter\nested_protocol_name.swift
nested_protocol_name.swift
Swift
1,543
0.95
0.139535
0.529412
python-kit
897
2024-09-09T16:05:15.847534
Apache-2.0
true
f9d20e7acf00284ea0afbbd7da8f86de
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules -primary-file %S/Inputs/MoreSwiftNewtypes_conformances.swift %S/Inputs/MoreSwiftNewtypes_tests.swift -module-name MoreSwiftNewtypes\n// RUN: %target-swift-frontend(mock-sdk: %clang-import...
dataset_sample\swift\apple_swift\test\ClangImporter\newtype_conformance.swift
newtype_conformance.swift
Swift
2,063
0.95
0.073171
0.322581
python-kit
926
2025-02-15T12:13:02.152532
Apache-2.0
true
65f18f59b8c31a0d927082af4d6db3db
// REQUIRES: OS=macosx\n//\n// This triggers a warning about ignored configuration macros; the warning then\n// attempts to emit an excerpt from one of the clang importer's fake buffers\n// (<swift-imported-modules>) which is full of 250kb of nulls. We want to check\n// that we do not emit a gigantic block of nulls to ...
dataset_sample\swift\apple_swift\test\ClangImporter\no-fake-source-buffer-excerpts.swift
no-fake-source-buffer-excerpts.swift
Swift
575
0.95
0
1
python-kit
972
2024-08-14T00:53:23.147920
BSD-3-Clause
true
f60e7bb78714cab0450d4af86b714fe7
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -enable-objc-interop -I %S/Inputs/no-import-objc %s -verify\n\n// Note that we don't import ObjectiveC.\nimport People\n\nclass MyFrank : Frank {\n override func frank() {}\n}\n
dataset_sample\swift\apple_swift\test\ClangImporter\no-import-objc.swift
no-import-objc.swift
Swift
243
0.95
0.125
0.333333
awesome-app
179
2024-02-29T08:18:53.661058
GPL-3.0
true
afd29f34a0ae4f6871f1daab303290fd
/// Don't crash when there's no NSObject protocol.\n/// rdar://problem/34597302\n\n// RUN: %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/no-nsobject-protocol.h -enable-objc-interop\n\nvar a = Bar()!\nvar b = a.barFunc()!;\nb.nsobjectFunc()\nb.fooFunc()\n
dataset_sample\swift\apple_swift\test\ClangImporter\no-nsobject-protocol.swift
no-nsobject-protocol.swift
Swift
266
0.95
0
0.428571
awesome-app
338
2025-06-05T18:20:10.807476
GPL-3.0
true
8a73c4021ad4ff479c30ce1f08041417
// RUN: rm -rf %t\n// RUN: %target-swift-frontend -typecheck -sdk "" -I %S/Inputs/custom-modules %s\n\n// Verify that we can still import modules even without an SDK.\nimport ExternIntX\n\nlet y: CInt = ExternIntX.x\n
dataset_sample\swift\apple_swift\test\ClangImporter\no-sdk.swift
no-sdk.swift
Swift
210
0.95
0
0.6
python-kit
946
2024-05-10T18:22:25.262241
GPL-3.0
true
d45935f303052894db6e4fa4695545d6
// RUN: %empty-directory(%t)\n\n// Enable -Werror=non-modular-include-in-framework-module\n// RUN: not %target-swift-frontend -enable-objc-interop -typecheck %/s -I %S/Inputs/non-modular -F %S/Inputs/non-modular -Xcc -Werror=non-modular-include-in-framework-module -diagnostic-style llvm 2>&1 | %FileCheck --check-prefix...
dataset_sample\swift\apple_swift\test\ClangImporter\non-modular-include.swift
non-modular-include.swift
Swift
1,356
0.95
0
0.846154
awesome-app
964
2024-07-20T23:55:45.731459
Apache-2.0
true
67510222bfa0704baf53df77f75435c9
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck -I %S/Inputs/custom-modules %s -import-underlying-module -verify\n\nimport CoreCooling\n\nfunc testSomeClass(_ sc: SomeClass, osc: SomeClass?) {\n let ao1: Any = sc.methodA(osc)\n _ = ao1\n if sc.methodA(osc) == nil { } // ...
dataset_sample\swift\apple_swift\test\ClangImporter\nullability.swift
nullability.swift
Swift
2,814
0.95
0.085714
0.214286
node-utils
757
2024-07-11T19:42:59.496719
MIT
true
95cd58367f03bf60e8e3e6b597b8fafd
// RUN: %empty-directory(%t)\n// RUN: %build-clang-importer-objc-overlays\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-silgen -I %S/Inputs/custom-modules %s | %FileCheck %s\n\n// REQUIRES: objc_interop\n\nimport nullability\nimport Foundation\n\n// null_resettable properties.\n/...
dataset_sample\swift\apple_swift\test\ClangImporter\nullability_silgen.swift
nullability_silgen.swift
Swift
700
0.95
0.043478
0.333333
react-lib
233
2024-12-20T19:37:29.412512
BSD-3-Clause
true
17e2850596003349f63a3e7e09413911
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module %S/Inputs/overlay_extension_initializer.swift -Xcc -isystem -Xcc %S/Inputs/custom-modules -module-name ImageInitializers -o %t\n// RUN: not %target-swift-frontend -I %S/Inputs/custom-modules -I %t -typecheck -primar...
dataset_sample\swift\apple_swift\test\ClangImporter\objc-cross-module-override.swift
objc-cross-module-override.swift
Swift
1,085
0.95
0.105263
0.733333
node-utils
939
2024-06-13T04:35:31.209151
Apache-2.0
true
b16869aede8b8f08c222ef3f82b392d3
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules %s -verify -verify-additional-file %swift_src_root/test/Inputs/clang-importer-sdk/usr/include/ObjCConcurrency.h -strict-concurrency=targeted -parse-as-library -enable-experimental-feature SendableCompletionHandlers\n\n/...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_async.swift
objc_async.swift
Swift
12,972
0.95
0.051724
0.092063
node-utils
560
2024-07-25T14:14:08.885793
GPL-3.0
true
ac1bbe0e761732a620edb146e65887d6
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules %s -verify\n\n// REQUIRES: objc_interop\nimport Foundation\nimport ObjCConcurrency\n\nfunc testSlowServerSynchronous(slowServer: SlowServer) {\n // synchronous version\n let _: Int = slowServer.doSomethingConflicted("...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_async_attrs_noconcurrency.swift
objc_async_attrs_noconcurrency.swift
Swift
745
0.95
0
0.157895
node-utils
973
2024-12-17T15:58:51.764061
MIT
true
c8330ca096f5fdfc0f6804c898c3da79
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules -disable-availability-checking %s -verify\n\n// REQUIRES: objc_interop\n// REQUIRES: concurrency\nimport Foundation\nimport ObjCConcurrency\n\n// Conform via async method\nclass C1: ConcurrentProtocol {\n func askUser...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_async_conformance.swift
objc_async_conformance.swift
Swift
6,384
0.95
0.172185
0.262295
vue-tools
606
2024-03-09T21:01:31.855412
MIT
true
9a706a0331282c5d632a33bb69001849
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules %s -verify\n\n// REQUIRES: objc_interop\n// REQUIRES: concurrency\n// REQUIRES: OS=macosx\n\nimport Foundation\nimport ObjCConcurrency\n\n@available(macOS 12.0, *)\nfunc testSlowServer(slowServer: SlowServer) async thr...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_async_macos.swift
objc_async_macos.swift
Swift
486
0.95
0.076923
0.4
react-lib
717
2023-11-28T04:41:44.032126
BSD-3-Clause
true
724f756280264325350d27f94d21efb1
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules %s -verify\n\n// REQUIRES: objc_interop\n\n// Test the use of Objective-C categories on the value types that\n// bridge to Objective-C class types.\nimport Foundation\nimport AppKit\n\nfunc testStringBridge(_ str: Strin...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_bridge_categories.swift
objc_bridge_categories.swift
Swift
1,322
0.95
0.026316
0.2
awesome-app
497
2024-08-16T23:58:05.593438
Apache-2.0
true
c11fe2f277f59e4ed60b49d7dfdb29ec
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -verify-additional-file %clang-importer-sdk-path/usr/include/objc_structs.h -verify %s\n\n// REQUIRES: objc_interop\n\nimport Foundation\nimport objc_structs\n\nextension String {\n func onlyOnString() -> String { return self }\...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_bridging.swift
objc_bridging.swift
Swift
2,239
0.95
0.013158
0.089286
node-utils
513
2024-06-06T01:01:34.339249
MIT
true
76c106df2790165554e428f271364e84
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -I %S/../Inputs/ObjCBridging %S/../Inputs/ObjCBridging/Appliances.swift -module-name Appliances -o %t\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/../Inputs/ObjCBridging -I %t -p...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_bridging_custom.swift
objc_bridging_custom.swift
Swift
18,797
0.95
0.07265
0.30102
python-kit
693
2023-09-07T20:34:26.253120
Apache-2.0
true
72639082dc8954e85ba9275372523c59
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -verify -swift-version 4 -I %S/Inputs/custom-modules %s\n\n// REQUIRES: objc_interop\n\nimport Foundation\nimport objc_generics\nimport ObjCBridgeNonconforming\n\nfunc testNSArrayBridging(_ hive: Hive) {\n _ = hive.bees as [Bee]...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_bridging_generics.swift
objc_bridging_generics.swift
Swift
17,350
0.95
0.200472
0.171662
node-utils
539
2025-05-04T19:32:46.043585
MIT
true
2febbed3d70a883069cbce88a2187454
// RUN: %empty-directory(%t)\n// RUN: %build-clang-importer-objc-overlays\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -typecheck -I %S/Inputs/custom-modules %s -verify\n\n// REQUIRES: objc_interop\n\nimport ObjCSubscripts\n\nfunc testClass() {\n _ = NoClassSubscript[0] // expected-e...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_class_subscript.swift
objc_class_subscript.swift
Swift
1,319
0.95
0
0.173913
vue-tools
386
2025-03-07T11:10:31.398622
GPL-3.0
true
26199d2b48451ee8c304ad2e2334a20e
// RUN: %target-swift-frontend -typecheck %s -enable-objc-interop -import-objc-header %S/Inputs/objc_curried_method.h\n\n// rdar://problem/32588152\n\nfunc apply(_: (Foo) -> () -> Void) {}\n\napply(Foo.someMethod)\n\n
dataset_sample\swift\apple_swift\test\ClangImporter\objc_curried_method.swift
objc_curried_method.swift
Swift
209
0.95
0
0.5
awesome-app
574
2025-05-31T04:07:35.113733
Apache-2.0
true
2410c688c5d6b1842b1360d828a460f4
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck %s -verify\n\nimport ObjectiveC\n\nfunc instanceMethod(_ b: B) {\n // Notes for labeling mismatch candidates are now attached to each individual declaration\n b.method(1, 2.5) // expected-error {{no exact matches in call to ...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_diags.swift
objc_diags.swift
Swift
343
0.95
0.125
0.333333
awesome-app
756
2023-11-25T15:13:57.186957
GPL-3.0
true
4edc6a3ab7a426085868e1b52302fb61
// RUN: %target-swift-frontend-verify -typecheck %s -enable-objc-interop -import-objc-header %S/../Inputs/objc_direct.h\n\n// REQUIRES: objc_interop\n\nvar something = Bar() as AnyObject\n\nsomething.directProperty = 123 // expected-error {{value of type 'AnyObject' has no member 'directProperty'}}\nlet _ = someth...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_direct.swift
objc_direct.swift
Swift
1,175
0.95
0.037037
0.222222
awesome-app
847
2023-10-08T05:18:24.261133
MIT
true
88667a0cddd9b38d83f0ea138e4e83e6
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify\n\n// REQUIRES: objc_interop\n\nimport Foundation\n\nfunc useAnyObject(_ obj: AnyObject) {\n _ = obj.isMakingHoney\n}\n
dataset_sample\swift\apple_swift\test\ClangImporter\objc_dynamic_lookup.swift
objc_dynamic_lookup.swift
Swift
195
0.95
0
0.333333
react-lib
118
2024-03-03T07:27:18.804812
MIT
true
aedb8c5a1eb21b576903ad40c5be799e
// RUN: %empty-directory(%t)\n// RUN: %build-clang-importer-objc-overlays\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -target %target-cpu-apple-macosx51 -typecheck %s -verify\n\n// REQUIRES: OS=macosx\n// REQUIRES: objc_interop\n\nimport AppKit\nimport NotificationCenter\n\nfunc test...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_factory_method.swift
objc_factory_method.swift
Swift
5,318
0.95
0.065421
0.25
awesome-app
82
2023-10-31T11:41:52.192111
BSD-3-Clause
true
5b9c73b0a09664995142c46ef1fda615
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify\n\n// REQUIRES: objc_interop\n\nimport Foundation\n\nfunc testDictionary() {\n // -[NSDictionary init] returns non-nil.\n var dictNonOpt = NSDictionary()\n _ = dictNonOpt! // expected-error {{cannot force unwrap value of non-optional...
dataset_sample\swift\apple_swift\test\ClangImporter\objc_failable_inits.swift
objc_failable_inits.swift
Swift
1,397
0.95
0.166667
0.344828
react-lib
90
2023-09-09T13:57:36.147854
BSD-3-Clause
true
be6b458ee1b0fe1f5b0b5aae99a80b35