Skip to content

Commit 60f756c

Browse files
authored
remove ada_constexpr declaration (#758)
1 parent d10fce0 commit 60f756c

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

include/ada/checkers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ inline constexpr bool is_normalized_windows_drive_letter(
8585
* does not contain uppercase ASCII characters (the input should have been
8686
* lowered cased before calling this function) and is not empty.
8787
*/
88-
ada_really_inline ada_constexpr bool is_ipv4(std::string_view view) noexcept;
88+
ada_really_inline constexpr bool is_ipv4(std::string_view view) noexcept;
8989

9090
/**
9191
* @private

include/ada/common_defs.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,6 @@ namespace ada {
173173
}
174174
} // namespace ada
175175

176-
#if defined(__GNUC__) && !defined(__clang__)
177-
#if __GNUC__ <= 8
178-
#define ADA_OLD_GCC 1
179-
#endif // __GNUC__ <= 8
180-
#endif // defined(__GNUC__) && !defined(__clang__)
181-
182-
#if ADA_OLD_GCC
183-
#define ada_constexpr
184-
#else
185-
#define ada_constexpr constexpr
186-
#endif
187-
188176
// Unless the programmer has already set ADA_DEVELOPMENT_CHECKS,
189177
// we want to set it under debug builds. We detect a debug build
190178
// under Visual Studio when the _DEBUG macro is set. Under the other

include/ada/unicode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ ada_really_inline constexpr bool is_ascii_tab_or_newline(char c) noexcept;
147147
* @details A double-dot path segment must be ".." or an ASCII case-insensitive
148148
* match for ".%2e", "%2e.", or "%2e%2e".
149149
*/
150-
ada_really_inline ada_constexpr bool is_double_dot_path_segment(
150+
ada_really_inline constexpr bool is_double_dot_path_segment(
151151
std::string_view input) noexcept;
152152

153153
/**

src/checkers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace ada::checkers {
66

7-
ada_really_inline ada_constexpr bool is_ipv4(std::string_view view) noexcept {
7+
ada_really_inline constexpr bool is_ipv4(std::string_view view) noexcept {
88
// The string is not empty and does not contain upper case ASCII characters.
99
//
1010
// Optimization. To be considered as a possible ipv4, the string must end

src/unicode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ ada_really_inline constexpr bool is_ascii_tab_or_newline(
284284
constexpr std::string_view table_is_double_dot_path_segment[] = {
285285
"..", "%2e.", ".%2e", "%2e%2e"};
286286

287-
ada_really_inline ada_constexpr bool is_double_dot_path_segment(
287+
ada_really_inline constexpr bool is_double_dot_path_segment(
288288
std::string_view input) noexcept {
289289
// This will catch most cases:
290290
// The length must be 2,4 or 6.

0 commit comments

Comments
 (0)