|
clang 24.0.0git
|
Different styles for merging short functions containing at most one statement. More...
#include "clang/Format/Format.h"
Public Member Functions | |
| bool | operator== (const ShortFunctionStyle &R) const |
| bool | operator!= (const ShortFunctionStyle &R) const |
| ShortFunctionStyle () | |
| ShortFunctionStyle (bool Empty, bool Inline, bool Other) | |
| bool | isAll () const |
Static Public Member Functions | |
| static ShortFunctionStyle | setEmptyOnly () |
| static ShortFunctionStyle | setEmptyAndInline () |
| static ShortFunctionStyle | setInlineOnly () |
| static ShortFunctionStyle | setAll () |
Public Attributes | |
| bool | Empty |
| Merge top-level empty functions. | |
| bool | Inline |
| Merge functions defined inside a class. | |
| bool | Other |
| Merge all functions fitting on a single line. | |
Different styles for merging short functions containing at most one statement.
They can be read as a whole for compatibility. The choices are:
Also can be specified as a nested configuration flag:
|
inline |
Definition at line 935 of file Format.h.
References Empty, false, Inline, and Other.
Referenced by operator!=(), operator==(), setAll(), setEmptyAndInline(), setEmptyOnly(), and setInlineOnly().
|
inline |
|
inline |
Definition at line 934 of file Format.h.
References ShortFunctionStyle().
|
inline |
|
inlinestatic |
Definition at line 948 of file Format.h.
References ShortFunctionStyle().
Referenced by clang::format::getLLVMStyle().
|
inlinestatic |
Definition at line 942 of file Format.h.
References ShortFunctionStyle().
Referenced by clang::format::getChromiumStyle(), and clang::format::getMozillaStyle().
|
inlinestatic |
Definition at line 939 of file Format.h.
References ShortFunctionStyle().
Referenced by clang::format::getGoogleStyle().
|
inlinestatic |
Definition at line 945 of file Format.h.
References ShortFunctionStyle().
| bool clang::format::FormatStyle::ShortFunctionStyle::Empty |
Merge top-level empty functions.
Definition at line 907 of file Format.h.
Referenced by isAll(), operator==(), ShortFunctionStyle(), and ShortFunctionStyle().
| bool clang::format::FormatStyle::ShortFunctionStyle::Inline |
Merge functions defined inside a class.
Definition at line 920 of file Format.h.
Referenced by isAll(), operator==(), ShortFunctionStyle(), and ShortFunctionStyle().
| bool clang::format::FormatStyle::ShortFunctionStyle::Other |
Merge all functions fitting on a single line.
Please note that this control does not include Empty
Definition at line 929 of file Format.h.
Referenced by isAll(), operator==(), ShortFunctionStyle(), and ShortFunctionStyle().