Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Indent

47   std::string Indent(IndentCount*2+4, ' ');
54 // If the to-execute code has \n's in it, indent each subsequent line.
58 OS << Indent << Split.first << "\t // \"" << Matches[0]->first << "\"\n";
63 OS << Indent << Split.first << "\n";
86 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '"
88 OS << Indent << " break;\n";
92 OS << Indent << "if (memcmp(" << StrVariableName << ".data()+" << CharNo
95 OS << Indent << " break;\n";
103 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n";
104 OS << Indent << "default: break;\n";
109 OS << Indent << "case '" << LI->first << "':\t // "
114 OS << Indent << " break;\n";
117 OS << Indent << "}\n";
124 void StringMatcher::Emit(unsigned Indent) const {
136 OS.indent(Indent*2+2) << "switch (" << StrVariableName << ".size()) {\n";
137 OS.indent(Indent*2+2) << "default: break;\n";
141 OS.indent(Indent*2+2) << "case " << LI->first << ":\t // "
144 if (EmitStringMatcherForChar(LI->second, 0, Indent))
145 OS.indent(Indent*2+4) << "break;\n";
148 OS.indent(Indent*2+2) << "}\n";