|
clang 24.0.0git
|
Options for BreakBinaryOperations. More...
#include "clang/Format/Format.h"
Public Member Functions | |
| const BinaryOperationBreakRule * | findRuleForOperator (tok::TokenKind Kind) const |
| BreakBinaryOperationsStyle | getStyleForOperator (tok::TokenKind Kind) const |
| unsigned | getMinChainLengthForOperator (tok::TokenKind Kind) const |
| bool | operator== (const BreakBinaryOperationsOptions &R) const |
| bool | operator!= (const BreakBinaryOperationsOptions &R) const |
Public Attributes | |
| BreakBinaryOperationsStyle | Default |
| The default break style for operators not covered by PerOperator. | |
| std::vector< BinaryOperationBreakRule > | PerOperator |
| Per-operator override rules. | |
Options for BreakBinaryOperations.
If specified as a simple string (e.g. OnePerLine), it behaves like the original enum and applies to all binary operators.
If specified as a struct, allows per-operator configuration:
|
inline |
Definition at line 2605 of file Format.h.
References PerOperator.
Referenced by getMinChainLengthForOperator(), and getStyleForOperator().
|
inline |
Definition at line 2625 of file Format.h.
References findRuleForOperator().
|
inline |
Definition at line 2620 of file Format.h.
References Default, and findRuleForOperator().
|
inline |
|
inline |
Definition at line 2630 of file Format.h.
References Default, and PerOperator.
| BreakBinaryOperationsStyle clang::format::FormatStyle::BreakBinaryOperationsOptions::Default |
The default break style for operators not covered by PerOperator.
Definition at line 2601 of file Format.h.
Referenced by getStyleForOperator(), and operator==().
| std::vector<BinaryOperationBreakRule> clang::format::FormatStyle::BreakBinaryOperationsOptions::PerOperator |
Per-operator override rules.
Definition at line 2603 of file Format.h.
Referenced by findRuleForOperator(), and operator==().