lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master b719340 09/12: Reword


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b719340 09/12: Reword
Date: Mon, 28 Jun 2021 18:44:28 -0400 (EDT)

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

    Reword
---
 test_coding_rules.cpp     | 8 ++++----
 test_coding_rules_test.sh | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index f2582b1..2fc1652 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -783,14 +783,14 @@ void check_include_guards(file const& f)
         ,boost::regex(R"(\.hpp$)")
         ,"_hpp"
         );
-    std::string const guard_start =
+    std::string const opening_guard =
             R"(\n#ifndef )"   + guard
         +   R"(\n#define )"   + guard + R"(\n)"
         ;
-    std::string const guard_end = R"(\n#endif // )" + guard + R"(\n+$)";
+    std::string const closing_guard = R"(\n#endif // )" + guard + R"(\n+$)";
 
-    require(f, guard_start, "lacks start part of the canonical header guard.");
-    require(f, guard_end, "lacks end part of the canonical header guard.");
+    require(f, opening_guard, "lacks canonical opening header guard.");
+    require(f, closing_guard, "lacks canonical closing header guard.");
 }
 
 void check_inclusion_order(file const& f)
diff --git a/test_coding_rules_test.sh b/test_coding_rules_test.sh
index 4ed93cc..3f13e82 100755
--- a/test_coding_rules_test.sh
+++ b/test_coding_rules_test.sh
@@ -443,10 +443,10 @@ File 'eraseme_cpp_007.cpp' spurious or malformed 
for-range-declaration: 'for (au
 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 '.
-File 'eraseme_hpp_001.hpp' lacks end part of the canonical header guard.
-File 'eraseme_hpp_002.hpp' lacks start part of the canonical header guard.
-File 'eraseme_hpp_003.hpp' lacks start part of the canonical header guard.
-File 'eraseme_hpp_004.hpp' lacks end part of the canonical header guard.
+File 'eraseme_hpp_001.hpp' lacks canonical closing header guard.
+File 'eraseme_hpp_002.hpp' lacks canonical opening header guard.
+File 'eraseme_hpp_003.hpp' lacks canonical opening header guard.
+File 'eraseme_hpp_004.hpp' lacks canonical closing header guard.
 File 'eraseme_hpp_005.hpp' must include 'config.hpp' first.
 File 'eraseme_hpp_006.hpp' must include 'config.hpp'.
 File 'eraseme_hpp_006.hpp' lacks line '#include "config.hpp"'.



reply via email to

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