|
clang 24.0.0git
|
A rule that specifies how to break a specific set of binary operators. More...
#include "clang/Format/Format.h"
Public Member Functions | |
| bool | operator== (const BinaryOperationBreakRule &R) const |
| bool | operator!= (const BinaryOperationBreakRule &R) const |
Public Attributes | |
| std::vector< tok::TokenKind > | Operators |
| The list of operators this rule applies to, e.g. | |
| BreakBinaryOperationsStyle | Style |
| The break style for these operators (defaults to OnePerLine). | |
| unsigned | MinChainLength |
| Minimum number of operands in a chain before the rule triggers. | |
A rule that specifies how to break a specific set of binary operators.
|
inline |
|
inline |
Definition at line 2575 of file Format.h.
References MinChainLength, Operators, and Style.
| unsigned clang::format::FormatStyle::BinaryOperationBreakRule::MinChainLength |
Minimum number of operands in a chain before the rule triggers.
For example, a && b && c is a chain of length 3. 0 means always break (when the line is too long).
Definition at line 2574 of file Format.h.
Referenced by operator==().
| std::vector<tok::TokenKind> clang::format::FormatStyle::BinaryOperationBreakRule::Operators |
The list of operators this rule applies to, e.g.
&&, ||, |. Alternative spellings (e.g. and for &&) are accepted.
Definition at line 2568 of file Format.h.
Referenced by operator==().
| BreakBinaryOperationsStyle clang::format::FormatStyle::BinaryOperationBreakRule::Style |
The break style for these operators (defaults to OnePerLine).
Definition at line 2570 of file Format.h.
Referenced by operator==().