[PATCH] D30860: [clang-format] Add more examples and fix a bug in the py generation script

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 11 03:21:33 PST 2017


sylvestre.ledru added inline comments.


================
Comment at: docs/tools/dump_format_style.py:67
   def __str__(self):
-    return '* ``%s`` %s' % (self.name, doxygen2rst(self.comment))
+    return '\n* ``%s`` %s' % (self.name, doxygen2rst(self.comment))
 
----------------
This is needed to fix a bug in the generation of BraceWrappingFlags
The generation was failing because of a missing empty line with:



> docs/ClangFormatStyleOptions.rst:480: (WARNING/2) Explicit markup ends without a blank line; unexpected unindent.


Let me know if you prefer to see that in a separate patch



https://reviews.llvm.org/D30860





More information about the cfe-commits mailing list