|
CppParser
|
Helper class to manage indentation while writing C++ file from AST. More...
#include <cppindent.h>

Public Types | |
| enum | Type { kTab , kSingleSpace , kDoubleSpace , kTripleSpace , kQuadSpace } |
Public Member Functions | |
| CppIndent (std::uint16_t initialLevel=0, Type type=kDoubleSpace) | |
| std::uint16_t | depth () const |
| CppIndent & | operator++ () |
| CppIndent & | operator-- () |
| CppIndent | operator++ (int) |
| CppIndent | operator-- (int) |
| const char * | indentStr () const |
| std::string | toString () const |
| void | emit (std::ostream &stm) const |
| CppIndent | resetted () const |
Private Attributes | |
| std::uint16_t | indentLevel_ |
| const std::uint16_t | initialLevel_ |
| Type | type_ |
Helper class to manage indentation while writing C++ file from AST.
Definition at line 32 of file cppindent.h.
| enum CppIndent::Type |
| Enumerator | |
|---|---|
| kTab | |
| kSingleSpace | |
| kDoubleSpace | |
| kTripleSpace | |
| kQuadSpace | |
Definition at line 35 of file cppindent.h.
|
inline |
Definition at line 50 of file cppindent.h.
|
inline |
Definition at line 56 of file cppindent.h.
|
inline |
Definition at line 100 of file cppindent.h.


|
inline |
|
inline |
Definition at line 60 of file cppindent.h.
|
inline |
Definition at line 71 of file cppindent.h.
|
inline |
Definition at line 65 of file cppindent.h.
|
inline |
Definition at line 77 of file cppindent.h.
|
inline |
|
inline |
Definition at line 90 of file cppindent.h.


|
private |
Definition at line 45 of file cppindent.h.
|
private |
Definition at line 46 of file cppindent.h.
|
private |
Definition at line 47 of file cppindent.h.