Repository Analysis

swiftlang/swift

The Swift Programming Language

9.2 Low AI signal View on GitHub
9.2
Adjusted Score
9.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
70,009
Stars
Swift
Language
3,617,817
Lines of Code
27579
Files
31596
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 20HIGH 118MEDIUM 970LOW 30488

Pattern Findings

31596 matches across 17 categories. Click a row to expand file-level details.

Over-Commented Block29665 hits · 28534 pts
SeverityFileLineSnippet
LOWCMakeLists.txt1341 # if(SWIFT_HOST_VARIANT MATCHES "^macosx")
LOWCMakeLists.txt1561 check_symbol_exists(xmlRelaxNGParse libxml/relaxng.h HAVE_LIBXML2_RELAXNG)
LOWCONTRIBUTING.md121//
LOWCONTRIBUTING.md141// Licensed under Apache License v2.0 with Runtime Library Exception
LOWbenchmark/cxx-source/CxxSetToCollection.swift1//===--- CxxSetToCollection.swift -----------------------------------------===//
LOWbenchmark/cxx-source/CxxStringConversion.swift1//===--- CxxStringConversion.swift ----------------------------------------===//
LOWbenchmark/cxx-source/ReadAccessor.swift1// Subscripts.swift - Very brief description
LOWbenchmark/cxx-source/CreateObjects.swift1//===--- CreateObjects.swift ----------------------------------------------===//
LOWbenchmark/cxx-source/CxxVectorSum.swift1//===--- CxxVectorSum.swift -----------------------------------------------===//
LOWbenchmark/cxx-source/CxxSpanTests.swift1//===--- CxxSpanTests.swift ----------------------------------------===//
LOWbenchmark/utils/TestsUtils.swift1//===--- TestsUtils.swift -------------------------------------------------===//
LOWbenchmark/utils/TestsUtils.swift41 // into a benchmark, important functionality like JSON parsing, etc.
LOWbenchmark/utils/TestsUtils.swift61 // code--it should exercise a known performance critical area. Typically these
LOWbenchmark/utils/TestsUtils.swift161 /// Optional `legacyFactor` is a multiplication constant applied to runtime
LOWbenchmark/utils/DriverUtils.swift1//===--- DriverUtils.swift ------------------------------------------------===//
LOWbenchmark/utils/DriverUtils.swift421 #else
LOWbenchmark/utils/ArgParse.swift1//===--- ArgParse.swift ---------------------------------------------------===//
LOWbenchmark/utils/main.swift1//===--- main.swift -------------------------------------------*- swift -*-===//
LOWbenchmark/utils/convertToJSON.py1#!/usr/bin/env python3
LOWbenchmark/utils/convertToJSON.py21# 2,Ackermann,1,805,805,805,0,805
LOWbenchmark/utils/convertToJSON.py41# 805
LOWbenchmark/utils/ObjectiveCTests/ObjectiveCTests.h1//===--- ObjectiveCTests.h ------------------------------------------------===//
LOWbenchmark/utils/ObjectiveCTests/ObjectiveCTests.m1//===--- ObjectiveCTests.m ------------------------------------------------===//
LOWbenchmark/utils/LibProc/LibProcIncludeSystemHeader.h1//===--- LibProcIncludeSystemHeader.h -------------------------------------===//
LOW…ark/single-source/ObserverPartiallyAppliedMethod.swift1//===----------------------------------------------------------------------===//
LOWbenchmark/single-source/DiffingMyers.swift1//===--- DiffingMyers.swift -----------------------------------------------===//
LOWbenchmark/single-source/DictTest.swift1//===--- DictTest.swift ---------------------------------------------------===//
LOWbenchmark/single-source/Exclusivity.swift1//===--- Exclusivity.swift -------------------------------------------------===//
LOWbenchmark/single-source/DropLast.swift1//===--- DropLast.swift ---------------------------------------*- swift -*-===//
LOWbenchmark/single-source/StrComplexWalk.swift1//===--- StrComplexWalk.swift ---------------------------------------------===//
LOWbenchmark/single-source/FindStringNaive.swift1//===--- FindStringNaive.swift --------------------------------------------===//
LOWbenchmark/single-source/ReduceInto.swift1//===--- ReduceInto.swift -------------------------------------------------===//
LOWbenchmark/single-source/ArrayOfRef.swift1//===--- ArrayOfRef.swift -------------------------------------------------===//
LOWbenchmark/single-source/ClassArrayGetter.swift1//===--- ClassArrayGetter.swift -------------------------------------------===//
LOWbenchmark/single-source/PrefixWhile.swift1//===--- PrefixWhile.swift ------------------------------------*- swift -*-===//
LOWbenchmark/single-source/PrefixWhile.swift241
LOWbenchmark/single-source/Fibonacci.swift1//===--- Fibonacci.swift --------------------------------------------------===//
LOWbenchmark/single-source/Calculator.swift1//===--- Calculator.swift -------------------------------------------------===//
LOWbenchmark/single-source/Diffing.swift1//===--- Diffing.swift ----------------------------------------------------===//
LOWbenchmark/single-source/PopFrontGeneric.swift1//===--- PopFrontGeneric.swift --------------------------------------------===//
LOWbenchmark/single-source/Hash.swift1//===--- Hash.swift -------------------------------------------------------===//
LOWbenchmark/single-source/DictionaryCopy.swift1//===--- DictionaryCopy.swift ---------------------------------------------===//
LOWbenchmark/single-source/BucketSort.swift1//===--- BucketSort.swift -------------------------------------------------===//
LOWbenchmark/single-source/ArrayOfGenericRef.swift1//===--- ArrayOfGenericRef.swift ------------------------------------------===//
LOWbenchmark/single-source/OpenClose.swift1//===--- OpenClose.swift --------------------------------------------------===//
LOWbenchmark/single-source/StringEdits.swift1//===--- StringEdits.swift ------------------------------------------------===//
LOWbenchmark/single-source/FloatingPointPrinting.swift1//===--- FloatingPointPrinting.swift -----------------------------------===//
LOWbenchmark/single-source/IntegerParsing.swift1//===--- IntegerParsing.swift -------------------------------------------===//
LOWbenchmark/single-source/ObserverClosure.swift1//===----------------------------------------------------------------------===//
LOWbenchmark/single-source/ObjectAllocation.swift1//===--- ObjectAllocation.swift -------------------------------------------===//
LOWbenchmark/single-source/RangeIteration.swift1//===--- RangeAssignment.swift --------------------------------------------===//
LOWbenchmark/single-source/InsertCharacter.swift1//===--- InsertCharacter.swift --------------------------------------------===//
LOWbenchmark/single-source/BufferFind.swift1//===--- BufferFind.swift -------------------------------------------===//
LOWbenchmark/single-source/RemoveWhere.swift1//===--- RemoveWhere.swift ------------------------------------------------===//
LOWbenchmark/single-source/MapReduce.swift1//===--- MapReduce.swift --------------------------------------------------===//
LOWbenchmark/single-source/SortLettersInPlace.swift1//===--- SortLettersInPlace.swift -----------------------------------------===//
LOWbenchmark/single-source/XorLoop.swift1//===--- XorLoop.swift ----------------------------------------------------===//
LOWbenchmark/single-source/ArraySliceTests.swift1//===--- ArraySliceTests.swift --------------------------------------------===//
LOWbenchmark/single-source/ArrayOfPOD.swift1//===--- ArrayOfPOD.swift -------------------------------------------------===//
LOWbenchmark/single-source/ObserverForwarderStruct.swift1//===----------------------------------------------------------------------===//
29605 more matches not shown…
Decorative Section Separators859 hits · 2444 pts
SeverityFileLineSnippet
MEDIUMvalidation-test/lit.cfg11# -----------------------------------------------------------------------------
MEDIUM…idation-test/ParseableInterface/verify_all_overlays.py18# -----------------------------
MEDIUMtest/swift_test.py11# -----------------------------------------------------------------------------
MEDIUMtest/swift_test.py15# -----------------------------------------------------------------------------
MEDIUMtest/lit.cfg11# -----------------------------------------------------------------------------
MEDIUMtest/lit.cfg19# -----------------------------------------------------------------------------
MEDIUMtest/Driver/Inputs/filelists/fake-ld.py12# ----------------------------------------------------------------------------
MEDIUMtest/Driver/Inputs/filelists/check-filelist-abc.py12# ----------------------------------------------------------------------------
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-old.py13# ----------------------------------------------------------------------------
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-old.py18# ----------------------------------------------------------------------------
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/make-old.py13# ----------------------------------------------------------------------------
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/make-old.py17# ----------------------------------------------------------------------------
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-new.py13# ----------------------------------------------------------------------------
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-new.py18# ----------------------------------------------------------------------------
MEDIUMtest/stdlib/FlattenDistanceFromTo.swift45 /// ─────────────────
MEDIUMtest/stdlib/FlattenDistanceFromTo.swift53 /// ─────────────────
MEDIUMtest/stdlib/FlattenDistanceFromTo.swift87 /// ────────────────────────────────
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h82/// ┌─────┐
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h83/// ┌────────────────┤ SDK ├───────────────┐
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h84/// │ └─────┘ │
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h85/// │ ┌────────────────┐ │ ┌────────────────┐
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h86/// │ ┌───────┤ Framework Dirs ├────────┐ │ ┌┤ Prebuilt Cache ├┐
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h87/// │ │ └────────────────┘ │ │ │└────────────────┘│
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h92/// │ └────┼───────┼───────┼────────────┘ │ └─────╫──────┼────╫┘
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h93/// │ │ │ └──────────────┼───────╫──────┘ ║
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h94/// └───────┼───────┼──────────────────────┘ ║ ║
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h95/// │ │ ┌───────────────┐ ║ ║
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h96/// │ ┌────┼───┤ Module Cache ├────────┐ ║ ║
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h97/// │ │ │ └───────────────┘ │ ║ ║
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h102/// │ └────────────┼───────╫────────────┘ ║
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h103/// └───────────────┘ ╚══════════════════════════╝
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h53/// ┌───────────────────────────────┐
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h63/// └───────────────────────────────┘
MEDIUMinclude/swift/AST/AvailabilityDomain.h56/// *────────Swift──────SwiftLang──────Windows──...
MEDIUMinclude/swift/AST/AvailabilityDomain.h60/// ┌──────┬─┴──┬──────────────┐
MEDIUMinclude/swift/AST/AvailabilityDomain.h63/// │ │ │ ┌──────┼───────────┐
MEDIUMinclude/swift/SIL/TypeSubstCloner.h337 // ┌────────────────┐ remap ┌─────────────────────────┐
MEDIUMinclude/swift/SIL/TypeSubstCloner.h338 // │ orig. fn type │ ───────(a)──────► │ remapped orig. fn type │
MEDIUMinclude/swift/SIL/TypeSubstCloner.h339 // └────────────────┘ └─────────────────────────┘
MEDIUMinclude/swift/SIL/TypeSubstCloner.h344 // ┌────────────────┐ remap ┌─────────────────────────┐
MEDIUMinclude/swift/SIL/TypeSubstCloner.h345 // │ deriv. fn type │ ───────(c)──────► │ remapped deriv. fn type │
MEDIUMinclude/swift/SIL/TypeSubstCloner.h346 // └────────────────┘ └─────────────────────────┘
MEDIUMutils/python_lint.py29# -----------------------------------------------------------------------------
MEDIUMutils/python_lint.py53# -----------------------------------------------------------------------------
MEDIUMutils/python_lint.py73# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py36# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py42# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py100# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py178# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py209# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py220 # -------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py238 # -------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/presets.py317 # -------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/constants.py27# --------------------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/constants.py45# --------------------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/constants.py59# --------------------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/constants.py187# --------------------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/shell.py77# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/shell.py156# -----------------------------------------------------------------------------
MEDIUMutils/build_swift/build_swift/shell.py191# -----------------------------------------------------------------------------
799 more matches not shown…
Hyper-Verbose Identifiers507 hits · 543 pts
SeverityFileLineSnippet
LOWbenchmark/scripts/test_utils.py85 def assert_called_all_expected(self):
LOWbenchmark/scripts/create_benchmark.py136def insert_line_alphabetically(name, new_line, lines, regex):
LOWbenchmark/scripts/test_Benchmark_Driver.py73 def test_command_help_lists_commands(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py78 def test_run_benchmarks_by_name_or_ordinal(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py82 def test_run_benchmarks_matching_pattern(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py87 def test_run_benchmarks_and_filters_are_exclusive(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py138 def test_check_supports_verbose_output(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py143 def test_check_supports_markdown_output(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py148 def test_check_flags_are_mutually_exclusive(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py329 def test_run_benchmark_with_multiple_samples(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py339 def test_run_benchmark_with_specified_number_of_iterations(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py345 def test_run_benchmark_for_specified_time(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py351 def test_run_benchmark_in_verbose_mode(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py578 def test_init_writes_table_header(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py582 def test_close_writes_final_newlines(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py586 def test_errors_and_warnings_start_new_rows_with_icons(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py647 def test_supports_verbose_output(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py655 def test_uses_report_formatter(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py662 def test_uses_optional_markdown_report_formatter(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py58 def test_requires_command_argument(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py103 def test_optimization_argument(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py223 def test_gets_list_of_precommit_benchmarks(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py243 def test_gets_list_of_all_benchmarks_when_benchmarks_args_exist(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py252 def test_filters_benchmarks_by_pattern(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py369 def test_parse_results_from_running_benchmarks(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py388 def test_run_benchmark_independent_samples(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py482 def test_deterministic_hashing(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py554 def test_no_prefix_for_base_logging(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py597 def test_info_stays_in_table_cell_breaking_line_row_to_subscript(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py606 def test_names_in_code_format(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py755 def test_benchmark_name_matches_naming_conventions(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py827 def test_benchmark_runtime_range(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py909 def test_benchmark_has_no_significant_setup_overhead(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py963 def test_benchmark_setup_takes_reasonable_time(self):
LOWbenchmark/scripts/test_Benchmark_Driver.py992 def test_benchmark_has_constant_memory_use(self):
LOWbenchmark/scripts/test_compare_perf_tests.py88 def test_init_delta_quantiles(self):
LOWbenchmark/scripts/test_compare_perf_tests.py99 def test_init_oversampled_quantiles(self):
LOWbenchmark/scripts/test_compare_perf_tests.py427 def test_parse_results_tab_delimited(self):
LOWbenchmark/scripts/test_compare_perf_tests.py434 def test_parse_results_formatted_text(self):
LOWbenchmark/scripts/test_compare_perf_tests.py463 def test_parse_delta_quantiles(self):
LOWbenchmark/scripts/test_compare_perf_tests.py838 def test_required_input_arguments(self):
LOWbenchmark/scripts/test_compare_perf_tests.py867 def test_delta_threshold_argument(self):
LOWbenchmark/scripts/test_compare_perf_tests.py894 def test_changes_only_argument(self):
LOW…SourceKit/tools/sourcekitd/include/sourcekitd/plugin.h22typedef sourcekitd_variant_type_t (*sourcekitd_variant_functions_get_type_t)(
LOWtest/lit.cfg76def darwin_get_watchos_sim_vers():
LOWtest/lit.cfg127def get_lldb_python_interpreter(lldb_build_root):
LOWtest/lit.cfg143def escape_for_substitute_captures(s):
LOWtest/lit.cfg155def configure_individual_test_timeout():
LOWtest/lit.cfg527def availability_macro_to_swift_abi_target_triple(macro):
LOWtest/lit.cfg577def availability_macro_to_current(macro):
LOWtest/lit.cfg1310def use_interpreter_for_simple_runs():
LOWtest/lit.cfg2463def construct_library_path_env(dirs):
LOWtest/attr/Inputs/access-note-gen.py116def move_at_objc_to_access_note(access_notes_file, arg, maybe_bad, offset,
LOWtest/PlaygroundTransform/lit.local.cfg4def escape_for_substitute_captures(s):
LOWutils/swift_build_sdk_interfaces.py151def collect_framework_modules(sdk, xfails, sdk_relative_framework_dirs):
LOWutils/swift_build_sdk_interfaces.py168def collect_non_framework_modules(sdk, xfails, sdk_relative_search_dirs):
LOWutils/swift_build_sdk_interfaces.py199def run_with_module_cache_retry(command_args, module_cache_path, dry_run):
LOWutils/analyze_code_size.py280 def categorize_by_mangled_name(self, symbol):
LOWutils/sil-opt-verify-all-modules.py22def get_verify_toolchain_modules_commands(toolchain_dir, sil_opt):
LOWutils/sil-opt-verify-all-modules.py46def get_verify_build_dir_commands(build_dir, toolchain_name='XcodeDefault'):
447 more matches not shown…
Cross-File Repetition106 hits · 530 pts
SeverityFileLineSnippet
HIGHbenchmark/single-source/CharacterRecognizer.swift0the powerful programming language that is also easy to learn. 손쉽게 학습할 수 있는 강력한 프로그래밍 언어. 🪙 a 🥞 short 🍰 piece 🫘 of 🌰 text
HIGHbenchmark/single-source/StringDistance.swift0the powerful programming language that is also easy to learn. 손쉽게 학습할 수 있는 강력한 프로그래밍 언어. 🪙 a 🥞 short 🍰 piece 🫘 of 🌰 text
HIGHtest/stdlib/CharacterRecognizer.swift0the powerful programming language that is also easy to learn. 손쉽게 학습할 수 있는 강력한 프로그래밍 언어. 🪙 a 🥞 short 🍰 piece 🫘 of 🌰 text
HIGHbenchmark/scripts/test_compare_perf_tests.py0{"number":1,"name":"angryphonebook", "samples":[12325],"max_rss":10510336}
HIGHbenchmark/scripts/test_compare_perf_tests.py0{"number":1,"name":"angryphonebook", "samples":[12325],"max_rss":10510336}
HIGHbenchmark/scripts/test_compare_perf_tests.py0{"number":1,"name":"angryphonebook", "samples":[12325],"max_rss":10510336}
HIGHbenchmark/scripts/test_compare_perf_tests.py0{"number":1,"name":"angryphonebook", "samples":[12325],"max_rss":10510336}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} mutating set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} mutating set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} mutating set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} mutating set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} mutating set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public private(set) var {name}: int {{ get {{ return 0 }} set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public var {name}: int {{ get {{ return 0 }} {nonmutating} set {{ globalsink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public var {name}: int {{ get {{ return 0 }} set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public var {name}: int {{ get {{ return 0 }} set {{ self.sink = newvalue }} }}
HIGHvalidation-test/Evolution/Inputs/keypaths_gyb.py0public var {name}: int {{ get {{ return 0 }} set {{ self.sink = newvalue }} }}
HIGH…st/SILOptimizer/assemblyvision_remark/basic_yaml.swift0// check-next: - valuetype: klass // check-next: - string:
HIGH…st/SILOptimizer/assemblyvision_remark/basic_yaml.swift0// check-next: - valuetype: klass // check-next: - string:
HIGH…st/SILOptimizer/assemblyvision_remark/basic_yaml.swift0// check-next: - valuetype: klass // check-next: - string:
HIGH…st/SILOptimizer/assemblyvision_remark/basic_yaml.swift0// check-next: - valuetype: klass // check-next: - string:
HIGHtest/stdlib/StringIndex.swift0index: \(index) actual: \(actual) expected: \(expected)
HIGHtest/stdlib/StringIndex.swift0index: \(index) actual: \(actual) expected: \(expected)
HIGHtest/stdlib/StringIndex.swift0index: \(index) actual: \(actual) expected: \(expected)
HIGHtest/stdlib/StringIndex.swift0index: \(index) actual: \(actual) expected: \(expected)
HIGH…ils/swift_build_support/swift_build_support/targets.py0check if this is a darwin platform that needs a connected device for tests.
HIGH…ils/swift_build_support/swift_build_support/targets.py0check if this is a darwin platform that needs a connected device for tests.
HIGH…ils/swift_build_support/swift_build_support/targets.py0check if this is a darwin platform that needs a connected device for tests.
HIGH…ld_support/swift_build_support/products/swiftsyntax.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…uild_support/swift_build_support/products/swiftdocc.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…support/swift_build_support/products/skstresstester.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…ild_support/swift_build_support/products/foundation.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…t_build_support/swift_build_support/products/xctest.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…upport/swift_build_support/products/swiftdoccrender.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…ld_support/swift_build_support/products/libdispatch.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…ft_build_support/swift_build_support/products/swift.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…ld_support/swift_build_support/products/swiftformat.py0product_source_name() -> str the name of the source code directory of this product.
HIGH…ld_support/swift_build_support/products/stdlib_docs.py0return a list of products that this product depends upon
HIGH…_build_support/swift_build_support/products/product.py0return a list of products that this product depends upon
HIGH…pport/swift_build_support/products/staticswiftlinux.py0return a list of products that this product depends upon
HIGH…ift_build_support/swift_build_support/products/curl.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl
HIGH…_build_support/swift_build_support/products/libxml2.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl
HIGH…ift_build_support/swift_build_support/products/zlib.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl
HIGH…ift_build_support/swift_build_support/products/curl.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products
HIGH…_build_support/swift_build_support/products/libxml2.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products
HIGH…ift_build_support/swift_build_support/products/zlib.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products
HIGH…t_build_support/swift_build_support/products/libcxx.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.
HIGH…ild_support/swift_build_support/products/foundation.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.
HIGH…ift_build_support/swift_build_support/products/llvm.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.
HIGH…t_build_support/swift_build_support/products/xctest.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.
HIGH…ld_support/swift_build_support/products/libdispatch.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.
46 more matches not shown…
Hallucination Indicators20 hits · 290 pts
SeverityFileLineSnippet
CRITICALtest/IDE/range_info_basics.swift326// CHECK10-NEXT: let b = a.c.c.c.c.getC().getC()</Content>
CRITICALtest/IDE/range_info_basics.swift338// CHECK11-NEXT: let b = a.c.c.c.c.getC().getC()
CRITICALtest/IDE/range_info_basics.swift352// CHECK12-NEXT: let b = a.c.c.c.c.getC().getC()
CRITICALtest/IDE/range_info_basics.swift50 let b = a.c.c.c.c.getC().getC()
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift141// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_sw
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift175// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, i32, i32, i32, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.asyn
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift243// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, i32, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8i
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift268// SKIP: {{.*}} = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_swift.errorss({{.
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift296// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, i32, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8i
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift360// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_sw
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift418// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_sw
CRITICALtest/IRGen/coroutine_accessors_popless.swift282// CHECK: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE]], i32 16, i64 [
CRITICALtest/IRGen/coroutine_accessors_popless.swift330// CHECK: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE]], i32 16, i64 [
CRITICALtest/IRGen/coroutine_accessors.swift225// CHECK: [[ID:%[^,]+]] = call token @llvm.coro.id.retcon.once.dynamic(
CRITICALtest/IRGen/coroutine_accessors.swift262// CHECK: [[ID:%[^,]+]] = call token @llvm.coro.id.retcon.once.dynamic(
CRITICALtest/IRGen/coroutine_accessors.swift389// CHECK-64: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE_64]], i32 16, i6
CRITICALtest/IRGen/coroutine_accessors.swift390// CHECK-32: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i32(i32 {{%[^,]+}}, i32 16, i64
CRITICALtest/IRGen/coroutine_accessors.swift439// CHECK-64: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE_64]], i32 16, i6
CRITICALtest/IRGen/coroutine_accessors.swift440// CHECK-32: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i32(i32 {{%[^,]+}}, i32 16, i64
CRITICALutils/parser-lib/profile-input.swift1815 make.left.right.top.bottom.equalTo(self.webViewContainer)
AI Slop Vocabulary76 hits · 232 pts
SeverityFileLineSnippet
MEDIUMbenchmark/utils/TestsUtils.swift166 /// which are more robust to measurement errors from system under load,
MEDIUMbenchmark/utils/DriverUtils.swift594 // actually pretty robust, since almost everything is a number; the only
LOWbenchmark/scripts/perf_test_driver/perf_test_driver.py62 # We just use this to create a timeout since we use an older python. Once
MEDIUM…mark/scripts/generate_harness/test_generate_harness.sh3# validation-test/benchmark/generate-harness.test-sh.
MEDIUM…spect/Sources/swift-inspect/AndroidRemoteProcess.swift66 // API, which enumerates allocations in the current process. We leverage this
MEDIUM…Sources/Sources/Optimizer/Utilities/AddressUtils.swift412 // this is not robust.
MEDIUMSwiftCompilerSources/Sources/SIL/Value.swift165 // TODO: This would be much more robust if pai.hasNoescapeCapture simply implied !pai.type.isEscapable
MEDIUM…t/AutoDiff/validation-test/class_differentiation.swift164 // FIXME(TF-1175): Find a robust solution so that derivatives are correct.
MEDIUM…s/access/non-public-inheritance-module-interface.swift6// the @available(*, unavailable) attributes (to ensure this test is robust
MEDIUMtest/Interop/Cxx/stdlib/use-std-string.swift494 // Since std::u32string does not support pushing back UInt32 directly, we utilize UInt16 instead.
MEDIUMtest/Interop/Cxx/stdlib/use-std-string.swift568 // Since std::u32string does not support pushing back UInt32 directly, we utilize UInt16 instead.
MEDIUMtest/attr/attr_abi.swift2180// Essentially part of the name, which is unconstrained.
MEDIUMinclude/swift/IDE/CancellableResult.h29/// Essentially this emulates an enum with associated values as follows
MEDIUM…SILOptimizer/Analysis/DifferentiableActivityAnalysis.h20// Essentially, fixing some inputs and neglecting some outputs allows AD to
MEDIUMinclude/swift/SILOptimizer/Analysis/ValueTracking.h87/// Essentially, it is a simple form of a range analysis.
MEDIUMinclude/swift/Basic/LangOptions.h545 /// TODO: remove this when @_implementationOnly modules are robust enough.
MEDIUMinclude/swift/Basic/PossiblyUniquePtr.h34/// Essentially std::unique_ptr except it dynamically tracks whether the
MEDIUMinclude/swift/Sema/CSBindings.h415 /// Definitely not an lvalue.
MEDIUMinclude/swift/Sema/CSBindings.h417 /// Definitely an lvalue.
MEDIUMinclude/swift/AST/Types.h2022/// in SIL. Essentially a UInt32 with some structural restrictions
MEDIUMinclude/swift/AST/Types.h3943 /// differential/pullback typing rules are more nuanced: see documentation for
MEDIUMinclude/swift/AST/Types.h6024 /// differential/pullback typing rules are more nuanced: see documentation for
MEDIUMinclude/swift/AST/Import.h230 /// \warning This is not very robust; for instance, it doesn't check the
MEDIUMinclude/swift/AST/Import.h245 /// \warning This is not very robust; for instance, it doesn't check the
MEDIUMutils/build-presets.ini706# to LLVM_USE_RUNTIMES to build compiler-rt (#60993), so we can leverage
MEDIUMutils/swift-bench.py12# This file implements a test harness for running Swift performance benchmarks.
MEDIUMutils/swift-bench.py15# take no arguments and returns Int. The harness makes a separate test from
MEDIUMutils/swift-bench.py18# The workflow of the harness is the following:
MEDIUMutils/swift-bench.py22# o When all files are processed, the harness begins to compile them, keeping
MEDIUMutils/swift-bench.py24# o When all files are compiled, the harness begins to run the tests. The
MEDIUMutils/swift-bench.py25# harness chooses a number of iterations for each tests to achieve the best
MEDIUMutils/swift-bench.py29# o At this point everything is ready, and the harness simply reports the
MEDIUMutils/swift-bench.py32# Ideas for the harness improvement and development are welcomed here:
MEDIUMutils/build_swift/build_swift/shell.py237 """In order to utilize the same function decorators used to back-port
LOWutils/bug_reducer/bug_reducer/opt_bug_reducer.py67 # actually have any suffix passes. If we don't, just return.
LOW…ort/swift_build_support/host_specific_configuration.py28 # to make a distinction in between them and can just use args.
MEDIUMlib/SILOptimizer/Mandatory/Differentiation.cpp240 // TODO(TF-1055): Can be removed after we have a robust solution for TF-1055.
MEDIUMlib/SILOptimizer/Mandatory/Differentiation.cpp760 // FIXME: This is not a very robust way of determining if the function
MEDIUMlib/SILOptimizer/Mandatory/Differentiation.cpp837 // FIXME: This is not a very robust way of determining if the function
MEDIUMlib/SILOptimizer/Utils/ConstExpr.cpp2254/// Essentially, these are calls whose "effect" is visible only in their return
MEDIUMlib/SILOptimizer/Utils/OSSACanonicalizeOwned.cpp45/// canonicalization algorithm as simple and robust, leaving the remaining
MEDIUMlib/SILOptimizer/Utils/StackNesting.cpp35/// Essentially, runInDominanceOrder finds an arbitrary simple path to
MEDIUMlib/SILOptimizer/Transforms/ARCCodeMotion.cpp67/// Essentially, we can implement the release code motion by inverting the
MEDIUMlib/SILOptimizer/Differentiation/VJPCloner.cpp1715 // bb arguments have a lifetime-ending `end_borrow` use, and is robust when
MEDIUMlib/ClangImporter/ClangImporter.cpp9237 // TODO: enumerate those kinds in a more precise and robust way
MEDIUMlib/ClangImporter/ClangLookup.cpp474/// Essentially a pair<CXXMethodDecl *, AccessSpecifier>, from qualified lookup.
MEDIUMlib/SILGen/SILGenExpr.cpp7259 // This implementation is not very robust; if TapExpr were to ever become
MEDIUMlib/SILGen/SILGenDecl.cpp914 // metatypes mostly avoids the issue, but it's not robust and doesn't allow
MEDIUMlib/SILGen/SILGenPattern.cpp823/// Essentially equivalent to forwardIntoIrrefutableSubtree, except it
MEDIUMlib/SILGen/SILGenPattern.cpp861/// Essentially equivalent to forwardIntoSubtree, except it preserves
MEDIUMlib/Serialization/Serialization.cpp4701 // reason). However, we need a more robust handling of deserialization
MEDIUMlib/Serialization/Serialization.cpp4752 // need a more robust handling of deserialization dependencies that can
MEDIUMlib/FrontendTool/LoadedModuleTrace.cpp825// Moreover, going forward, it would be nice if trace emission were more robust
MEDIUMlib/Parse/Lexer.cpp2086 // Definitely a regex literal.
MEDIUMlib/IRGen/GenCast.cpp921/// Essentially, both the source and target types must be one of:
MEDIUMlib/IRGen/LoadableTypeInfo.h124 /// Essentially, this is like take-initializing the new explosion.
MEDIUMlib/Sema/TypeCheckAttr.cpp6211 // NOTE: To be robust, result function type parameters should be added only if
MEDIUMlib/Sema/CSRanking.cpp1412 // any way more constrained than another. We'll only utilize this
MEDIUMlib/Sema/TypeCheckDeclObjC.cpp3031 // Definitely no conflicts.
MEDIUMlib/AST/Module.cpp4014 // TODO: Use a more robust discriminator for synthesized files. Pick something
16 more matches not shown…
Verbosity Indicators116 hits · 223 pts
SeverityFileLineSnippet
LOW…Sources/Optimizer/FunctionPasses/AllocBoxToStack.swift176 // We need to check if the captured argument is escaping via the partial_apply.
LOWtest/api-digester/use-interface-for.swift11// Step 1: we should be able to load if we prefer cake.swiftinterface
LOWtest/api-digester/use-interface-for.swift16// Step 2: we shouldn't be able to load if we prefer cake.swiftinterface and cake.swiftinterface is broken
LOWtest/api-digester/use-interface-for.swift19// Step 3: we should be able to load if we don't prefer cake.swiftinterface
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift10// Step 0: Copy relevant files into the temp dir which will serve as the search path
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift16// Step 1: Build this file, causing an implicit build of SIMod and CIMod into the module cache.
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift21// Step 2: Touch the dummy modulemap we passed in with `-Xcc -fmodule-map-file` above.
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift24// Step 3: Re-build this file, and ensure we are not re-building SIMod due to a dependency on the dummy file
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift27// Step 4: Ensure that SIMod was not re-built
LOWtest/ModuleInterface/emit-forward-modules.swift8// Step 1: build swift interface from the source
LOWtest/ModuleInterface/emit-forward-modules.swift11// Step 2: building a module from the interface, and the module should not be a forwarding module.
LOWtest/ModuleInterface/emit-forward-modules.swift16// Step 3: given the adjacent binary module as a candidate, building a module from the interface should give us a forwar
LOWtest/ModuleInterface/emit-forward-modules.swift21// Step 4: given the stale adjacent binary module as a candidate, building a module from the interface should give us a
LOW…no-package-dependencies-on-non-package-interface.swift11// Step 1: Build Foo Swift binary module
LOW…no-package-dependencies-on-non-package-interface.swift14// Step 2: Build Bar Swift binary module and textual interface with a package-only import
LOW…no-package-dependencies-on-non-package-interface.swift17// Step 3: Now that Bar has been built, remove package-only dependency 'Foo' so that any clients of 'Bar' fail to build
LOW…dencies/optional_deps_of_binary_testable_imports.swift10// Step 1: build a binary swift module for `Foo`, make it testable
LOW…dencies/optional_deps_of_binary_testable_imports.swift13// Step 2: scan dependencies
LOWtest/ScanDependencies/explicit-scanner-input.swift6// Step 1: build swift interface and swift module side by side
LOWtest/ScanDependencies/explicit-scanner-input.swift9// Step 2: scan dependency should give us the binary module we specify with 'swift-module-file'
LOWtest/ScanDependencies/explicit-scanner-input.swift13// Step 3: ensure that if multiple inputs for the same module are specified then a warning is emitted and the latter is
LOWtest/ScanDependencies/explicit-scanner-input.swift18// Step 4: verify that the usual invalid module candidate diagnostics apply
LOW…ependencies/package_deps_of_same_package_imports.swift9// Step 1: build Bar swift interface and swift module side by side
LOW…ependencies/package_deps_of_same_package_imports.swift12// Step 2: build Foo swift interface and swift module side by side belonging to package 'Test'
LOW…ependencies/package_deps_of_same_package_imports.swift15// Step 3: scan dependencies with '-no-scanner-module-validation' and '-package-name Test'
LOW…ependencies/package_deps_of_same_package_imports.swift17// Step 4: Ensure that same-package scan can see package-only dependencies
LOW…ependencies/package_deps_of_same_package_imports.swift20// Step 5: scan dependencies with '-no-scanner-module-validation' and no package name
LOW…ependencies/package_deps_of_same_package_imports.swift22// Step 6: Ensure that non-same-package scan can not see package-only dependencies
LOW…anDependencies/optional_deps_of_testable_imports.swift10// Step 1: build swift interface and swift module side by side, make them testable
LOW…anDependencies/optional_deps_of_testable_imports.swift13// Step 2: scan dependencies
LOW…anDependencies/required_deps_of_testable_imports.swift10// Step 1: build swift interface and swift module side by side, make them testable
LOW…anDependencies/required_deps_of_testable_imports.swift13// Step 2: scan dependencies
LOWtest/ScanDependencies/bin_mod_import.swift5// Step 1: Put the textual interface for E in the right place
LOWtest/ScanDependencies/bin_mod_import.swift7// Step 1: Build a swift interface into a binary module
LOWtest/ScanDependencies/bin_mod_import.swift9// Step 3: scan dependency should give us the binary module and a textual swift dependency from it
LOWtest/ScanDependencies/bin_mod_import.swift13// Step 4: Ensure that round-trip serialization does not affect result
LOW…anDependencies/explicit-scanner-input-can-import.swift6// Step 1: build swift interface and swift module side by side
LOW…anDependencies/explicit-scanner-input-can-import.swift9// Step 2: scan dependency should give us the binary module we specify with 'swift-module-file'
LOW…anDependencies/explicit-scanner-input-can-import.swift13// Step 3: ensure that versioned canImport still applies with direct -swift-module-file
LOWtest/ScanDependencies/binary_module_only.swift17// Step 1: build swift interface and swift module side by side
LOWtest/ScanDependencies/binary_module_only.swift20// Step 2: build module from interface and put it in a location separate from the interface file
LOWtest/ScanDependencies/binary_module_only.swift23// Step 3: scan dependencies, pointed only at the binary module file should detect it as a swiftBinaryModule kind of dep
LOWtest/ScanDependencies/binary_module_only.swift27// Step 4: Ensure that round-trip serialization does not affect result
LOW…anDependencies/optional_transitive_dep_load_fail.swift37// Step 1: build Foo Swift module
LOW…anDependencies/optional_transitive_dep_load_fail.swift40// Step 2: scan dependencies and ensure the transitive dependency on "A" is missing
LOW…anDependencies/optional_transitive_dep_load_fail.swift45// Step 3: Run an explicit module compile of this file ensuring object files are produced
LOW…anDependencies/optional_transitive_dep_load_fail.swift48// Step 4: Ensure the resulting object file exists
LOW…ScanDependencies/duplicate_query_optional_import.swift8// Step 1: Build binary module Foo with 'internal import C' and a .swiftinterface
LOW…ScanDependencies/duplicate_query_optional_import.swift11// Step 2: Build binary module Bar with 'internal import C' and a .swiftinterface
LOW…ScanDependencies/duplicate_query_optional_import.swift14// Step 3: Scan dependencies with @testable imports
LOWtest/ScanDependencies/compiled_swift_modules.swift15// Step 1: build swift interface and swift module side by side
LOWtest/ScanDependencies/compiled_swift_modules.swift18// Step 2: scan dependency should give us the binary module adjacent to the interface file.
LOWtest/ScanDependencies/compiled_swift_modules.swift26// Step 3: remove the adjacent module.
LOWtest/ScanDependencies/compiled_swift_modules.swift29// Step 4: scan dependency should give us the interface file.
LOWtest/ScanDependencies/compiled_swift_modules.swift33// Step 4: build prebuilt module cache using the interface.
LOWtest/ScanDependencies/compiled_swift_modules.swift36// Step 5: scan dependency now should give us the prebuilt module cache
LOWtest/ScanDependencies/compiled_swift_modules.swift44// Step 6: update the interface file from where the prebuilt module cache was built.
LOWtest/ScanDependencies/compiled_swift_modules.swift47// Step 7: scan dependency should give us the prebuilt module file even though it's out-of-date.
LOWtest/ScanDependencies/compiled_swift_modules.swift51// Step 8: The new scanner behavior should not give use prebuilt module file because it is out-of-date.
LOW…pendencies/explicit-module-map-forwarding-module.swift7// Step 1: build .swiftmodule and .swiftinterface adjacent to each other from foo.swift
56 more matches not shown…
Excessive Try-Catch Wrapping37 hits · 67 pts
SeverityFileLineSnippet
MEDIUM…Sources/swift-inspect/Operations/DumpConcurrency.swift175 print("Error getting info for async task \(hex: task): \(String(cString: error))")
MEDIUM…Sources/Sources/Optimizer/Utilities/AddressUtils.swift695 print("Error: indeterminate live range")
MEDIUMtest/Interpreter/typed_throws_abi.swift17 print("Error: \(error)")
MEDIUMtest/Interpreter/typed_throws_abi.swift327 print("Error value is: \(String(describing: x))")
MEDIUMtest/stdlib/sort_integers.swift72 print("Error: \(y)")
MEDIUMtest/embedded/concurrency-throwing-task.swift76 print("Error wasn't thrown!?")
MEDIUMutils/download-unpublished-toolchains.py107 print(f"Error: Directory does not exist at {args.output_dir}.")
MEDIUMutils/download-unpublished-toolchains.py113 print(f"Error: Unable to find toolchain for {args.platform}.")
LOWutils/process-stats-dir.py475 except Exception as e:
LOWutils/process-stats-dir.py509 except Exception as e:
MEDIUMutils/optimizer_counters_to_sql.py66 print('Error {}' .format(e.args[0]))
MEDIUMutils/check_freestanding_dependencies.py103 print("Error: Required dependency '{}' missing".format(symbol))
MEDIUMutils/check_freestanding_dependencies.py110 print("Error: Unexpected dependency '{}'".format(symbol))
LOWutils/build_swift/build_swift/presets.py298 except Exception as e:
MEDIUMutils/parser-lib/profile-input.swift1011 print("Error handling URL entry: \"\(text)\".")
MEDIUMutils/parser-lib/profile-input.swift1430 print("Error handling URL entry: \"\(text)\".")
LOWutils/update_checkout/update_checkout/retry.py32 except Exception as e:
LOW…ils/update_checkout/update_checkout/update_checkout.py83 except Exception:
LOW…ils/update_checkout/update_checkout/update_checkout.py217 except Exception:
LOW…ils/update_checkout/update_checkout/update_checkout.py231 except Exception:
LOW…ils/update_checkout/update_checkout/update_checkout.py304 except Exception:
LOW…ils/update_checkout/update_checkout/update_checkout.py310 except Exception:
LOW…ils/update_checkout/update_checkout/update_checkout.py369 except Exception:
MEDIUM…ils/update_checkout/update_checkout/update_checkout.py371 print('Error on repo "%s": %s' % (repo_path, traceback.format_exc()))
LOW…ils/update_checkout/update_checkout/parallel_runner.py82 except Exception as e:
MEDIUM…ils/update_checkout/update_checkout/parallel_runner.py79def run_safely(*args, **kwargs):
LOWutils/jobstats/jobstats.py270 except Exception:
LOW…support/swift_build_support/build_script_invocation.py1005 except Exception:
LOWutils/api_checker/swift-api-checker.py38 except Exception as error:
MEDIUMstdlib/public/core/Result.swift307 /// print("Error retrieving the value: \(error)")
MEDIUMstdlib/public/RuntimeModule/PDB/PDBFile.swift858 print("Error \(error) during lookup")
MEDIUM…blic/Concurrency/AsyncThrowingCompactMapSequence.swift48 /// print("Error: \(error)")
MEDIUMstdlib/public/Concurrency/AsyncThrowingStream.swift115/// print("Error: \(error)")
MEDIUM…lic/Concurrency/AsyncThrowingPrefixWhileSequence.swift42 /// print("Error: \(error)")
MEDIUM…b/public/Concurrency/AsyncThrowingFilterSequence.swift37 /// print("Error: \(error)")
MEDIUMstdlib/public/Concurrency/TaskGroup.swift641 /// print("Error: \(error)")
MEDIUM…dlib/public/Concurrency/AsyncThrowingMapSequence.swift49 /// print("Error: \(error)")
Unused Imports72 hits · 61 pts
SeverityFileLineSnippet
LOWutils/swift-build-modules.py12
LOWutils/build_swift/build_swift/shell.py28
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py17
LOWutils/build_swift/build_swift/argparse/__init__.py21
LOWutils/build_swift/build_swift/argparse/__init__.py21
LOWutils/build_swift/build_swift/argparse/__init__.py21
LOWutils/build_swift/build_swift/argparse/__init__.py21
LOWutils/build_swift/build_swift/argparse/__init__.py23
LOWutils/build_swift/build_swift/argparse/__init__.py23
LOWutils/build_swift/build_swift/argparse/__init__.py24
LOWutils/build_swift/build_swift/argparse/__init__.py25
LOWutils/build_swift/build_swift/argparse/__init__.py25
LOWutils/build_swift/build_swift/argparse/__init__.py25
LOWutils/build_swift/build_swift/argparse/__init__.py25
LOWutils/build_swift/build_swift/argparse/__init__.py25
LOWutils/build_swift/build_swift/argparse/__init__.py25
LOWutils/update_checkout/__init__.py1
LOWutils/update_checkout/update_checkout/__init__.py1
LOW…s/update_checkout/update_checkout/commands/__init__.py1
LOWutils/embedded-test-support/embedded-test-support.py16
LOWutils/jobstats/__init__.py23
LOWutils/jobstats/__init__.py23
LOWutils/jobstats/__init__.py23
LOWutils/jobstats/__init__.py23
LOWutils/jobstats/__init__.py23
LOWutils/swift_build_support/swift_build_support/cmake.py20
LOW…build_support/swift_build_support/products/__init__.py13
LOW…build_support/swift_build_support/products/__init__.py14
LOW…build_support/swift_build_support/products/__init__.py15
LOW…build_support/swift_build_support/products/__init__.py16
LOW…build_support/swift_build_support/products/__init__.py17
LOW…build_support/swift_build_support/products/__init__.py18
LOW…build_support/swift_build_support/products/__init__.py19
LOW…build_support/swift_build_support/products/__init__.py20
LOW…build_support/swift_build_support/products/__init__.py21
LOW…build_support/swift_build_support/products/__init__.py22
LOW…build_support/swift_build_support/products/__init__.py23
LOW…build_support/swift_build_support/products/__init__.py24
LOW…build_support/swift_build_support/products/__init__.py25
LOW…build_support/swift_build_support/products/__init__.py26
LOW…build_support/swift_build_support/products/__init__.py27
LOW…build_support/swift_build_support/products/__init__.py28
LOW…build_support/swift_build_support/products/__init__.py29
LOW…build_support/swift_build_support/products/__init__.py30
LOW…build_support/swift_build_support/products/__init__.py31
LOW…build_support/swift_build_support/products/__init__.py32
LOW…build_support/swift_build_support/products/__init__.py33
LOW…build_support/swift_build_support/products/__init__.py34
LOW…build_support/swift_build_support/products/__init__.py35
LOW…build_support/swift_build_support/products/__init__.py36
LOW…build_support/swift_build_support/products/__init__.py37
LOW…build_support/swift_build_support/products/__init__.py38
LOW…build_support/swift_build_support/products/__init__.py39
12 more matches not shown…
Deep Nesting57 hits · 56 pts
SeverityFileLineSnippet
LOWbenchmark/scripts/create_benchmark.py68
LOWbenchmark/scripts/compare_perf_tests.py107
LOWbenchmark/scripts/compare_perf_tests.py500
LOWtools/SourceKit/bindings/python/sourcekitd/capi.py66
LOWtools/SourceKit/bindings/python/sourcekitd/capi.py220
LOWutils/swift_build_sdk_interfaces.py151
LOWutils/swift_build_sdk_interfaces.py168
LOWutils/swift_build_sdk_interfaces.py330
LOWutils/analyze_code_size.py578
LOWutils/GYBUnicodeDataUtils.py533
LOWutils/GYBUnicodeDataUtils.py593
LOWutils/GYBUnicodeDataUtils.py344
LOWutils/GYBUnicodeDataUtils.py534
LOWutils/GYBUnicodeDataUtils.py595
LOWutils/swift-build-modules.py33
LOWutils/gyb.py122
LOWutils/gyb.py403
LOWutils/gyb.py562
LOWutils/generate_confusables.py32
LOWutils/process-stats-dir.py243
LOWutils/process-stats-dir.py323
LOWutils/process-stats-dir.py514
LOWutils/process-stats-dir.py564
LOWutils/process-stats-dir.py344
LOWutils/build_swift/build_swift/driver_arguments.py46
LOWutils/build_swift/build_swift/defaults.py72
LOWutils/cmpcodesize/cmpcodesize/main.py32
LOWutils/cmpcodesize/cmpcodesize/compare.py66
LOWutils/update_verify_tests/core.py435
LOWutils/update_verify_tests/core.py600
LOWutils/update_verify_tests/core.py790
LOW…ils/update_checkout/update_checkout/update_checkout.py150
LOW…ils/update_checkout/update_checkout/update_checkout.py449
LOW…ils/update_checkout/update_checkout/update_checkout.py694
LOW…ils/update_checkout/update_checkout/update_checkout.py943
LOW…ils/update_checkout/update_checkout/update_checkout.py997
LOWutils/embedded-test-support/embedded-test-support.py31
LOWutils/jobstats/jobstats.py249
LOWutils/jobstats/jobstats.py299
LOW…ort/swift_build_support/host_specific_configuration.py25
LOW…ils/swift_build_support/swift_build_support/targets.py351
LOW…support/swift_build_support/build_script_invocation.py828
LOW…s/swift_build_support/swift_build_support/toolchain.py214
LOW…s/swift_build_support/swift_build_support/workspace.py42
LOW…d_support/swift_build_support/products/sourcekitlsp.py113
LOW…_support/swift_build_support/products/cmake_product.py131
LOW…d_support/swift_build_support/products/indexstoredb.py82
LOW…ift_build_support/swift_build_support/products/llvm.py122
LOW…ift_build_support/swift_build_support/products/llvm.py229
LOW…ift_build_support/swift_build_support/products/llvm.py547
LOW…_build_support/swift_build_support/products/product.py267
LOW…_build_support/swift_build_support/products/product.py460
LOWutils/api_checker/swift-api-checker.py202
LOWutils/api_checker/swift-api-checker.py141
LOWutils/api_checker/sdk-module-lists/infer-imports.py19
LOWutils/api_checker/sdk-module-lists/infer-imports.py44
LOWutils/api_checker/sdk-module-lists/infer-imports.py127
Fake / Example Data32 hits · 44 pts
SeverityFileLineSnippet
LOWbenchmark/single-source/DiffingMyers.swift27let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut lab
LOWbenchmark/single-source/DiffingMyers.swift27let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut lab
LOWbenchmark/single-source/DiffingMyers.swift28let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do]
LOWbenchmark/single-source/DiffingMyers.swift28let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do]
LOWbenchmark/single-source/Diffing.swift69let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut lab
LOWbenchmark/single-source/Diffing.swift69let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut lab
LOWbenchmark/single-source/Diffing.swift70let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do]
LOWbenchmark/single-source/Diffing.swift70let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do]
LOWbenchmark/single-source/StringRemoveDupes.swift17 let text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +
LOWbenchmark/single-source/StringRemoveDupes.swift17 let text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +
LOWbenchmark/single-source/StringComparison.swift772 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift772 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift773 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift773 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift774 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift774 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift775 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift775 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift776 🤔Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringComparison.swift776 🤔Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
LOWbenchmark/single-source/StringRepeating.swift66 Існує багато варіацій уривків з Lorem Ipsum, але більшість з них зазнала
LOWbenchmark/single-source/CountAlgo.swift44 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tempus
LOWbenchmark/single-source/CountAlgo.swift44 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tempus
LOWbenchmark/single-source/CountAlgo.swift48 ipsum primis in faucibus. Lorem ipsum dolor sit amet, consectetur
LOWbenchmark/single-source/CountAlgo.swift48 ipsum primis in faucibus. Lorem ipsum dolor sit amet, consectetur
LOWbenchmark/single-source/CountAlgo.swift53 leo leo sit amet nisl. Lorem ipsum dolor sit amet, consectetur adipiscing
LOWbenchmark/single-source/CountAlgo.swift53 leo leo sit amet nisl. Lorem ipsum dolor sit amet, consectetur adipiscing
LOWbenchmark/single-source/CharacterProperties.swift359 Lorem ipsum something something something...
LOWtest/stdlib/ThreadLocalStorage.swift12var str = "Lorem ipsum dolor sit amet\r\n 🌎 🇺🇸🇨🇦🍁"
LOWtest/stdlib/ThreadLocalStorage.swift12var str = "Lorem ipsum dolor sit amet\r\n 🌎 🇺🇸🇨🇦🍁"
LOW…/build_swift/tests/build_swift/argparse/test_parser.py89 builder.set_defaults('qux', 'Lorem ipsum set dolor')
LOW…/build_swift/tests/build_swift/argparse/test_parser.py95 'qux': 'Lorem ipsum set dolor',
Synthetic Comment Markers5 hits · 38 pts
SeverityFileLineSnippet
HIGHinclude/swift/AST/ASTContext.h1146 /// selector and are instance/class methods as requested. This list will be
HIGHinclude/swift/AST/ModuleLoader.h333 /// selector and are instance/class methods as requested. This list will be
HIGH…cs/CppInteroperability/CppInteroperabilityManifesto.md1966 // Property is synthesized as requested by the annotation.
HIGH…/Mandatory/ConsumeOperatorCopyableAddressesChecker.cpp120/// the lifetime of the address as requested by the user.
HIGHlib/Serialization/ModuleFile.h845 /// selector and are instance/class methods as requested.
Slop Phrases17 hits · 34 pts
SeverityFileLineSnippet
LOWtest/Interop/Cxx/templates/mangling-irgen.swift11// Don't forget to update manglings.txt when changing s4main20receiveInstantiationyySo34__CxxTemplateInst12MagicWrapperI
LOWtest/Interop/Cxx/templates/mangling-irgen.swift18// Don't forget to update manglings.txt when changing s4main19returnInstantiationSo34__CxxTemplateInst12MagicWrapperIiEV
LOWinclude/swift/SIL/SILBuilder.h2877 /// in `someBB`. Don't forget to switch insertion blocks after
LOWutils/GYBUnicodeDataUtils.py217 # Note: if you change any of these parameters, don't forget to update the
LOWutils/GYBUnicodeDataUtils.py217 # Note: if you change any of these parameters, don't forget to update the
LOW…_support/swift_build_support/products/cmake_product.py381 # This is needed to make sure to avoid using the wrong architecture
MEDIUMdocs/archive/LangRef.html534 <p>Here is a simple example:</p>
LOWlib/SILOptimizer/Analysis/DestructorAnalysis.cpp110 // TODO: Don't forget to check resilience of enum decl, like
LOW…timizer/Mandatory/MovedAsyncVarDebugInfoPropagator.cpp391 // don't forget to clean it up before processing the next block.
MEDIUMlib/SILGen/SILGenPattern.cpp3743 // Enter a break/continue scope. As discussed above, the depth we jump to
LOWlib/IRGen/GenDistributed.cpp544 // Don't forget to actually store the argument
LOWlib/Sema/OpenedExistentials.cpp173 // Don't forget to look in the parent.
LOWlib/Sema/TypeCheckType.cpp1103 // If this is situation #2 we need to make sure to switch base to
MEDIUMlib/SIL/IR/SILTypeSubstitution.cpp148 // through to substitute the component types as discussed above.
LOWlib/SIL/Verifier/LinearLifetimeChecker.cpp230 // freeze it. By using a defer here, we can make sure we don't forget to do
MEDIUMstdlib/public/runtime/Metadata.cpp4281 // the field-offset vector, as discussed above.
MEDIUMstdlib/public/Concurrency/DispatchGlobalExecutor.cpp243 // API, but as discussed above, that is less important than avoiding
Cross-Language Confusion7 hits · 32 pts
SeverityFileLineSnippet
HIGHutils/gyb_foundation_support.py27 return false
HIGHutils/gyb_foundation_support.py35 return true
HIGHutils/gyb_foundation_support.py81 return false
HIGHutils/gyb_foundation_support.py84 return true
HIGHutils/swift-bench.py177 if CommandLine.arguments.count <= 2 || CommandLine.arguments[2] == name {
HIGHutils/android/adb_push_built_products/main.py56 print(adb.commands.push(sources, destination))
HIGHutils/swift_build_support/tests/test_shell.py72 shell.capture(["sh", "-c", "echo foo && false"],
Self-Referential Comments10 hits · 30 pts
SeverityFileLineSnippet
MEDIUMbenchmark/scripts/test_compare_perf_tests.py349 # Create a temporary directory
MEDIUMutils/swift-api-dump.py285 # Create the sets of arguments to dump_module_api.
MEDIUMutils/swift-bench.py12# This file implements a test harness for running Swift performance benchmarks.
MEDIUMutils/optimizer_counters_to_sql.py42 # Create the required tables, indices, etc.
MEDIUMutils/protocol_graph.py13# Create a graph of the protocol refinement relationships, associated
MEDIUMutils/lldb/lldbToolBox.py103 # Define an alias that prints rax and also steps one instruction.
MEDIUMutils/jobstats/__init__.py15# This module contains subroutines for loading object-representations of one or
MEDIUMutils/jobstats/jobstats.py15# This file contains subroutines for loading object-representations of one or
MEDIUM…s/swift_build_support/swift_build_support/workspace.py43 # Create a name for the build directory.
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to its containing
Redundant / Tautological Comments9 hits · 12 pts
SeverityFileLineSnippet
LOWtest/lit.cfg679# Check if we overrode the linker; if we do, set a feature to say that, which
LOWtest/lit.cfg1084# Check if we need to run lit tests using the legacy driver or the new driver
LOWtest/lit.cfg2615 # Check if the Android environment needs to be in the name.
LOWtest/Interop/lit.local.cfg15 # Check if CF_OPTIONS macro has been updated to be imported into Swift in C++ mode correctly.
LOWutils/build_swift/build_swift/constants.py140 # Check if Swift is checked out as part of a unified build.
LOWutils/build_swift/build_swift/constants.py194# Set SWIFT_BUILD_ROOT to a directory that will contain a subdirectory for each build
LOWutils/cmpcodesize/cmpcodesize/compare.py68 # Check if multiple architectures are supported by the object file.
LOW…ils/update_checkout/update_checkout/update_checkout.py1013 # Check if `swift` repo itself needs to switch to a cross-repo branch.
LOWutils/api_checker/swift-api-checker.py81 # Check if we need fixed clang modules
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWutils/swift-build-modules.py4# Usage: