[cfe-dev] clang-format, Doxygen comments

Karl Napf karl.b.napf at googlemail.com
Thu Oct 9 11:22:12 PDT 2014


Hi, I would like to reformat an existing code base using clang-format
(according to the Google guidelines). As shown below, the line breaking of
some Doxygen comments is not yet optimal using version 3.5. Any hints on
how to avoid this? Is there special support for Doxygen comments in
clang-format? Thank you very much in advance for your help! Regards


Before:

void fun(
  RAI last,
  /**< [IN] Random access iterator [...] of the
            input range */

After:

void fun(
    RAI last,
    /**< [IN] Random access iterator [...] of
       the
              input range */

Ideally:

void fun(
    RAI last,
    /**< [IN] Random access iterator [...] of
       the input range */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141009/64337ca1/attachment.html>


More information about the cfe-dev mailing list