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
// REQUIRES: objc_interop\n\n// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n// RUN: mkdir -p %t/cas\n\n// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/clang-module-cache %s -o %t/deps.json -I %S/../ScanDependencies/Inputs/CHeaders -I %S/....
dataset_sample\swift\apple_swift\test\CAS\module_deps_include_tree.swift
module_deps_include_tree.swift
Swift
7,160
0.95
0
0.974843
vue-tools
495
2024-06-10T23:51:01.786936
BSD-3-Clause
true
0fdf27d051554da5a36505e30e5adb73
// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n\n// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/clang-module-cache %s -o %t/deps.json -module-name Test\n\n// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interfa...
dataset_sample\swift\apple_swift\test\CAS\module_hash.swift
module_hash.swift
Swift
691
0.8
0
0.888889
node-utils
525
2024-08-25T08:21:17.402456
MIT
true
21a4a564737060ef5cadbb1716d153e3
// REQUIRES: objc_interop\n\n// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n// RUN: mkdir -p %t/cas\n\n// RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t/clang-module-cache %s -o %t/deps.json \\n// RUN: -I %S/../ScanDependencies/Inputs/CHeaders -I %S/../ScanDependencies/Inpu...
dataset_sample\swift\apple_swift\test\CAS\module_path_remap.swift
module_path_remap.swift
Swift
2,144
0.95
0
1
python-kit
825
2025-02-20T16:46:21.062748
GPL-3.0
true
7fb7e38231e6dd49a5382b50b57b6953
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -emit-module -module-name B -o %t/B.swiftmodule -swift-version 5 \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: -emit-module-interface-path %t/i...
dataset_sample\swift\apple_swift\test\CAS\module_trace.swift
module_trace.swift
Swift
2,657
0.95
0
0.904762
python-kit
712
2025-05-01T13:00:26.522241
GPL-3.0
true
03c46b84b8d45a20cf069c00c0b732ec
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/main.swift -o...
dataset_sample\swift\apple_swift\test\CAS\no-cas-path-dependency.swift
no-cas-path-dependency.swift
Swift
3,483
0.95
0.030303
0.846154
node-utils
769
2024-02-22T23:12:48.706624
GPL-3.0
true
cf5840e2b72bb4cf2a9f1d50ae5aa7da
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/main.swift -o...
dataset_sample\swift\apple_swift\test\CAS\path_remap.swift
path_remap.swift
Swift
4,389
0.95
0
0.84058
python-kit
290
2023-08-01T21:10:33.705611
BSD-3-Clause
true
74bdb38446b7947d1cb2d1e233da69c5
// REQUIRES: objc_interop\n\n// RUN: %empty-directory(%t)\n// RUN: mkdir -p %t/clang-module-cache\n// RUN: mkdir -p %t/cas\n\n// RUN: %target-swift-frontend -scan-dependencies -module-load-mode prefer-interface -module-cache-path %t/clang-module-cache %s \\n// RUN: -o %t/deps.json -I %S/../ScanDependencies/Inputs/CHe...
dataset_sample\swift\apple_swift\test\CAS\plugin_cas.swift
plugin_cas.swift
Swift
6,062
0.95
0
0.972789
awesome-app
762
2024-02-08T08:03:19.296713
MIT
true
7fca468c64329ed093775a71af1b2382
// UNSUPPORTED: OS=windows-msvc\n\n// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n// RUN: cd %t && ln -s private src\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implici...
dataset_sample\swift\apple_swift\test\CAS\simlink_inputs.swift
simlink_inputs.swift
Swift
3,364
0.95
0
0.849057
awesome-app
914
2023-12-16T13:21:48.437604
Apache-2.0
true
b498c372d9c9ea636e5295e1d39f4c86
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %t/a.swift %t/b.swift %t/c.swift -o %t/deps.json -swift-v...
dataset_sample\swift\apple_swift\test\CAS\swift-scan-diagnostics-batch.swift
swift-scan-diagnostics-batch.swift
Swift
3,339
0.95
0
1
vue-tools
427
2023-07-28T04:28:00.528624
GPL-3.0
true
4c47d7101ea80fba5bcb0324ce309c58
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %s -o %t/deps.json -swift-version 5 -cache-compile-job -cas-path %t/cas\n\n// RUN: ...
dataset_sample\swift\apple_swift\test\CAS\swift-scan-diagnostics.swift
swift-scan-diagnostics.swift
Swift
3,373
0.95
0.015873
1
react-lib
605
2025-01-02T16:17:11.132284
Apache-2.0
true
55fe3ecd166b07f7eb03030da7de96bb
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \\n// RUN: %s -o %t/deps.json -swift-version 5 -cache-compile-job -cas-path %t/cas\n\n// RUN: ...
dataset_sample\swift\apple_swift\test\CAS\swift-scan-response-file.swift
swift-scan-response-file.swift
Swift
2,353
0.95
0.022727
0.966667
node-utils
33
2023-11-14T05:28:04.154684
BSD-3-Clause
true
dc4c1f3275b4960e5b51f7e3258c2820
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -parse-stdlib -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: %t/main.swift -o...
dataset_sample\swift\apple_swift\test\CAS\symbol-graph.swift
symbol-graph.swift
Swift
4,065
0.95
0.014493
0.888889
python-kit
747
2024-02-05T21:11:44.410418
MIT
true
dc9d34a208ffccf9b0245697dc905918
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n// RUN: sed -e "s@VFS_DIR@%{/t:regex_replacement}/vfs@g" -e "s@EXTERNAL_DIR@%{/t:regex_replacement}/hidden@g" %t/base.yaml > %t/overlay.yaml\n\n// RUN: %target-swift-frontend -emit-module -module-name B -o %t/B.swiftmodule -swift-version 5 \\n// RUN: -disable-im...
dataset_sample\swift\apple_swift\test\CAS\vfsoverlay.swift
vfsoverlay.swift
Swift
2,199
0.95
0
0.608696
vue-tools
145
2024-08-26T08:08:35.242161
Apache-2.0
true
8df76e9f863c5be35860b8c9ae713265
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: %t/test.swift -o %t/deps.json ...
dataset_sample\swift\apple_swift\test\CAS\Xcc_args.swift
Xcc_args.swift
Swift
2,242
0.95
0.014493
0.696429
python-kit
694
2025-03-01T10:30:05.155550
MIT
true
72dd43dd8bc600938ab8f787f064aa08
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n\n// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache -O \\n// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \\n// RUN: %t/test.swift -o %t/deps.json ...
dataset_sample\swift\apple_swift\test\CAS\Xcc_objc_direct.swift
Xcc_objc_direct.swift
Swift
1,937
0.95
0.021277
0.777778
vue-tools
606
2024-01-12T14:08:28.186751
GPL-3.0
true
ddf59a863da1bc060164f8e1add390ab
// Casts.swift - Tests for conversion between types.\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for licens...
dataset_sample\swift\apple_swift\test\Casting\Casts.swift
Casts.swift
Swift
32,725
0.95
0.076853
0.224066
node-utils
234
2024-08-10T11:32:15.842703
MIT
true
177c448ed42fa8a52bf81bb33447e93c
// Casts.swift - Tests for conversion between types.\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for licens...
dataset_sample\swift\apple_swift\test\Casting\Cast_Blocks.swift
Cast_Blocks.swift
Swift
2,741
0.95
0.052632
0.630769
node-utils
312
2023-09-23T00:00:14.021933
Apache-2.0
true
4d7a3079bb81e94327f6e5505124adcf
// RUN: %empty-directory(%t) \n\n// 1. functional test:\n\n// RUN: %target-build-swift -parse-as-library -wmo -emit-module -emit-module-path=%t/Classes.swiftmodule -module-name=Classes %S/Inputs/classes.swift -c -o %t/classes.o\n// RUN: %target-build-swift -parse-as-library -wmo -enable-library-evolution -emit-module -...
dataset_sample\swift\apple_swift\test\Casting\fast_class_casts.swift
fast_class_casts.swift
Swift
6,066
0.95
0.028249
0.444444
react-lib
662
2025-01-21T01:03:55.066478
GPL-3.0
true
6c28772e4eb965d1c036a97fc44e09a5
// ObjCClassConstants.swift - Tests for class constant casts w/ Obj-C\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICEN...
dataset_sample\swift\apple_swift\test\Casting\ObjCClassConstants.swift
ObjCClassConstants.swift
Swift
2,724
0.95
0.1125
0.571429
awesome-app
956
2024-08-20T07:00:25.893125
Apache-2.0
true
d0219a81d3920f89c8ebfa7525eee75e
// ParameterizedExistentials.swift - Casting tests for generalized existentials\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift...
dataset_sample\swift\apple_swift\test\Casting\ParameterizedExistentials.swift
ParameterizedExistentials.swift
Swift
3,495
0.95
0.04386
0.340426
react-lib
850
2024-05-25T05:32:30.237512
BSD-3-Clause
true
39cf8bcd0ee8807b07fefb88a3589cbd
// RUN: %empty-directory(%t) \n\n// 1. functional test:\n\n// RUN: %target-build-swift %s -emit-executable -o %t/a.out\n// RUN: %target-codesign %t/a.out\n// RUN: %target-run %t/a.out | %FileCheck %s\n\n// 2. check if the generated IR looks like what we expect:\n\n// RUN: %target-swift-frontend %s -emit-ir -g -o - | %F...
dataset_sample\swift\apple_swift\test\Casting\raw_identifier_tuple_elements.swift
raw_identifier_tuple_elements.swift
Swift
1,430
0.95
0.115385
0.292683
python-kit
253
2024-06-19T09:38:22.225792
BSD-3-Clause
true
9b269f64bd32dcc7f5995ae3ef5be8eb
// RUN: %empty-directory(%t)\n//\n// RUN: %target-build-swift -swift-version 5 -g -Onone -module-name a %s -o %t/a.swift5.Onone.out\n// RUN: %target-codesign %t/a.swift5.Onone.out\n// RUN: %target-run %t/a.swift5.Onone.out\n//\n// RUN: %target-build-swift -swift-version 6 -g -Onone -module-name a %s -o %t/a.swift6.On...
dataset_sample\swift\apple_swift\test\Casting\TypeOf_ExtendedExistential.swift
TypeOf_ExtendedExistential.swift
Swift
2,291
0.95
0.064103
0.328358
python-kit
54
2024-04-20T06:02:04.839554
Apache-2.0
true
6751eb7d1443e44bba5d069460e51ac7
// RUN: %target-typecheck-verify-swift -debug-cycles 2>&1 | %FileCheck --allow-empty %s\n\n// Verify that extension lookups don't cause cyclic dependencies.\n\n// expected-no-diagnostics\n\nstruct A { }\nextension A { }\n\n// CHECK-NOT: CYCLE DETECTED\n\n
dataset_sample\swift\apple_swift\test\CircularReferences\extensions.swift
extensions.swift
Swift
244
0.8
0
0.666667
awesome-app
294
2025-01-10T01:58:39.517799
GPL-3.0
true
8b9174cee46d4b2469f1475a80f1a103
// RUN: %target-typecheck-verify-swift\n\ntypealias A = B // expected-error {{type alias 'A' references itself}} expected-note {{while resolving type 'B'}} expected-note {{through reference here}}\ntypealias C = D // expected-note {{through reference here}} expected-note {{while resolving type 'D'}} expected-note {{thr...
dataset_sample\swift\apple_swift\test\CircularReferences\global_typealias.swift
global_typealias.swift
Swift
641
0.8
0.666667
0.2
vue-tools
321
2025-07-09T14:50:05.105648
Apache-2.0
true
6f204fd9088a16c4231f6a3685caac52
// RUN: %target-typecheck-verify-swift -debug-cycles > %t.log 2>&1\n// RUN: not grep "CYCLE DETECTED" %t.log | count 0\n\n// REQUIRES: objc_interop\n\n// Verify that isObjC computation doesn't cause cyclic dependencies.\n\n// expected-no-diagnostics\n\nclass A {\n @objc func foo() { }\n}\n\n\n@objc class B {\n @objc ...
dataset_sample\swift\apple_swift\test\CircularReferences\objc.swift
objc.swift
Swift
436
0.95
0.12
0.277778
react-lib
978
2023-08-27T08:14:44.537345
Apache-2.0
true
ae2c970767440a2c73d85c4021727270
// RUN: %target-typecheck-verify-swift -debug-cycles 2>&1 | %FileCheck --allow-empty %s\n\n// Verify that protocol where clause lookups don't cause cyclic dependencies.\n\n// expected-no-diagnostics\n\nclass C { }\nprotocol Q { }\nprotocol P where Self : Q, Self : C { }\n\n// CHECK-NOT: CYCLE DETECTED\n\n
dataset_sample\swift\apple_swift\test\CircularReferences\protocols.swift
protocols.swift
Swift
294
0.95
0.083333
0.571429
python-kit
153
2025-05-26T03:55:45.066841
GPL-3.0
true
eb3c01d0cd59815412ba3948ee423b0e
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s\n\n// REQUIRES: OS=macosx\n// REQUIRES: objc_interop\n\n// The accessibility APIs are handled differently. A class might conform to both \n// NSAccessibility (containing accessibility properties) and individual \n// accessibility protoc...
dataset_sample\swift\apple_swift\test\ClangImporter\accessibility_framework.swift
accessibility_framework.swift
Swift
1,042
0.95
0.103448
0.478261
python-kit
106
2025-03-08T07:52:09.915998
MIT
true
c8e0388e49011f5c297c883dc86f0d8f
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -enable-objc-interop -import-objc-header %S/Inputs/attr-objc_subclassing_restricted.h %s -swift-version 5 -verify\n\n// No errors in Swift 3 and 4 modes.\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -enable-objc-intero...
dataset_sample\swift\apple_swift\test\ClangImporter\attr-objc_subclassing_restricted.swift
attr-objc_subclassing_restricted.swift
Swift
532
0.95
0.285714
0.6
node-utils
906
2024-02-24T23:56:06.943127
MIT
true
636490449d3c5fa4aafd6a9404126371
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -typecheck %s \\n// RUN: -verify -verify-additional-file %S/Inputs/custom-modules/ConflictingNames.h -verify-ignore-unknown\n\n// REQUIRES: objc_interop\n\nimport ConflictingNames // expected-error {{could not build Objective-...
dataset_sample\swift\apple_swift\test\ClangImporter\attr-swift_name-errors.swift
attr-swift_name-errors.swift
Swift
345
0.95
0
0.75
awesome-app
547
2024-11-23T01:46:29.185071
GPL-3.0
true
81019a9ca8fc806c288b4baee212f4b9
// RUN: %empty-directory(%t.mcp)\n// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -Xcc -w -typecheck %s -diagnostic-style llvm -module-cache-path %t.mcp 2>&1 | %FileCheck %s\n\n// REQUIRES: objc_interop\n\n// CHECK-NOT: warning:\n\nimport ObjCIRExtras\n\nfunc test(_ i: Int)...
dataset_sample\swift\apple_swift\test\ClangImporter\attr-swift_name.swift
attr-swift_name.swift
Swift
1,938
0.95
0.159091
0.757576
node-utils
977
2024-05-02T08:07:28.660367
Apache-2.0
true
8793302d08ad5f4d141086cea7ae7854
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -I %/S/Inputs/custom-modules -Xcc -w -typecheck -verify %s -verify-additional-file %/S/Inputs/custom-modules%{fs-sep}SwiftName.h\n\nimport SwiftName\n\nfunc test() {\n // This particular instance method mapping previously caused a crash...
dataset_sample\swift\apple_swift\test\ClangImporter\attr-swift_name_renaming-objc.swift
attr-swift_name_renaming-objc.swift
Swift
1,541
0.95
0
0.142857
python-kit
835
2025-03-15T10:23:20.456260
MIT
true
fea7f7f3543765f1473840ccfde8cac9
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -Xcc -w -typecheck -verify %s\n\nimport SwiftName\n\nfunc test() {\n // Function name remapping\n drawString("hello", x: 3, y: 5)\n drawString("hello", 3, 5) // expected-error{{missing argument labels 'x:y:' in call}}\n\n // E...
dataset_sample\swift\apple_swift\test\ClangImporter\attr-swift_name_renaming.swift
attr-swift_name_renaming.swift
Swift
1,814
0.95
0
0.266667
node-utils
728
2024-04-30T00:27:03.527646
BSD-3-Clause
true
0a6004cbc12a0e9a2059de54d7fa20bf
// 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) -I %S/Inputs/custom-modules -typecheck %s -verify\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -emit-ir %...
dataset_sample\swift\apple_swift\test\ClangImporter\attr-swift_private.swift
attr-swift_private.swift
Swift
4,704
0.95
0.087591
0.446429
python-kit
102
2025-06-10T01:23:56.036681
GPL-3.0
true
f57720742a57a05025291f524de97f47
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend %s -sdk %S/Inputs -Fsystem %S/Inputs/System/Library/Frameworks -enable-objc-interop -I %S/Inputs/custom-modules -disable-all-autolinking -module-name AutolinkDisableFrameworks -emit-ir -o %t/test.ll\n// RUN: cat %t/test.ll | %FileCheck %s\n\n// Linux uses a...
dataset_sample\swift\apple_swift\test\ClangImporter\autolink-disable-all.swift
autolink-disable-all.swift
Swift
641
0.95
0
0.615385
python-kit
832
2023-07-28T05:00:30.510914
GPL-3.0
true
524c536c2efd62d5ba30abf5ce960f69
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend %s -sdk %S/Inputs -Fsystem %S/Inputs/System/Library/Frameworks -enable-objc-interop -I %S/Inputs/custom-modules -disable-autolink-frameworks -module-name AutolinkDisableFrameworks -emit-ir -o %t/test.ll\n// RUN: cat %t/test.ll | %FileCheck %s\n\n// Linux us...
dataset_sample\swift\apple_swift\test\ClangImporter\autolink-disable-frameworks.swift
autolink-disable-frameworks.swift
Swift
1,127
0.95
0
0.761905
awesome-app
349
2025-05-19T20:09:43.294153
Apache-2.0
true
7a5161965550d57bb02ac603cf6e7aec
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend %s -sdk %S/Inputs -Fsystem %S/Inputs/System/Library/Frameworks -enable-objc-interop -I %S/Inputs/custom-modules -disable-autolink-library Stock -disable-autolink-library UnderlyingClangLibrary -module-name AutolinkDisableFrameworks -emit-ir -o %t/test.ll\n/...
dataset_sample\swift\apple_swift\test\ClangImporter\autolink-disable-library.swift
autolink-disable-library.swift
Swift
1,121
0.95
0
0.736842
node-utils
96
2025-02-12T17:38:37.117172
GPL-3.0
true
0cf3b8b6b5059166b814f471f5668b83
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend %s -sdk %S/Inputs -Fsystem %S/Inputs/System/Library/Frameworks -enable-objc-interop -I %S/Inputs/custom-modules -emit-ir -o - | %FileCheck %s\n\n// RUN: %target-swift-frontend -emit-module %S/Inputs/overlay.swift -sdk %S/Inputs -module-link-name SwiftOverla...
dataset_sample\swift\apple_swift\test\ClangImporter\autolinking.swift
autolinking.swift
Swift
2,199
0.95
0
0.774194
awesome-app
711
2024-09-27T05:08:56.852546
Apache-2.0
true
1c389cae8d659fec3b42f4678ed9fb0f
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s -verify-ignore-unknown\n\n// REQUIRES: objc_interop\n\nimport Dispatch\nimport Foundation\nimport stdio\nimport AvailabilityExtras\n\n// Test if an instance method marked __attribute__((unavailable)) on\n// t...
dataset_sample\swift\apple_swift\test\ClangImporter\availability.swift
availability.swift
Swift
13,456
0.95
0.247573
0.036585
vue-tools
614
2024-11-16T15:59:47.619299
Apache-2.0
true
0ea5b808dc7923f02e1e9fb1d8c1f362
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -application-extension %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -application-extension-library %s\n\n// Check the exact error message, which requires a regex match\n// RUN: not %target-swift-fron...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_app_extension.swift
availability_app_extension.swift
Swift
721
0.95
0.071429
0.6
awesome-app
113
2025-03-18T06:28:04.459107
Apache-2.0
true
07f460dec52aba5bfc547ce456a2df4a
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify \\n// RUN: -import-objc-header %S/Inputs/availability_domains_bridging_header.h \\n// RUN: -I %S/../Inputs/custom-modules/availability-domains \\n// RUN: -enable-experimental-feature CustomAvailability...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_custom_domains.swift
availability_custom_domains.swift
Swift
2,859
0.95
0
0.4
python-kit
279
2023-12-17T06:12:46.314075
MIT
true
fc849e0e144f53782c72040d5d1461bf
// RUN: %swift -typecheck -verify -target %target-cpu-apple-macosx51 %clang-importer-sdk -I %S/Inputs/custom-modules %s %S/Inputs/availability_implicit_macosx_other.swift\n// RUN: not %swift -typecheck -target %target-cpu-apple-macosx51 %clang-importer-sdk -I %S/Inputs/custom-modules %s %S/Inputs/availability_implicit_...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_implicit_macosx.swift
availability_implicit_macosx.swift
Swift
4,378
0.95
0.073394
0.240964
vue-tools
788
2024-01-29T13:33:02.480928
Apache-2.0
true
fbb3cca5791ab9bdbb1bff480cc92669
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -application-extension %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typechec...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_ios.swift
availability_ios.swift
Swift
754
0.95
0
0.333333
python-kit
713
2025-02-24T12:28:24.535555
GPL-3.0
true
9c2d188c03dc53209b538bcd9ce7f48c
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -target %target-cpu-apple-ios13.1-macabi -typecheck -verify -I %S/Inputs/custom-modules %s\n\n// REQUIRES: maccatalyst_support\n\nimport Foundation\nimport AvailabilityExtras\n\nfunc test_unavailable_because_deprecated() {\n print(NSRealMemoryAvailable()) /...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_maccatalyst.swift
availability_maccatalyst.swift
Swift
3,053
0.95
0.025974
0.071429
node-utils
993
2024-08-15T03:18:31.813530
MIT
true
7ed399a21c2481305527198f541cdc54
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -target %target-cpu-apple-ios13.1-macabi -application-extension -typecheck -verify -I %S/Inputs/custom-modules %s\n\n// REQUIRES: maccatalyst_support\n\nimport Foundation\nimport AvailabilityExtras\n\nfunc test_unavailable_because_deprecated() {\n print(NSR...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_maccatalyst_app_extension.swift
availability_maccatalyst_app_extension.swift
Swift
2,084
0.95
0.105263
0.071429
awesome-app
222
2025-03-08T18:43:11.339411
MIT
true
6aef6a041b4ab6d5dd2ad37a6ab5af44
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -application-extension %s\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typechec...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_macosx.swift
availability_macosx.swift
Swift
1,669
0.95
0.102041
0.162791
python-kit
790
2023-10-09T08:09:48.504710
GPL-3.0
true
f41edec45d31cfd35da2c937ea139928
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -target %target-cpu-apple-macosx10.15 %s\n\n// REQUIRES: OS=macosx\n\nimport MacOSVersionCanonicalization\n\nFunctionIntroducedIn10_16()\n// expected-error@-1 {{'FunctionIntroducedIn10_16()' is only available in...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_macosx_canonical_versions.swift
availability_macosx_canonical_versions.swift
Swift
575
0.95
0.153846
0.666667
react-lib
318
2023-08-25T23:23:34.106682
Apache-2.0
true
d5da8266fb6fc40582d338c7e5af2cb8
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -target %target-cpu-apple-macosx10.15 -application-extension %s\n\n// REQUIRES: OS=macosx\n\nimport MacOSVersionCanonicalization\n\nFunctionIntroducedIn10_16AppExt()\n// expected-error@-1 {{'FunctionIntroducedIn...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_macosx_canonical_versions_appext.swift
availability_macosx_canonical_versions_appext.swift
Swift
676
0.95
0.307692
0.666667
awesome-app
682
2025-01-11T03:24:49.061936
Apache-2.0
true
80b123c2c13bea49c123fc18ee3e5ba1
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -enable-nonfrozen-enum-exhaustivity-diagnostics %s\n\n// REQUIRES: objc_interop\n// UNSUPPORTED: OS=xros\n\nimport Foundation\nimport AvailabilityExtras\n\nfunc exhaustiveSwitch(e: NSEnumAddedCasesIn2017) {\n s...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_open_enums.swift
availability_open_enums.swift
Swift
667
0.95
0.095238
0.333333
node-utils
482
2023-12-05T13:33:09.307767
Apache-2.0
true
9a92cdfddd01d9b327862a6859962b79
// RUN: %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/availability_platform_categories.h\n\n// REQUIRES: OS=macosx\n\n// Test when a function is associated to an Objective-C category with the\n// wrong unavailability. rdar://problem/53956555\n\nprint(SharedInterface.foo())\n
dataset_sample\swift\apple_swift\test\ClangImporter\availability_platform_categories.swift
availability_platform_categories.swift
Swift
288
0.95
0.125
0.8
awesome-app
810
2025-06-01T16:06:09.213471
MIT
true
a2bcbba11f2393c1f4b60379da66b881
// RUN: not %target-swift-frontend -typecheck -verify %s 2>&1 | %FileCheck %s\n// REQUIRES: OS=windows-msvc && CPU=aarch64\n\nimport vcruntime\ntypealias JumpBuffer = _JBTYPE\n\nfunc test_unavailable_returns_twice_function() {\n var x: JumpBuffer\n _ = _setjmp(&x)\n}\n\n// CHECK: availability_returns_twice-msvc-aarch...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_returns_twice-msvc-aarch64.swift
availability_returns_twice-msvc-aarch64.swift
Swift
663
0.95
0
0.538462
node-utils
680
2024-06-13T13:16:01.000452
GPL-3.0
true
7a79bcf8ca5aa4647ab69cf4e3b4870d
// RUN: %target-typecheck-verify-swift\n// REQUIRES: OS=windows-msvc && CPU=x86_64\n\nimport vcruntime\ntypealias JumpBuffer = _JBTYPE\n\nfunc test_unavailable_returns_twice_function() {\n var x: JumpBuffer\n _ = _setjmp(&x) // expected-error {{'_setjmp' is unavailable in Swift: Functions that return more than once a...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_returns_twice-msvc-x86_64.swift
availability_returns_twice-msvc-x86_64.swift
Swift
341
0.95
0
0.25
awesome-app
757
2024-10-06T08:08:47.368775
MIT
true
902d1378628ffff5ca98c8d43b1e0faa
// RUN: %target-typecheck-verify-swift\n\n// UNSUPPORTED: OS=windows-msvc\n\n// `setjmp` is not available on WebAssembly/WASI\n// UNSUPPORTED: OS=wasi\n\n// https://github.com/apple/swift/issues/51632\n// In Android jmp_buf is int[16], which doesn't convert to &Int\n// XFAIL: OS=linux-androideabi\n// XFAIL: OS=linux-an...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_returns_twice.swift
availability_returns_twice.swift
Swift
778
0.95
0.035714
0.636364
node-utils
186
2025-06-14T05:54:27.580622
BSD-3-Clause
true
7716d22eebed15f074543f85b15fc2fd
// REQUIRES: OS=macosx\n// RUN: %target-swift-frontend -typecheck %s -F %S/Inputs/frameworks -verify -DNOT_UNDERLYING -library-level api -parse-as-library -require-explicit-availability=ignore\n// RUN: %target-swift-frontend -typecheck %s -F %S/Inputs/frameworks -module-name SPIContainer -import-underlying-module -veri...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_spi_as_unavailable.swift
availability_spi_as_unavailable.swift
Swift
1,381
0.95
0.2
0.217391
awesome-app
390
2024-02-10T21:05:54.132095
Apache-2.0
true
2e2dbe7b934df6e8848ec90ccd14f385
// REQUIRES: OS=macosx\n// RUN: %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/frameworks/SPIContainer.framework/Headers/SPIContainer.h -verify -library-level api\n\n\n@_spi(a) public let a: SPIInterface1\n@_spi(a) public let b: SPIInterface2\n\npublic let c: SPIInterface1 // expected-error{{cannot ...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_spi_as_unavailable_bridging_header.swift
availability_spi_as_unavailable_bridging_header.swift
Swift
818
0.95
0.285714
0.2
vue-tools
664
2023-09-29T23:19:30.170415
MIT
true
f29374fa3893feeb2eab6d570c5c6af8
// REQUIRES: OS=macosx\n\n// RUN: %target-swift-frontend -typecheck %s -F %S/Inputs/frameworks -verify -DNOT_UNDERLYING -parse-as-library -require-explicit-availability=ignore\n// RUN: %target-swift-frontend -typecheck %s -F %S/Inputs/frameworks -verify -DNOT_UNDERLYING -library-level spi -parse-as-library -require-exp...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_spi_library_level_spi.swift
availability_spi_library_level_spi.swift
Swift
1,277
0.95
0.028571
0.28
node-utils
878
2024-06-09T19:42:17.821259
Apache-2.0
true
9af07226fddb923ca28196aa289f9b00
// REQUIRES: OS=macosx\n// RUN: %target-swift-frontend -typecheck %s -F %S/Inputs/frameworks -verify -library-level api\n\nimport SPIContainerImporter\n\n@_spi(a) public let a: SPIInterface1\n\npublic let c: SPIInterface1 // expected-error{{cannot use class 'SPIInterface1' here; it is an SPI imported from 'SPIContainer...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_spi_transitive.swift
availability_spi_transitive.swift
Swift
317
0.95
0.125
0.4
python-kit
33
2025-02-01T11:48:12.300857
Apache-2.0
true
b75a707cd40df09a0c66b54c94475c65
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s\n\n// REQUIRES: OS=macosx\n\nimport Foundation\n\nfunc variadicFunc2(_ A : Int32, _: Any...) -> Int { return 0 }\n\nclass C1 {}\n\nfunc test_unavailable_because_variadic() {\n print(variadicFunc1(2, [3])) //...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_variadic.swift
availability_variadic.swift
Swift
1,001
0.95
0.238095
0.125
vue-tools
494
2025-01-21T12:09:48.163053
GPL-3.0
true
ae854499ed1c4edf13281d453ac18dfa
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s\n\n// REQUIRES: OS=watchos\n\nimport Foundation\nimport AvailabilityExtras\n\nfunc test_unavailable_because_deprecated() {\n // This is transcribed by clang to be deprecated on watchOS 2.0\n // We don't cur...
dataset_sample\swift\apple_swift\test\ClangImporter\availability_watchos.swift
availability_watchos.swift
Swift
741
0.95
0.052632
0.466667
vue-tools
715
2024-10-13T14:03:49.644699
GPL-3.0
true
b608a244fbe0b953fd8dcb955c7431ea
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -target %target-cpu-apple-macosx10.8 %s\n//\n// This test ensures that a -target that is too old for the standard library\n// will not crash in the ClangImporter.\n\n// REQUIRES: OS=macosx\n\nimport Foundation\n
dataset_sample\swift\apple_swift\test\ClangImporter\bad-deployment-target.swift
bad-deployment-target.swift
Swift
276
0.95
0.125
0.833333
vue-tools
678
2024-11-22T09:58:51.603459
GPL-3.0
true
7156405d45dc9106dfc63feba1ce455c
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -enable-objc-interop -import-objc-header %S/Inputs/bad-ns-extensible-string-enum.h -verify\n\nlet string = MyString.MyStringOne // expected-error {{cannot find 'MyString' in scope}}\n
dataset_sample\swift\apple_swift\test\ClangImporter\bad-ns-extensible-string-enum.swift
bad-ns-extensible-string-enum.swift
Swift
256
0.95
0
0.5
node-utils
310
2023-07-22T15:47:50.484057
BSD-3-Clause
true
033d618badb3e8e9958a56ac117daa28
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s\n\n// REQUIRES: objc_interop\n\nimport blocks\nimport Foundation\n\nvar someNSString : NSString\nfunc useString(_ s: String) {}\n\naccepts_block { }\nsomeNSString.enumerateLines {(s:String?) in }\nsomeNSString.enumerateLines {s in }\nso...
dataset_sample\swift\apple_swift\test\ClangImporter\blocks_parse.swift
blocks_parse.swift
Swift
1,503
0.95
0
0.102564
awesome-app
466
2024-03-17T14:10:39.466856
Apache-2.0
true
0f8ea2d0e25b44bcc07c6e6cfba3addd
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-silgen %s -I %S/Inputs/ | %FileCheck %s\n\n// Check that bridging an @convention(c)'s function's @convention(block)\n// parameter to a Swift function type doesn't crash the compiler.\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-...
dataset_sample\swift\apple_swift\test\ClangImporter\blocks_returning_bool.swift
blocks_returning_bool.swift
Swift
745
0.95
0.166667
0.615385
python-kit
699
2024-07-29T14:22:43.033457
MIT
true
2661fd70e4755a63cd5d0359fceb4111
// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/custom-modules/ -enable-objc-interop -show-diagnostics-after-fatal -D MISSING_FROM_MODULE -o /dev/null 2>&1 | %FileCheck -check-prefix CHECK-MODULE-MAP %s\n// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/custom-modules/ -enable-objc-interop -sh...
dataset_sample\swift\apple_swift\test\ClangImporter\broken-modules.swift
broken-modules.swift
Swift
2,458
0.95
0.076923
0.884615
python-kit
429
2024-08-27T07:44:12.948126
Apache-2.0
true
894a58889670ec9e0fcb8f052bd40c2a
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/missing-requirement %s -verify\n\nclass Unique {}\n\n#if canImport(MissingRequirement)\n class Unique {} // No diagnostic\n#endif\n
dataset_sample\swift\apple_swift\test\ClangImporter\can_import_missing_requirement.swift
can_import_missing_requirement.swift
Swift
211
0.95
0.428571
0.6
python-kit
470
2024-01-25T17:05:43.323399
BSD-3-Clause
true
4c583f597cca5fa20b66864d8cfcf161
// REQUIRES: VENDOR=apple\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/frameworks)\n\n// RUN: cp -rf %S/Inputs/frameworks/Simple.framework %t/frameworks/\n// RUN: %target-typecheck-verify-swift -disable-implicit-concurrency-module-import -F %t/frameworks\n\nimport Simple\n\nfunc canImportVersioned() {\n#i...
dataset_sample\swift\apple_swift\test\ClangImporter\can_import_underlying_version.swift
can_import_underlying_version.swift
Swift
1,100
0.95
0.15625
0.6
vue-tools
198
2024-02-23T21:35:32.915586
Apache-2.0
true
a510fff3204a3ec5cb842f50cb531d48
// REQUIRES: VENDOR=apple\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/frameworks)\n// RUN: %empty-directory(%t/overlaydir)\n\n// RUN: cp -rf %S/Inputs/frameworks/Simple.framework %t/frameworks/\n\n// Creates a framework with a Clang module and a .tbd as well as a Swift\n// overlay. Both the .tbd and the ...
dataset_sample\swift\apple_swift\test\ClangImporter\can_import_underlying_version_ignores_swift_module_version.swift
can_import_underlying_version_ignores_swift_module_version.swift
Swift
2,135
0.95
0.122449
0.710526
react-lib
938
2024-03-16T19:17:18.629136
GPL-3.0
true
32816d47ed84cfa4f2deddb42827fa60
// REQUIRES: VENDOR=apple\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/frameworks)\n\n// RUN: cp -rf %S/Inputs/frameworks/Simple.framework %t/frameworks/\n// RUN: rm -rf %t/frameworks/Simple.framework/Simple.tbd\n// RUN: %target-typecheck-verify-swift -disable-implicit-concurrency-module-import -F %t/fram...
dataset_sample\swift\apple_swift\test\ClangImporter\can_import_underlying_version_tbd_missing_version.swift
can_import_underlying_version_tbd_missing_version.swift
Swift
1,270
0.95
0.26087
0.631579
node-utils
621
2024-12-21T11:03:35.891533
BSD-3-Clause
true
dae350275f76a9119a07e7f94cf7e2cf
// REQUIRES: VENDOR=apple\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/frameworks)\n// RUN: %empty-directory(%t/overlaydir)\n\n// RUN: cp -rf %S/Inputs/frameworks/Simple.framework %t/frameworks/\n\n// Creates a framework with a Clang module and a .tbd as well as a Swift\n// overlay. Only the .swiftmodule ...
dataset_sample\swift\apple_swift\test\ClangImporter\can_import_version_ignores_missing_tbd_version.swift
can_import_version_ignores_missing_tbd_version.swift
Swift
2,997
0.95
0.222222
0.738095
awesome-app
481
2025-04-01T19:54:27.358455
Apache-2.0
true
31a2e00deab14efa679dd9833bc0266b
// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module -typecheck -verify -import-cf-types -I %S/Inputs/custom-modules %s\n\n// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module -typecheck -verify -import-cf-types -enable-experimental-cxx-interop -I %S/Inputs/custom-modules...
dataset_sample\swift\apple_swift\test\ClangImporter\cf.swift
cf.swift
Swift
6,621
0.95
0.017544
0.074627
python-kit
319
2024-10-14T21:42:59.634972
BSD-3-Clause
true
4d11a0f4b9565556412d058f0fa6a830
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -emit-ir -o - | %FileCheck %s\n\n// REQUIRES: OS=macosx\n\nimport cfuncs\n\n// CHECK: call void @cfunc1\ncfunc1()\n\n// CHECK: call double @pow(double 3.141590e+00, double 2.718280e+00)\nvar d = pow(3.14159, 2.71828)\n\n// CHECK: call i32 @"\01_something_...
dataset_sample\swift\apple_swift\test\ClangImporter\cfuncs_ir.swift
cfuncs_ir.swift
Swift
379
0.95
0
0.545455
python-kit
201
2024-03-19T03:51:54.502707
MIT
true
b961ef113d7f4ef3e0092680a2ef5c48
// XFAIL: CPU=powerpc64le\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs %s\n\nimport cfuncs\n\nfunc test_cfunc1(_ i: Int) {\n cfunc1() // okay\n cfunc1(i) // expected-error{{argument passed to call that takes no arguments}}\n}\n\nfunc test_cfunc2(_ i: Int) {\n#if os(Wi...
dataset_sample\swift\apple_swift\test\ClangImporter\cfuncs_parse.swift
cfuncs_parse.swift
Swift
6,884
0.95
0.035176
0.178571
vue-tools
204
2024-09-05T18:20:13.784246
GPL-3.0
true
6a5348cfb382317f34458a2cfc851c0f
// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/custom-modules 2>&1 | %FileCheck %s\n\nimport LocalVsFileScope\n\nfunc testLocalVsFileScope() {\n LocalVsFileScopeBase.theFunctionInQuestion()\n // CHECK: :[[@LINE-1]]:3: error: module 'LocalVsFileScopeBase' has no member named 'theFunctionInQuestion'\n\n ...
dataset_sample\swift\apple_swift\test\ClangImporter\cfuncs_scope.swift
cfuncs_scope.swift
Swift
546
0.95
0
0.454545
awesome-app
716
2023-08-16T23:41:23.074255
MIT
true
d8f0c324b10b5cd5ced782413a588008
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -sdk %clang-importer-sdk -experimental-print-full-convention -use-clang-function-types\n// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -sdk %clang-importer-sdk\n// RUN: %FileCheck %s < %t.swiftinterface\n\nimport ctypes\n\n// CH...
dataset_sample\swift\apple_swift\test\ClangImporter\clang-function-types.swift
clang-function-types.swift
Swift
827
0.95
0.071429
0.6
node-utils
541
2024-07-17T11:15:23.050550
BSD-3-Clause
true
fcb7a2fac2d97e0df4add6d9d64b30b6
// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-%target-runtime %s\n\n#if canImport(Darwin)\n import Darwin\n#elseif canImport(Glibc)\n import Glibc\n#elseif canImport(Android)\n import Android\n#elseif os(WASI)\n import WASILibc\n#elseif os(Windows)\n imp...
dataset_sample\swift\apple_swift\test\ClangImporter\clang_builtins.swift
clang_builtins.swift
Swift
1,713
0.95
0.065217
0.578947
awesome-app
372
2023-08-13T18:13:37.777500
MIT
true
032db94dee5fbb3305fe5c2039ad9058
// Note: this test intentionally uses a private module cache.\n//\n// RUN: rm -rf %t/clang-module-cache\n// RUN: %target-swift-frontend -typecheck -verify -module-cache-path %t/clang-module-cache %s\n// RUN: ls -lR %t/clang-module-cache | %FileCheck %s\n\n// CHECK: _Builtin_intrinsics{{.*}}.pcm\n\nimport _Builtin_intri...
dataset_sample\swift\apple_swift\test\ClangImporter\clang_builtin_pcm.swift
clang_builtin_pcm.swift
Swift
318
0.95
0
0.857143
react-lib
925
2025-03-12T02:09:56.709382
GPL-3.0
true
7a638c8d3aa8a4bf5ce5f400311c9cc7
// RUN: %target-swift-frontend -emit-sil %s -enable-objc-interop -import-objc-header %S/Inputs/const_and_pure.h | %FileCheck %s\n\nfunc testit() {\n _ = const_function()\n\n _ = pure_function()\n\n _ = normal_function()\n}\n\n// CHECK: sil [readnone] [clang const_function] @const_function : $@convention(c) () -> Int3...
dataset_sample\swift\apple_swift\test\ClangImporter\const_and_pure.swift
const_and_pure.swift
Swift
491
0.95
0
0.444444
vue-tools
91
2024-12-05T07:40:30.060968
MIT
true
a99c4cfa5ebb64ff1d3f8a1c42e1a938
// RUN: %empty-directory(%t/src)\n// RUN: split-file %s %t/src\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %t/src/main.swift \\n// RUN: -import-bridging-header %t/src/test.h \\n// RUN: -module-name main -I %t -emit-sil -serialize-diagnostics -serialize-diagnostics-path %t/test.diag | %FileCheck...
dataset_sample\swift\apple_swift\test\ClangImporter\const_values.swift
const_values.swift
Swift
6,482
0.95
0
0.673759
awesome-app
120
2023-11-07T22:34:17.956698
MIT
true
eb495c26b875614ea56174d7158057c0
// RUN: %empty-directory(%t/src)\n// RUN: split-file %s %t/src\n\n// RUN: %target-swiftxx-frontend %t/src/main.swift \\n// RUN: -import-bridging-header %t/src/test.h \\n// RUN: -module-name main -I %t -emit-sil | %FileCheck %s\n\n//--- test.h\n\nconst int const_int = 42;\nnamespace Namespace {\n const int namespac...
dataset_sample\swift\apple_swift\test\ClangImporter\const_values_cxx.swift
const_values_cxx.swift
Swift
3,566
0.95
0.029126
0.578313
vue-tools
537
2023-09-12T00:51:32.052361
Apache-2.0
true
31cda93153d79e40e3409ecbe38a9246
// RUN: %empty-directory(%t/src)\n// RUN: split-file %s %t/src\n\n// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) %t/src/main.swift \\n// RUN: -import-bridging-header %t/src/test.h \\n// RUN: -module-name main -I %t -emit-sil -serialize-diagnostics -serialize-diagnostics-path %t/test.diag\n\n// RU...
dataset_sample\swift\apple_swift\test\ClangImporter\const_values_fail.swift
const_values_fail.swift
Swift
749
0.95
0
0.666667
python-kit
676
2024-01-23T19:51:50.192606
Apache-2.0
true
a82b12cf8614309b7070b18e9904bf0a
// RUN: %empty-directory(%t/src)\n// RUN: split-file %s %t/src\n\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %t/src/main.swift \\n// RUN: -import-bridging-header %t/src/test.h \\n// RUN: -module-name main -I %t -emit-sil | %FileCheck %s\n\n// REQUIRES: objc_interop\n\n//--- test.h\n#include <objc...
dataset_sample\swift\apple_swift\test\ClangImporter\const_values_objc.swift
const_values_objc.swift
Swift
898
0.95
0
0.708333
awesome-app
686
2025-01-18T21:29:37.002411
BSD-3-Clause
true
17c7bb47268d48548fec591d353c931a
// Note: this test intentionally uses a private module cache.\n//\n// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -module-cache-path %t/clang-module-cache -I %S/Inputs %s\n// RUN: ls -lR %t/clang-module-cache | %FileCheck %s\n\n// CHECK: cfuncs{{.*}}.pcm\n...
dataset_sample\swift\apple_swift\test\ClangImporter\cstring_parse.swift
cstring_parse.swift
Swift
391
0.95
0
0.6
vue-tools
460
2023-12-08T07:52:17.673196
GPL-3.0
true
62881c6df7ebc1e3ca7445abeee874ad
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir -o - -primary-file %s | %FileCheck %s\n\n// REQUIRES: OS=macosx\n\nimport ctypes\n\n// CHECK-LABEL: define hidden swiftcc void @"$s9ctypes_ir9testColoryyF"\nfunc testColor() {\n // CHECK: store i32 1\n var c : Color = green\n}\n\n// CHECK-LABEL: d...
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_ir.swift
ctypes_ir.swift
Swift
26,342
0.95
0.017857
0.35
python-kit
114
2023-10-10T22:30:51.398169
BSD-3-Clause
true
1c6d56ac5be0e7dd76a1e45151d9074e
// RUN: %target-typecheck-verify-swift %clang-importer-sdk -verify-ignore-unknown\n\nimport ctypes\n\nfunc checkRawRepresentable<T: RawRepresentable>(_: T) {}\nfunc checkEquatable<T: Equatable>(_: T) -> Bool {}\nfunc checkEquatablePattern(_ c: Color) {\n switch c {\n case red: return\n case green: return\n ca...
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_parse.swift
ctypes_parse.swift
Swift
31,097
0.95
0.019231
0.066667
vue-tools
318
2023-12-08T19:07:59.649385
BSD-3-Clause
true
3c709d4c5288b7715f2710e885f5788f
// RUN: %target-typecheck-verify-swift %clang-importer-sdk\n\nimport ctypes\n\nfunc useStructWithBitfields(_ mrm: ModRM) -> ModRM {\n let rm: CUnsignedInt = mrm.rm\n let reg: CUnsignedInt = mrm.reg\n let mod: CUnsignedInt = mrm.mod\n let opcode: CUnsignedInt = mrm.opcode\n\n var new: ModRM = ModRM()\n new.rm = rm...
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_parse_bitfields.swift
ctypes_parse_bitfields.swift
Swift
523
0.95
0
0.055556
react-lib
933
2024-10-29T05:05:04.040534
BSD-3-Clause
true
bfddce21ba8d99fe898e8fdeeb675b23
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s\n\n// REQUIRES: OS=macosx\n\nimport ctypes\n\nfunc testImportMacTypes() {\n var _ : Float80 = Float80_test\n var _ : ctypes.Float80 = 0.0\n}\n\n
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_parse_macosx.swift
ctypes_parse_macosx.swift
Swift
219
0.95
0
0.285714
react-lib
831
2024-09-12T04:26:55.426504
BSD-3-Clause
true
8941656fb15b81e04346f1f6d5105223
// RUN: %target-swift-frontend -Xcc -fms-extensions -import-objc-header %S/Inputs/ctypes_msvc.h -typecheck -verify %s\n\n_ = T().uc\n_ = T(S(uc: 0))\n
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_parse_msvc.swift
ctypes_parse_msvc.swift
Swift
146
0.95
0
0.333333
awesome-app
551
2024-11-15T22:45:14.523817
Apache-2.0
true
765f5de4a6fe83c8a79ccfcb2b951e1c
// RUN: %target-typecheck-verify-swift %clang-importer-sdk -enable-objc-interop\n\nimport ctypes\nimport CoreGraphics\nimport Foundation\nimport CoreFoundation\n\nvar cgPointVar: CGPoint\n\n// FIXME: Import arrays as real array-looking things.\n\nfunc testArrays() {\n let fes: NSFastEnumerationState\n var ulong: CUns...
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_parse_objc.swift
ctypes_parse_objc.swift
Swift
2,324
0.95
0.010753
0.097222
react-lib
770
2023-11-01T10:58:19.940117
BSD-3-Clause
true
832b2ebae034f83251ac425d079ef55f
// RUN: %target-typecheck-verify-swift %clang-importer-sdk -swift-version 4\n\nimport ctypes\n\nfunc testArrays() {\n // It would also be nice to warn here about the arrays being too short, but\n // that's probably beyond us for a while.\n staticBoundsArray([])\n staticBoundsArray(nil) // expected-error {{'nil' is ...
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_parse_swift4.swift
ctypes_parse_swift4.swift
Swift
382
0.95
0.2
0.375
python-kit
615
2023-12-22T21:18:57.842844
MIT
true
28201af70998555f5ad6326d53125d68
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir %s\n\nimport ctypes\n\nfunc useStructWithUnion(_ vec: GLKVector4) {\n var vec = vec\n _ = vec.v.0\n _ = vec.v.1\n _ = vec.v.2\n _ = vec.v.3\n\n vec.v = (0, 0, 0, 0)\n \n}\n\nfunc useUnionIndirectFields(_ vec: GLKVector4) -> GLKVector4 {\n le...
dataset_sample\swift\apple_swift\test\ClangImporter\ctypes_parse_union.swift
ctypes_parse_union.swift
Swift
1,209
0.95
0
0.038462
python-kit
550
2023-09-04T12:29:45.299989
MIT
true
ad8e7581842e416e3771242d47251efc
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules %s -typecheck -verify\n\nimport ExternIntX\n\nx += 1\n
dataset_sample\swift\apple_swift\test\ClangImporter\custom-include.swift
custom-include.swift
Swift
139
0.95
0
0.333333
react-lib
606
2023-12-20T11:15:55.692065
GPL-3.0
true
e01948e61955b1ee080e59a7b9182a97
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -emit-ir -o - | %FileCheck %s\n\n// REQUIRES: OS=macosx\n\nimport cvars\n\n// Check that the mangling is correct.\n// CHECK: @PI = external global float, align 4\n\nfunc getPI() -> Float {\n return PI\n}\n
dataset_sample\swift\apple_swift\test\ClangImporter\cvars_ir.swift
cvars_ir.swift
Swift
259
0.95
0
0.5
vue-tools
273
2024-09-25T22:23:28.475599
BSD-3-Clause
true
c4277be82497ad856ef60988922d6468
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s\n\nimport cvars\n\nfunc getPI() -> Float {\n return PI\n}\n\nfunc testPointers() {\n let cp = globalConstPointer\n cp.abcde() // expected-error {{value of type 'UnsafeRawPointer?' has no member 'abcde'}}\n let mp = globalPointer\n ...
dataset_sample\swift\apple_swift\test\ClangImporter\cvars_parse.swift
cvars_parse.swift
Swift
406
0.95
0
0.090909
vue-tools
987
2025-03-15T10:31:11.606449
BSD-3-Clause
true
957939403a272a14f07834ecd654b209
// RUN: %empty-directory(%t)\n// RUN: %target-swiftxx-frontend -typecheck %s -I %S/Inputs/custom-modules\n\nimport CXXInterop\n\n// Basic structs\ndo {\n var tmp: Basic = makeA()\n tmp.a = 3\n tmp.b = nil\n}\n\n// Namespace lookup\nfunc namespaceLookup() -> UnsafeMutablePointer<ns.T> {\n var tmp: UnsafeMutablePoint...
dataset_sample\swift\apple_swift\test\ClangImporter\cxx_interop.swift
cxx_interop.swift
Swift
346
0.95
0
0.285714
awesome-app
505
2023-11-28T16:52:51.393276
BSD-3-Clause
true
d60b10219016a8cab6aa93f787098eae
// RUN: %target-swiftxx-frontend -module-name cxx_ir -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s -Xcc -fignore-exceptions | %FileCheck %s\n\n// https://github.com/apple/swift/issues/55575\n// We can't yet call member functions correctly on Windows.\n// XFAIL: OS=windows-msvc\n\nimport CXXInterop\n\n// CH...
dataset_sample\swift\apple_swift\test\ClangImporter\cxx_interop_ir.swift
cxx_interop_ir.swift
Swift
3,028
0.95
0
0.509434
vue-tools
437
2024-11-23T03:33:06.468199
BSD-3-Clause
true
c4c9258a155f97239e340be29d591a6e
// RUN: %target-swift-ide-test -enable-objc-interop -print-module -module-to-print CInsideObjC -I %S/Inputs/custom-modules -source-filename %s -Xcc -DCLASS | %FileCheck %s\n// RUN: %target-swift-ide-test -enable-objc-interop -print-module -module-to-print CInsideObjC -I %S/Inputs/custom-modules -source-filename %s -Xcc...
dataset_sample\swift\apple_swift\test\ClangImporter\c_inside_objc.swift
c_inside_objc.swift
Swift
1,602
0.95
0.032258
0.791667
awesome-app
133
2024-12-09T01:23:48.641797
Apache-2.0
true
0fee193f30fba5d0685fd48890e01031
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -typecheck %s -I %S/Inputs/custom-modules -module-cache-path %t 2> %t.err.txt\n// RUN: %FileCheck -input-file=%t.err.txt %s\n\nimport Warnings1\nimport Warnings2\nimport Warnings3\nimport Warnings4\nimport Warnings5\nimport Warnings6\nimport Warnings7\nimport...
dataset_sample\swift\apple_swift\test\ClangImporter\diags-from-many-modules.swift
diags-from-many-modules.swift
Swift
869
0.95
0
0.571429
vue-tools
856
2023-07-29T07:40:14.992283
MIT
true
4fddb55e7fccce51b971daf7e412bf18
// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/many-imports -enable-objc-interop -import-objc-header %S/Inputs/many-imports/obsoleted.h 2>&1 | %FileCheck %s\n// RUN: %target-swift-frontend -enable-objc-interop -emit-pch %S/Inputs/many-imports/obsoleted.h -o %t.pch\n// RUN: not %target-swift-frontend -typ...
dataset_sample\swift\apple_swift\test\ClangImporter\diags-with-many-imports.swift
diags-with-many-imports.swift
Swift
2,385
0.95
0
0.073394
react-lib
176
2024-01-12T11:42:36.475328
GPL-3.0
true
e3221a1e2d8f5ccccafae6fc87c83bd2
// RUN: not %target-swift-frontend -typecheck %s -enable-objc-interop -import-objc-header %S/Inputs/diags_from_header.h -serialize-diagnostics-path %t.dia 2>&1 | %FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-WARN\n// RUN: test -s %t.dia\n// RUN: c-index-test -read-diagnostics %t.dia 2>&1 | %FileCheck %s -check-...
dataset_sample\swift\apple_swift\test\ClangImporter\diags_from_header.swift
diags_from_header.swift
Swift
1,466
0.95
0
1
react-lib
378
2023-10-24T11:40:47.086363
MIT
true
ec78f0e7079689b580ebbad0df5b98a4
// RUN: %empty-directory(%t)\n// RUN: not %target-swift-frontend -module-cache-path %t -enable-objc-interop -typecheck %s -F %S/Inputs/frameworks -serialize-diagnostics-path %t.dia -Xcc -D -Xcc FOO -diagnostic-style llvm 2>&1 | %FileCheck %s\n// RUN: test -s %t.dia\n// RUN: c-index-test -read-diagnostics %t.dia 2>&1 | ...
dataset_sample\swift\apple_swift\test\ClangImporter\diags_from_module.swift
diags_from_module.swift
Swift
2,802
0.95
0.023256
0.969697
react-lib
994
2023-08-05T08:39:18.118076
Apache-2.0
true
ce01bfb24b27b53a353ba70eaf5b9a0a
// RUN: %target-swift-frontend %s -parse -dump-clang-diagnostics 2>&1 | %FileCheck %s -check-prefix=DEFAULT\n// DEFAULT: -fmodules-validate-system-headers\n// DEFAULT-NOT: -fno-modules-validate-system-headers\n\n// RUN: %target-swift-frontend %s -parse -dump-clang-diagnostics -disable-modules-validate-system-headers 2>...
dataset_sample\swift\apple_swift\test\ClangImporter\disable-modules-validate-system-headers.swift
disable-modules-validate-system-headers.swift
Swift
456
0.8
0
1
react-lib
608
2023-11-22T11:00:37.250254
GPL-3.0
true
85262cd6378630b08f26d59d710bb24f