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; };