Commit 6079b1dc authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

sanity: soften the class.*{ check

* src/sanity/style.test: Allow { on the same line as "enum class".
parent 767e0522
......@@ -181,7 +181,7 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
$GREP 'namespace .*{' $tmp &&
diag 'Opening { should be on its own line.'
$GREP 'class .*{' $tmp &&
$GREP 'class .*{' $tmp | $GREP -v enum &&
diag 'Opening { should be on its own line.'
$GREP '( ' $tmp &&
......@@ -244,7 +244,7 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
diag 'No useless parentheses after return.'
$GREP 'NULL' $tmp &&
diag 'Use 0 instead of NULL. NULL is not portable.'
diag 'Use nullptr instead of NULL.'
# std::list::size() can be O(n). Better use empty() whenever
# possible, even for other containers.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment