Skip to content

Commit 764a958

Browse files
authored
Merge pull request #22616 from github/redsun82-clang-format-20-1-8
Bump `clang-format` from 17.0.6 to 20.1.8
2 parents 51903c3 + 06ddace commit 764a958

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
exclude: Cargo.lock$|/test([^/]*)/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
1313

1414
- repo: https://github.com/pre-commit/mirrors-clang-format
15-
rev: v17.0.6
15+
rev: v20.1.8
1616
hooks:
1717
- id: clang-format
1818

swift/extractor/infra/SwiftLocationExtractor.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ template <typename T>
3030
concept HasLAndRParenLoc = requires(T e) {
3131
e.getLParenLoc();
3232
e.getRParenLoc();
33-
} && !(HasSourceRange<T>)&&!(HasStartAndEndLoc<T>);
33+
} && !(HasSourceRange<T>) && !(HasStartAndEndLoc<T>);
3434

3535
template <typename T>
36-
concept HasOneLoc = requires(T e) { e.getLoc(); } && !(HasSourceRange<T>)&&(!HasStartAndEndLoc<T>);
36+
concept HasOneLoc =
37+
requires(T e) { e.getLoc(); } && !(HasSourceRange<T>) && (!HasStartAndEndLoc<T>);
3738

3839
template <typename T>
3940
concept HasOneLocField = requires(T e) { e.Loc; };

0 commit comments

Comments
 (0)