Home | History | Annotate | Download | only in Frontend

Lines Matching refs:Line

44   bool ShowLineMarkers; ///< Show #line markers.
45 bool UseLineDirective; ///< Use of line directives or line markers.
73 void WriteLineInfo(const char *Filename, int Line,
99 // If we're in microsoft mode, use normal #line instead of line markers.
103 /// Write appropriate line information as either #line directives or GNU line
105 /// \p Line we are located at, using the specified \p EOL line separator, and
106 /// any \p Extra context specifiers in GNU line directives.
107 void InclusionRewriter::WriteLineInfo(const char *Filename, int Line,
113 OS << "#line" << ' ' << Line << ' ' << '"' << Filename << '"';
117 OS << '#' << ' ' << Line << ' ' << '"' << Filename << '"';
198 /// Detect the likely line ending style of \p FromFile by examining the first
201 // detect what line endings the file uses, so that added content does not mix
217 StringRef EOL, int &Line,
228 Line += std::count(FromFile.getBufferStart() + WriteFrom,
241 /// and \p Line to track the number of source lines visited and the progress
247 unsigned &NextToWrite, int &Line) {
249 SM.getFileOffset(StartToken.getLocation()), EOL, Line);
257 EOL, Line);
364 int Line = 1; // The current input file line number.
384 Line);
400 // fix up lineinfo (since commented out directive changed line
402 WriteLineInfo(FileName, Line, FileType, EOL, LineInfoExtra);
411 NextToWrite, Line);
414 WriteLineInfo(FileName, Line, FileType, EOL);
419 NextToWrite, Line);
420 WriteLineInfo(FileName, Line, FileType, EOL);
459 EOL, Line);
464 EOL, Line);
472 EOL, Line, /*EnsureNewLine*/ true);
473 WriteLineInfo(FileName, Line, FileType, EOL);
480 // changes line numbers. These are fixed up right after that, but
482 // that is not processed. So it is necessary to fix the line
483 // numbers one the next line after each #else/#endif as well.
491 EOL, Line, /*EnsureNewLine*/ true);
492 WriteLineInfo(FileName, Line, FileType, EOL);
504 SM.getFileOffset(SM.getLocForEndOfFile(FileId)), EOL, Line,