# fold-swift — Swift SIL extraction frontend # # Invokes `swiftc -emit-sil` on .swift inputs and emits fold NDJSON # with function metadata, findings (heuristic), and interface records. # # Uses a SWAN-inspired SIL parser (swan_sil_parser) as primary analysis # path, with regex-based heuristics as fallback. fold_swift_sources = ['fold_swift.cpp', 'swan_sil_parser.cpp'] fold_swift_exe = executable( 'fold-swift', fold_swift_sources, dependencies: [json_dep], install: true, build_by_default: true, ) alias_target('fold-swift', fold_swift_exe)