99 : m_callback(std::move(callback))
119 : m_callback(std::move(callback))
133 switch (breakingStyle)
Command for outputting opening and closing (curly) braces.
Definition: Braces.hpp:77
Braces(TCallback &&callback, BraceBreakingStyle breakingStyle=BraceBreakingStyle::Inherit) noexcept
Definition: Braces.hpp:96
std::function< void(Writer &)> TCallback
Definition: Braces.hpp:80
Braces(TCallback &&callback, const BracesOptions &options) noexcept
Definition: Braces.hpp:116
void Visit(Writer &writer) override
Definition: Braces.hpp:124
Base class for commands.
Definition: Command.hpp:44
Pure virtual interface for writers.
Definition: Writer.hpp:44
virtual bool IsOnNewLine() const =0
virtual BraceBreakingStyle GetBraceBreakingStyle() const =0
BraceBreakingStyle
Brace breaking style to use when writing to output.
Definition: BraceBreakingStyle.hpp:34
@ Whitesmiths
New line and indent before brace open and brace close.
@ Allman
New line before brace open.
@ Attach
Open brace on the same line.
@ Inherit
Inherit setting from the config, not valid on Writer.
Definition: Braces.hpp:29
Options for the Braces command.
Definition: BracesOptions.hpp:38
std::string chunkBraceOpen
Definition: BracesOptions.hpp:50
std::string chunkBraceClose
Definition: BracesOptions.hpp:55
BraceBreakingStyle breakingStyle
Definition: BracesOptions.hpp:45
Command for decrementing the indentation level on the writer.
Definition: IndentPop.hpp:36
Command for incrementing the indentation level on the writer.
Definition: IndentPush.hpp:36
Command for outtputing a new line chunk.
Definition: NextLine.hpp:36