projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa13f94
)
clang-format: Improve documentation of AlignOperands.
author
Daniel Jasper
<djasper@google.com>
Wed, 9 Dec 2015 07:56:52 +0000
(07:56 +0000)
committer
Daniel Jasper
<djasper@google.com>
Wed, 9 Dec 2015 07:56:52 +0000
(07:56 +0000)
llvm-svn: 255099
clang/include/clang/Format/Format.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/Format/Format.h
b/clang/include/clang/Format/Format.h
index
1e53934
..
36b0551
100644
(file)
--- a/
clang/include/clang/Format/Format.h
+++ b/
clang/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.