Lines Matching refs:Line
39 bool ShowLineMarkers; ///< Show #line markers.
40 bool UseLineDirective; ///< Use of line directives or line markers.
65 void WriteLineInfo(const char *Filename, int Line,
87 // If we're in microsoft mode, use normal #line instead of line markers.
91 /// Write appropriate line information as either #line directives or GNU line
93 /// \p Line we are located at, using the specified \p EOL line separator, and
94 /// any \p Extra context specifiers in GNU line directives.
95 void InclusionRewriter::WriteLineInfo(const char *Filename, int Line,
101 OS << "#line" << ' ' << Line << ' ' << '"' << Filename << '"';
105 OS << '#' << ' ' << Line << ' ' << '"' << Filename << '"';
179 /// Detect the likely line ending style of \p FromFile by examining the first
182 // detect what line endings the file uses, so that added content does not mix
198 StringRef EOL, int &Line,
204 Line += std::count(FromFile.getBufferStart() + WriteFrom,
217 /// and \p Line to track the number of source lines visited and the progress
223 unsigned &NextToWrite, int &Line) {
225 SM.getFileOffset(StartToken.getLocation()), EOL, Line);
233 EOL, Line);
271 int Line = 1; // The current input file line number.
291 Line);
300 WriteLineInfo(FileName, Line, FileType, EOL, " 2");
302 // fix up lineinfo (since commented out directive changed line
304 WriteLineInfo(FileName, Line, FileType, EOL);
313 NextToWrite, Line);
316 WriteLineInfo(FileName, Line, FileType, EOL);
321 NextToWrite, Line);
322 WriteLineInfo(FileName, Line, FileType, EOL);
335 SM.getFileOffset(SM.getLocForEndOfFile(FileId)) + 1, EOL, Line,