| 1864 | } |
| 1865 | |
| 1866 | std::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 | |
| 1883 | void FormatVisitor::incIndent() { |
| 1884 | LOG_FUNCTION_BEGIN(); |