Skip to content

Commit a5f7f11

Browse files
jensmaurertkoeppe
authored andcommitted
[check] Enforce space between cv-qualifier and ref-qualifier
1 parent 9268bb7 commit a5f7f11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/check-source.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ for f in $texlib; do
120120
done |
121121
fail 'No namespace around class definition' || failed=1
122122

123+
# ref-qualifier on member functions with no space, e.g. "const&"
124+
fgrep -ne ') const&' $texlib |
125+
fail 'no space between cv-qualifier and ref-qualifier' || failed=1
126+
123127
# \begin{example/note} with non-whitespace in front on the same line.
124128
grep -ne '^.*[^ ]\s*\\\(begin\|end\){\(example\|note\)}' $texfiles |
125129
fail "non-whitespace before note/example begins" || failed=1

0 commit comments

Comments
 (0)