◐ Shell
reader mode source ↗
Skip to content

Swift: Filter more clang options not recognized by off-the-shelf clang#21992

Open
jketema wants to merge 2 commits into
github:mainfrom
jketema:jketema/swift-filter
Open

Swift: Filter more clang options not recognized by off-the-shelf clang#21992
jketema wants to merge 2 commits into
github:mainfrom
jketema:jketema/swift-filter

Conversation

@jketema

@jketema jketema commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

DCA mostly shows wobble. The changes in the case of SideStore look like genuine improvements. I'm not concerned about the workflow failures, but I can re-run the DCA experiment if needed.

@github-actions github-actions Bot added the Swift label Jun 16, 2026
@jketema jketema force-pushed the jketema/swift-filter branch 2 times, most recently from 3d1aae7 to 61fc91d Compare June 16, 2026 14:14
@jketema jketema force-pushed the jketema/swift-filter branch from 61fc91d to 2eb9c54 Compare June 16, 2026 14:57
@jketema jketema marked this pull request as ready for review June 16, 2026 15:39
Copilot AI review requested due to automatic review settings June 16, 2026 15:39
@jketema jketema requested a review from a team as a code owner June 16, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Pull request overview

This PR refines Swift extraction/integration test behavior by filtering additional Apple/Xcode-specific Clang options that upstream (“off-the-shelf”) Clang may not recognize, and by excluding a synthetic file entry from an Xcode hello-world integration test.

Changes:

  • Extend the Swift tracing config to strip two additional -Xcc-prefixed Clang flags: -fobjc-msgsend-selector-stubs and -fstack-check.
  • Update the hello-xcode integration test query to exclude files whose base name is "<module-includes>".
Show a summary per file
File Description
swift/tools/tracing-config.lua Strips additional unsupported -Xcc Clang flags to reduce extractor/compiler invocation failures with non-Apple Clang.
swift/ql/integration-tests/osx/hello-xcode/Files.ql Filters out the "<module-includes>" synthetic file entry from the integration test results.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@geoffw0 geoffw0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Otherwise changes and DCA LGTM. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants