From 06ddaceaa20ca2dbb7f791270233b372aca163f6 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Fri, 18 Sep 2026 10:18:50 +0200 Subject: [PATCH] Bump `clang-format` from 17.0.6 to 20.1.8 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> --- .pre-commit-config.yaml | 2 +- swift/extractor/infra/SwiftLocationExtractor.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37bd56bb11ee..fdbc68e86d7e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: exclude: Cargo.lock$|/test([^/]*)/.*$(? concept HasLAndRParenLoc = requires(T e) { e.getLParenLoc(); e.getRParenLoc(); -} && !(HasSourceRange)&&!(HasStartAndEndLoc); +} && !(HasSourceRange) && !(HasStartAndEndLoc); template -concept HasOneLoc = requires(T e) { e.getLoc(); } && !(HasSourceRange)&&(!HasStartAndEndLoc); +concept HasOneLoc = + requires(T e) { e.getLoc(); } && !(HasSourceRange) && (!HasStartAndEndLoc); template concept HasOneLocField = requires(T e) { e.Loc; };