FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bump `clang-format` from 17.0.6 to 20.1.8 by redsun82 · Pull Request #22616 · github/codeql · GitHub

/ codeql Public

Bump clang-format from 17.0.6 to 20.1.8 - #22616

Merged
redsun82 merged 1 commit into
mainfrom
redsun82-clang-format-20-1-8
Sep 18, 2026
Merged

redsun82 merged 1 commit into
mainfrom
redsun82-clang-format-20-1-8

Conversation

Copy link
Copy Markdown
Contributor

Bumps the mirrors-clang-format pin in .pre-commit-config.yaml, the only place this repo records the clang-format version.

Only one file formats differently under 20.1.8. 17.0.6 drops the spaces around && in a C++20 concept conjunction, emitting )&&!(; 20.1.8 gets it right:

-} && !(HasSourceRange<T>)&&!(HasStartAndEndLoc<T>);
+} && !(HasSourceRange<T>) && !(HasStartAndEndLoc<T>);

pre-commit run clang-format --all-files (what swift.yml runs) passes clean.

17.0.6 dropped the spaces around `&&` in C++20 concept conjunctions,
emitting `)&&!(`. 20.1.8 formats it correctly, which accounts for the
reformat of `swift/extractor/infra/SwiftLocationExtractor.h`.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 18, 2026 08:19
redsun82 requested review from a team as code owners September 18, 2026 08:19

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Copilot review overview

🟢 Approval recommended

The version exists and the formatting-only changes preserve semantics.

Review effort: Balanced
Findings: None

What changed in this PR

Updates the repository’s clang-format pin and applies the resulting formatting changes.

Changes:

  • Bumps clang-format from 17.0.6 to 20.1.8.
  • Reformats affected C++20 concept conjunctions.
File Description
.pre-commit-config.yaml Updates the clang-format revision.
swift/​extractor/​infra/​SwiftLocationExtractor.h Applies clang-format 20.1.8 output.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Copilot review overview

🟢 Approval recommended

The referenced tag exists and the formatting-only source changes preserve behavior.

Review effort: Balanced
Findings: None

github-actions Bot added the Swift label Sep 18, 2026

paldepind 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks great 👍

redsun82 merged commit 764a958 into main Sep 18, 2026
20 checks passed
redsun82 deleted the redsun82-clang-format-20-1-8 branch September 18, 2026 10:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL