[PATCH] Fix bug 20892 - clang-format does not handle C-style comments

Roman Kashitsyn romankashicin at gmail.com
Thu Sep 11 03:05:56 PDT 2014


Hi djasper,

http://llvm.org/bugs/show_bug.cgi?id=20892

Made "clang-format on" and "clang-format off" directives more robust
to comment style. Now at least the following cases are supported:

  // clang-format on
  /// clang-format on
  /* clang-format on */
  /** clang-format on */

http://reviews.llvm.org/D5309

Files:
  lib/Format/Format.cpp
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5309.13580.patch
Type: text/x-patch
Size: 2918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140911/3ead1823/attachment.bin>


More information about the cfe-commits mailing list