[PATCH] D11125: clang-format: Print token type name instead of number in -debug output

Daniel Jasper djasper at google.com
Mon Jul 13 00:10:10 PDT 2015


djasper added inline comments.

================
Comment at: lib/Format/TokenTypes.def:1
@@ +1,2 @@
+//===--- TokenTypes.def - Token Type Database -------------------*- C++ -*-===//
+//
----------------
I think I'd prefer to keep these in the same header for now, i.e. declare a macro like.

#define TYPES \
  TYPE(ArrayInitializerLSquare) \
  TYPE(ArraySubscriptLSquare) \
  TYPE(AttributeParen) \
  ...

and use that instead of #including the .def file.

What do you think?


http://reviews.llvm.org/D11125







More information about the cfe-commits mailing list