Skip to content

Commit

Permalink
Workaround both clang-tidy bugprone-macro-parentheses and also GCC …
Browse files Browse the repository at this point in the history
…`-Wparentheses`

Fixes #206 and #207.
  • Loading branch information
NotZahar authored and foonathan committed Jan 7, 2025
1 parent 34d2adf commit f1dc006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lexy/dsl/punctuator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace lexyd
#define LEXY_PUNCT(Name, String) \
struct _##Name : LEXY_NTTP_STRING(_lit, String) \
{}; \
inline constexpr auto(Name) = _##Name {}
inline constexpr auto Name /* NOLINT */ = _##Name {}

LEXY_PUNCT(period, ".");
LEXY_PUNCT(comma, ",");
Expand Down

0 comments on commit f1dc006

Please sign in to comment.