[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f411295 1/2: Allow SD-6 feature-test macros
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f411295 1/2: Allow SD-6 feature-test macros |
Date: |
Fri, 23 Apr 2021 06:09:22 -0400 (EDT) |
branch: master
commit f411295b656153cf449d33c42bcc2e0d0a70f23c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Allow SD-6 feature-test macros
Simply adding "__cpp_" to check_reserved_name_exception()'s list of
names would not work, because those names are not regexen.
Incidentally removed an obsolete mention of "TR1".
---
test_coding_rules.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 950b729..5a1868a 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -945,7 +945,7 @@ bool check_reserved_name_exception(std::string const& s)
{"D""__""W""IN32""__"
,"_""W""IN32"
,"__""W""IN32""__"
- // Standard (including TR1).
+ // Standard.
,"_1"
,"_2"
,"_IOFBF"
@@ -1053,7 +1053,7 @@ bool check_reserved_name_exception(std::string const& s)
,"__XSLT_LIBXSLT_H__"
,"__mp_copymem"
};
- return contains(z, s);
+ return contains(z, s) || begins_with(s, "__cpp_");
}
/// Check names reserved by C++2003 [17.4.3.1.2].