Home | History | Annotate | Download | only in Basic

Lines Matching refs:Line

186 /// AddLineNote - Add a line note to the line table that indicates that there
187 /// is a #line at the specified FID/Offset location which changes the presumed
194 "Adding line entries out of order!");
200 // If this is a '#line 4' after '#line 42 "foo.h"', make sure to remember
205 // If we are after a line marker that switched us to system header mode, or
216 /// used for GNU line markers. If EntryExit is 0, then this doesn't change the
229 "Adding line entries out of order!");
252 /// FindNearestLineEntry - Find the line entry nearest to FID that is before
253 /// it. If there is no line entry before Offset in FID, return null.
257 assert(!Entries.empty() && "No #line entries for this FID after all!");
259 // It is very common for the query to be after the last #line, check this
271 /// \brief Add a new line entry that has already been encoded into
272 /// the internal representation of the line table.
287 /// AddLineNote - Add a line note to the line table for the FileID and offset
301 // Remember that this file has #line directives now if it doesn't already.
309 /// AddLineNote - Add a GNU line marker to the line table.
314 // If there is no filename and no flags, this is treated just like a #line,
315 // which does not change the flags of the previous line marker.
331 // Remember that this file has #line directives now if it doesn't already.
928 /// this is significantly cheaper to compute than the line number.
991 // Line #1 starts at char 0.
998 // Skip over the contents of the line.
1027 /// getLineNumber - Given a SourceLocation, return the spelling line number
1029 /// line offsets for the MemoryBuffer, so this is not cheap: use only when
1054 // If this is the first use of line information for this buffer, compute the
1066 // Okay, we know we have a line number table. Do a binary search to find the
1067 // line number that this character position lands on.
1085 // that query and the line number returned. This allows us to narrow the
1187 // If there are no #line directives in this file, just return the whole-file
1193 // See if there is a #line directive before the location.
1197 // If this is before the first line marker, use the file characteristic.
1205 /// Note that this name does not respect #line directives. Use getPresumedLoc
1216 /// SourceLocation specifies. A "presumed location" can be modified by #line
1217 /// or GNU line marker directives. This provides a view on the data that a
1254 // If we have #line directives in this file, update and overwrite the physical
1258 // See if there is a #line directive before this. If so, get it.
1265 // Use the line number specified by the LineEntry. This line number may
1266 // be multiple lines down from the line entry. Add the difference in
1267 // physical line numbers from the query point and the line marker to the
1272 // Note that column numbers are not molested by line markers.
1304 /// \brief Get the source location for the given file:line:col triplet.
1309 unsigned Line, unsigned Col) {
1311 assert(Line && Col && "Line and column should start from 1!");
1421 if (Line == 1 && Col == 1)
1429 // If this is the first use of line information for this buffer, compute the
1438 if (Line > Content->NumLines) {
1445 unsigned FilePos = Content->SourceLineCache[Line - 1];
1577 << NumLineNumsComputed << " files with line #'s computed.\n";