Lines Matching refs:line
115 std::string line; in readFileLines() local
117 while (std::getline(is, line)) { in readFileLines()
118 result.push_back(std::move(line)); in readFileLines()
131 for (const std::string& line : lines) { in writeFileLines() local
132 os << line << "\n"; in writeFileLines()
242 unsigned current_line = start.line; in findNextSemicolon()
249 .line = current_line, in findNextSemicolon()
260 errx(1, "failed to find semicolon starting from %u:%u", start.line, start.column); in findNextSemicolon()
288 ++current_location.line; in mergeGuards()
293 if (current_location.column == file_lines[current_location.line - 1].length()) { in mergeGuards()
304 const std::string& line = file_lines[current_location.line - 1]; in mergeGuards() local
308 size_t pos = line.find("*/", line_index); in mergeGuards()
321 size_t pos = line.find_first_not_of(" \t", line_index); in mergeGuards()
328 if (line[pos] != '/') { in mergeGuards()
334 if (line.length() <= pos + 1) { in mergeGuards()
341 if (line[pos + 1] == '/') { in mergeGuards()
344 } else if (line[pos + 1] == '*') { in mergeGuards()
351 D("Unexpected output after /: %s\n", line.substr(pos).c_str()); in mergeGuards()
397 file_lines[loc.end.line - 1].insert(loc.end.column, epilogue); in rewriteFile()
398 file_lines[loc.start.line - 1].insert(loc.start.column - 1, prologue); in rewriteFile()