lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 04ec593 12/12: Make another test more stringe


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 04ec593 12/12: Make another test more stringent
Date: Mon, 28 Jun 2021 18:44:29 -0400 (EDT)

branch: master
commit 04ec5934d7dfb3d3b204af7f676a9682ba029ebf
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Make another test more stringent
---
 test_coding_rules_test.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/test_coding_rules_test.sh b/test_coding_rules_test.sh
index 5ebf026..91f27a6 100755
--- a/test_coding_rules_test.sh
+++ b/test_coding_rules_test.sh
@@ -267,8 +267,9 @@ EOF
 cat >eraseme_cpp_007.cpp <<EOF
 $boilerplate
 for(auto const& i : good())
-for (auto& i : bad_syntax())
-for(auto& i: bad_space())
+for (auto& i : forbidden_space_after_for())
+for(auto& i :missing_right_space())
+for(auto& i: missing_left_space())
 for(int& i : bad_type())
 for(auto i : bad_ref())
 EOF
@@ -457,7 +458,8 @@ File 'eraseme_cpp_005.cpp' contains noncanonical 
d-char-seq: '=='. Instead, use
 File 'eraseme_cpp_006.cpp' has missorted #include directives:
 #include "quux.hpp"
 #include "foo.hpp"
-File 'eraseme_cpp_007.cpp' spurious or malformed for-range-declaration: 'for 
(auto& i : bad_syntax()'.
+File 'eraseme_cpp_007.cpp' spurious or malformed for-range-declaration: 'for 
(auto& i : forbidden_space_after_for()'.
+File 'eraseme_cpp_007.cpp' should have a space on both sides of the colon 
following the for-range-declaration, instead of ' :'.
 File 'eraseme_cpp_007.cpp' should have a space on both sides of the colon 
following the for-range-declaration, instead of ': '.
 File 'eraseme_cpp_007.cpp' for-range-declaration should deduce type rather 
than specify 'int'.
 File 'eraseme_cpp_007.cpp' for-range-declaration should use 'auto&' or 'auto 
const&' instead of 'auto '.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]