Merge pull request #21992 from jketema/jketema/swift-filter

Swift: Filter more clang options not recognized by off-the-shelf clang
This commit is contained in:
Jeroen Ketema
2026-06-17 11:32:58 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
import swift
from File f
where exists(f.getRelativePath()) or f instanceof UnknownFile
where
(exists(f.getRelativePath()) or f instanceof UnknownFile) and
not f.getBaseName() = "<module-includes>"
select f

View File

@@ -54,6 +54,8 @@ function RegisterExtractorPack(id)
strip_unsupported_arg(args, '-experimental-skip-non-inlinable-function-bodies-without-types', 0)
strip_unsupported_clang_arg(args, '-ivfsstatcache', 1)
strip_unsupported_clang_arg(args, '-fno-odr-hash-protocols', 0)
strip_unsupported_clang_arg(args, '-fobjc-msgsend-selector-stubs', 0)
strip_unsupported_clang_arg(args, '-fstack-check', 0)
strip_unsupported_clang_arg(args, '-clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation', 0)
strip_unsupported_clang_arg(args, '-clang-vendor-feature=+enableAggressiveVLAFolding', 0)
strip_unsupported_clang_arg(args, '-clang-vendor-feature=+revert09abecef7bbf', 0)