From 1c8f682eaf800fffb17ae718cdfc23379af6263a Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Wed, 3 Apr 2024 14:22:17 +0200 Subject: [PATCH] [check] Fix overly aggressive 'constexpr static' check --- tools/check-source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-source.sh b/tools/check-source.sh index f5262fee1e..5ddbdf9dfc 100755 --- a/tools/check-source.sh +++ b/tools/check-source.sh @@ -125,7 +125,7 @@ grep -ne '\bexplicit\b.*\bconstexpr\b' $texlib | fail 'explicit constexpr' || failed=1 # In library declarations, static should not follow constexpr -grep -ne '\bconstexpr\b.*\bstatic\b' $texlib | grep -ve '\bconstexpr\b.*\bnon-static\b' | +grep -ne '\bconstexpr\b.*\sstatic\s' $texlib | fail 'constexpr static' || failed=1 # "Class" heading without namespace