This is an archive of the discontinued LLVM Phabricator instance.

clang-format: Print token type name instead of number in -debug output
ClosedPublic

Authored by poiru on Jul 12 2015, 9:38 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

poiru updated this revision to Diff 29523.Jul 12 2015, 9:38 AM
poiru retitled this revision from to clang-format: Print token type name instead of number in -debug output.
poiru added a reviewer: djasper.
poiru added a subscriber: cfe-commits.
djasper added inline comments.Jul 13 2015, 12:10 AM
lib/Format/TokenTypes.def
1 ↗(On Diff #29523)

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?

djasper edited edge metadata.Jul 13 2015, 12:10 AM

Oh, and thanks for doing this!

This revision was automatically updated to reflect the committed changes.
poiru added inline comments.Jul 13 2015, 9:20 AM
lib/Format/TokenTypes.def
1 ↗(On Diff #29523)

Done and committed.