MCPcopy Create free account
hub / github.com/Koihik/LuaFormatter / indent

Method indent

src/FormatVisitor.cpp:1854–1864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1852}
1853
1854std::string FormatVisitor::indent() {
1855 std::stringstream ss;
1856 for (int i = 0; i < indent_; i++) {
1857 if (config_.get<bool>("use_tab")) {
1858 ss << "\t";
1859 } else {
1860 ss << " ";
1861 }
1862 }
1863 return ss.str();
1864}
1865
1866std::string FormatVisitor::indentWithAlign() {
1867 std::stringstream ss;

Callers

nothing calls this directly

Calls 1

strMethod · 0.80

Tested by

no test coverage detected