Home | History | Annotate | Download | only in Basic

Lines Matching refs:Line

187 /// AddLineNote - Add a line note to the line table that indicates that there
188 /// is a #line at the specified FID/Offset location which changes the presumed
195 "Adding line entries out of order!");
201 // If this is a '#line 4' after '#line 42 "foo.h"', make sure to remember
206 // If we are after a line marker that switched us to system header mode, or
217 /// used for GNU line markers. If EntryExit is 0, then this doesn't change the
230 "Adding line entries out of order!");
253 /// FindNearestLineEntry - Find the line entry nearest to FID that is before
254 /// it. If there is no line entry before Offset in FID, return null.
258 assert(!Entries.empty() && "No #line entries for this FID after all!");
260 // It is very common for the query to be after the last #line, check this
272 /// \brief Add a new line entry that has already been encoded into
273 /// the internal representation of the line table.
288 /// AddLineNote - Add a line note to the line table for the FileID and offset
302 // Remember that this file has #line directives now if it doesn't already.
310 /// AddLineNote - Add a GNU line marker to the line table.
315 // If there is no filename and no flags, this is treated just like a #line,
316 // which does not change the flags of the previous line marker.
332 // Remember that this file has #line directives now if it doesn't already.
945 /// this is significantly cheaper to compute than the line number.
1008 // Line #1 starts at char 0.
1015 // Skip over the contents of the line.
1044 /// getLineNumber - Given a SourceLocation, return the spelling line number
1046 /// line offsets for the MemoryBuffer, so this is not cheap: use only when
1071 // If this is the first use of line information for this buffer, compute the
1083 // Okay, we know we have a line number table. Do a binary search to find the
1084 // line number that this character position lands on.
1102 // that query and the line number returned. This allows us to narrow the
1204 // If there are no #line directives in this file, just return the whole-file
1210 // See if there is a #line directive before the location.
1214 // If this is before the first line marker, use the file characteristic.
1222 /// Note that this name does not respect #line directives. Use getPresumedLoc
1233 /// SourceLocation specifies. A "presumed location" can be modified by #line
1234 /// or GNU line marker directives. This provides a view on the data that a
1271 // If we have #line directives in this file, update and overwrite the physical
1275 // See if there is a #line directive before this. If so, get it.
1282 // Use the line number specified by the LineEntry. This line number may
1283 // be multiple lines down from the line entry. Add the difference in
1284 // physical line numbers from the query point and the line marker to the
1289 // Note that column numbers are not molested by line markers.
1340 /// \brief Get the source location for the given file:line:col triplet.
1345 unsigned Line,
1348 assert(Line && Col && "Line and column should start from 1!");
1351 return translateLineCol(FirstFID, Line, Col);
1469 /// \brief Get the source location in \arg FID for the given line:col.
1472 unsigned Line,
1487 if (Line == 1 && Col == 1)
1495 // If this is the first use of line information for this buffer, compute the
1504 if (Line > Content->NumLines) {
1511 unsigned FilePos = Content->SourceLineCache[Line - 1];
1757 << NumLineNumsComputed << " files with line #'s computed, "