Skip to content

Commit

Permalink
Fix formatting of WHISKER_KEYWORDS()
Browse files Browse the repository at this point in the history
Summary: clang-format is confused because `not` is a unary operator in C++.

Reviewed By: vitaut

Differential Revision: D62269780

fbshipit-source-id: bf17d67a92754899d9631ad246a78a0af61ca25c
  • Loading branch information
praihan authored and facebook-github-bot committed Sep 9, 2024
1 parent 37ac6c6 commit 258bb05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thrift/compiler/whisker/token.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <fmt/core.h>
#include <fmt/ranges.h>

// clang-format off
// "X macro" pattern to de-dupe code:
// https://en.wikipedia.org/wiki/X_macro
#define WHISKER_KEYWORDS() \
Expand All @@ -43,7 +44,7 @@
WHISKER_KEYWORD(let) \
WHISKER_KEYWORD(and) \
WHISKER_KEYWORD(or) \
WHISKER_KEYWORD(not ) \
WHISKER_KEYWORD(not) \
WHISKER_KEYWORD(with) \
WHISKER_KEYWORD(this) \
WHISKER_KEYWORD(define) \
Expand All @@ -52,9 +53,9 @@
WHISKER_KEYWORD(import) \
WHISKER_KEYWORD(export) \
WHISKER_KEYWORD(from)
// clang-format on

namespace whisker {

namespace {
struct token_kind_info {
tok kind;
Expand Down

0 comments on commit 258bb05

Please sign in to comment.