summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-hooks/sanitize-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index dae7174..1a42fcf 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -862,7 +862,7 @@ while (<DIFF>) {
styleFail("Leading tabs") if (/^\t+/);
if ($ctlkw_check) {
styleFail("Flow control keywords must be followed by a single space")
- if (/\b(if|elsif|for|foreach|Q_FOREACH|while|do|switch)(| +)\(/);
+ if (/\b(if|if constexpr|elsif|for|foreach|Q_FOREACH|while|do|switch)(| +)\(/);
}
}
}