[PATCH] Fix bug 20892 - clang-format does not handle C-style comments
Daniel Jasper
djasper at google.com
Thu Sep 11 07:19:48 PDT 2014
One comment, otherwise looks good.
================
Comment at: lib/Format/Format.cpp:1736
@@ +1735,3 @@
+ static bool isFormatOffDirective(const FormatToken &Tok) {
+ return Tok.is(tok::comment) && (Tok.TokenText == "// clang-format off" ||
+ Tok.TokenText == "/* clang-format off */");
----------------
I don't think it is worth pulling out these functions, but I don't feel strongly.
http://reviews.llvm.org/D5309
More information about the cfe-commits
mailing list