]> granicus.if.org Git - clang/commitdiff
clang-format: Improve documentation of AlignOperands.
authorDaniel Jasper <djasper@google.com>
Wed, 9 Dec 2015 07:56:52 +0000 (07:56 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 9 Dec 2015 07:56:52 +0000 (07:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255099 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Format/Format.h

index 1e5393440e3bb828b2023b4be88cfee9f71c2420..36b05516f0edec750eae585b4c49b11ae38409b1 100644 (file)
@@ -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.