hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
FormatOption Struct Reference

#include <formatter.hpp>

Public Types

enum class  IndentType { Space , Tab }
 
enum class  BraceType { Attached , NewLine }
 

Public Member Functions

 FormatOption ()=default
 
 FormatOption (IndentType indentType, size_t indentSize, BraceType braceType, size_t maxWidth=80)
 

Public Attributes

enum yoi::FormatOption::IndentType Space
 
size_t indentSize {4}
 
enum yoi::FormatOption::BraceType Attached
 
size_t maxWidth {80}
 

Detailed Description

Definition at line 12 of file formatter.hpp.

Member Enumeration Documentation

◆ BraceType

enum class BraceType
strong
Enumerator
Attached 
NewLine 

Definition at line 18 of file formatter.hpp.

◆ IndentType

enum class IndentType
strong
Enumerator
Space 
Tab 

Definition at line 13 of file formatter.hpp.

Constructor & Destructor Documentation

◆ FormatOption() [1/2]

FormatOption ( )
default

◆ FormatOption() [2/2]

FormatOption ( IndentType  indentType,
size_t  indentSize,
BraceType  braceType,
size_t  maxWidth = 80 
)

Definition at line 11 of file formatter.cpp.

Member Data Documentation

◆ Attached

◆ indentSize

size_t indentSize {4}

Definition at line 17 of file formatter.hpp.

Referenced by main().

◆ maxWidth

size_t maxWidth {80}

Definition at line 22 of file formatter.hpp.

Referenced by main(), and Formatter::willFit().

◆ Space


The documentation for this struct was generated from the following files: