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)
llvm-svn: 255099

clang/include/clang/Format/Format.h

index 1e53934..36b0551 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.