Skip to content

Commit f1dc006

Browse files
NotZaharfoonathan
authored andcommitted
Workaround both clang-tidy bugprone-macro-parentheses and also GCC -Wparentheses
Fixes #206 and #207.
1 parent 34d2adf commit f1dc006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/lexy/dsl/punctuator.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace lexyd
1212
#define LEXY_PUNCT(Name, String) \
1313
struct _##Name : LEXY_NTTP_STRING(_lit, String) \
1414
{}; \
15-
inline constexpr auto(Name) = _##Name {}
15+
inline constexpr auto Name /* NOLINT */ = _##Name {}
1616

1717
LEXY_PUNCT(period, ".");
1818
LEXY_PUNCT(comma, ",");

0 commit comments

Comments
 (0)