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

Birunthan Mohanathas birunthan at mohanathas.com
Mon Jul 13 09:21:00 PDT 2015


poiru added inline comments.

================
Comment at: lib/Format/TokenTypes.def:1
@@ +1,2 @@
+//===--- TokenTypes.def - Token Type Database -------------------*- C++ -*-===//
+//
----------------
djasper wrote:
> 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?
Done and committed.


Repository:
  rL LLVM

http://reviews.llvm.org/D11125







More information about the cfe-commits mailing list