[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/expm1_log1p ed09f04f 3/4: Allow certain reserved
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/expm1_log1p ed09f04f 3/4: Allow certain reserved names |
Date: |
Thu, 19 May 2022 06:37:38 -0400 (EDT) |
branch: odd/expm1_log1p
commit ed09f04f37cdfd2e7e7468a01476fb00b7d2d54c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Allow certain reserved names
---
test_coding_rules.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index be3f7faf..45446e00 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -934,6 +934,7 @@ bool check_reserved_name_exception(std::string const& s)
,"__STDC_IEC_559__"
,"__STDC__"
,"__cplusplus"
+ ,"__func__"
,"__has_include"
// Platform identification.
,"_M_IX86"
@@ -1030,7 +1031,11 @@ bool check_reserved_name_exception(std::string const& s)
,"__XSLT_LIBXSLT_H__"
,"__mp_copymem"
};
- return contains(z, s) || begins_with(s, "__cpp_");
+ return
+ contains(z, s)
+ || begins_with(s, "__builtin_")
+ || begins_with(s, "__cpp_")
+ ;
}
/// Check names reserved by C++2003 [17.4.3.1.2].