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

Method indentWithAlign

src/FormatVisitor.cpp:1866–1881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864}
1865
1866std::string FormatVisitor::indentWithAlign() {
1867 std::stringstream ss;
1868 if (config_.get<bool>("use_tab")) {
1869 for (int i = 0; i < indent_; i++) {
1870 ss << "\t";
1871 }
1872 for (int i = 0; i < indentForAlign_; i++) {
1873 ss << " ";
1874 }
1875 } else {
1876 for (int i = 0; i < indent_ + indentForAlign_; i++) {
1877 ss << " ";
1878 }
1879 }
1880 return ss.str();
1881}
1882
1883void FormatVisitor::incIndent() {
1884 LOG_FUNCTION_BEGIN();

Callers

nothing calls this directly

Calls 1

strMethod · 0.80

Tested by

no test coverage detected