[cfe-dev] [clang-format] [clang-extra-tools] How to insert an additional token in clang-format?

Curdeius Curdeius curdeius at gmail.com
Wed Jul 31 06:16:15 PDT 2013


Hi,
I'd like to add an additional rule to clang-format.
Namely, I'd like to have an option to surround short if statements and
short loops with braces '{', '}'.
What's the best way to do it, i.e. to add an additional token (here,
tok::l_brace and tok::r_brace)?

Regards,
Marek Kurdej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130731/1f9c232b/attachment.html>


More information about the cfe-dev mailing list