Lines Matching refs:line
58 // Let's assume that the rest of the line is a PP directive.
132 llvm::StringRef line,
142 // The line might end in a backslash which would cause Clang to drop the
143 // backslash and the terminating new line. This makes sense when parsing C++,
145 // not lose this information we remove the new line here so that Clang knows
146 // this is just a single line we are highlighting. We add back the newline
149 // There are a few legal line endings Clang recognizes and we need to
151 if (line.consume_back("\r\n"))
153 else if (line.consume_back("\n"))
155 else if (line.consume_back("\r"))
162 std::string full_source = previous_lines.str() + line.str();
187 // True once we actually lexed the user provided line.
205 // We don't need to print any tokens without a spelling line number.
222 llvm::StringRef tok_str = line.substr(start, token.getLength());
246 // Add the line ending we trimmed before tokenizing.
251 // user the normal line and pretend we don't know how to highlight it. In
254 result << line;
255 assert(false && "We couldn't find the user line in the input file?");