forked from OSchip/llvm-project
Add an usage example of BreakBeforeBraces
Reviewers: djasper Reviewed By: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D37531 llvm-svn: 312717
This commit is contained in:
parent
44d1ef140b
commit
7372d48c74
|
|
@ -533,6 +533,15 @@ the configuration (without a prefix: ``Auto``).
|
||||||
If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
|
If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
|
||||||
each individual brace case should be handled. Otherwise, this is ignored.
|
each individual brace case should be handled. Otherwise, this is ignored.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
# Example of usage:
|
||||||
|
BreakBeforeBraces: Custom
|
||||||
|
BraceWrapping:
|
||||||
|
AfterEnum: true
|
||||||
|
AfterStruct: false
|
||||||
|
SplitEmptyFunction: false
|
||||||
|
|
||||||
Nested configuration flags:
|
Nested configuration flags:
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -746,6 +746,14 @@ struct FormatStyle {
|
||||||
///
|
///
|
||||||
/// If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
|
/// If ``BreakBeforeBraces`` is set to ``BS_Custom``, use this to specify how
|
||||||
/// each individual brace case should be handled. Otherwise, this is ignored.
|
/// each individual brace case should be handled. Otherwise, this is ignored.
|
||||||
|
/// \code{.yaml}
|
||||||
|
/// # Example of usage:
|
||||||
|
/// BreakBeforeBraces: Custom
|
||||||
|
/// BraceWrapping:
|
||||||
|
/// AfterEnum: true
|
||||||
|
/// AfterStruct: false
|
||||||
|
/// SplitEmptyFunction: false
|
||||||
|
/// \endcode
|
||||||
BraceWrappingFlags BraceWrapping;
|
BraceWrappingFlags BraceWrapping;
|
||||||
|
|
||||||
/// \brief If ``true``, ternary operators will be placed after line breaks.
|
/// \brief If ``true``, ternary operators will be placed after line breaks.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue