From: Daniel Jasper Date: Wed, 9 Dec 2015 07:56:52 +0000 (+0000) Subject: clang-format: Improve documentation of AlignOperands. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e6a51775f3a7233dc7e5097c1b1b16ebe714f43;p=clang clang-format: Improve documentation of AlignOperands. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255099 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 1e5393440e..36b05516f0 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -100,6 +100,13 @@ struct FormatStyle { /// \brief If \c true, horizontally align operands of binary and ternary /// expressions. + /// + /// Specifically, this aligns operands of a single expression that needs to be + /// split over multiple lines, e.g.: + /// \code + /// int aaa = bbbbbbbbbbbbbbb + + /// ccccccccccccccc; + /// \endcode bool AlignOperands; /// \brief If \c true, aligns trailing comments.