Skip to content

Commit 9526420

Browse files
jensmaurertkoeppe
authored andcommitted
[check] Fix overly aggressive 'constexpr static' check
1 parent 6de4e69 commit 9526420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/check-source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ grep -ne '\bexplicit\b.*\bconstexpr\b' $texlib |
125125
fail 'explicit constexpr' || failed=1
126126

127127
# In library declarations, static should not follow constexpr
128-
grep -ne '\bconstexpr\b.*\bstatic\b' $texlib | grep -ve '\bconstexpr\b.*\bnon-static\b' |
128+
grep -ne '\bconstexpr\b.*\sstatic\s' $texlib |
129129
fail 'constexpr static' || failed=1
130130

131131
# "Class" heading without namespace

0 commit comments

Comments
 (0)