Home | History | Annotate | Download | only in Basic

Lines Matching refs:Line

194 /// AddLineNote - Add a line note to the line table that indicates that there
195 /// is a \#line at the specified FID/Offset location which changes the presumed
202 "Adding line entries out of order!");
208 // If this is a '#line 4' after '#line 42 "foo.h"', make sure to remember
213 // If we are after a line marker that switched us to system header mode, or
224 /// used for GNU line markers. If EntryExit is 0, then this doesn't change the
237 "Adding line entries out of order!");
260 /// FindNearestLineEntry - Find the line entry nearest to FID that is before
261 /// it. If there is no line entry before Offset in FID, return null.
265 assert(!Entries.empty() && "No #line entries for this FID after all!");
267 // It is very common for the query to be after the last #line, check this
279 /// \brief Add a new line entry that has already been encoded into
280 /// the internal representation of the line table.
295 /// AddLineNote - Add a line note to the line table for the FileID and offset
309 // Remember that this file has #line directives now if it doesn't already.
317 /// AddLineNote - Add a GNU line marker to the line table.
322 // If there is no filename and no flags, this is treated just like a #line,
323 // which does not change the flags of the previous line marker.
339 // Remember that this file has #line directives now if it doesn't already.
1141 /// this is significantly cheaper to compute than the line number.
1159 // See if we just calculated the line number for this FilePos and can use
1160 // that to lookup the start of the line instead of searching for it.
1228 // Line #1 starts at char 0.
1235 // Skip over the contents of the line.
1297 /// getLineNumber - Given a SourceLocation, return the spelling line number
1299 /// line offsets for the MemoryBuffer, so this is not cheap: use only when
1324 // If this is the first use of line information for this buffer, compute the
1336 // Okay, we know we have a line number table. Do a binary search to find the
1337 // line number that this character position lands on.
1355 // that query and the line number returned. This allows us to narrow the
1457 // If there are no #line directives in this file, just return the whole-file
1463 // See if there is a #line directive before the location.
1467 // If this is before the first line marker, use the file characteristic.
1475 /// Note that this name does not respect \#line directives. Use getPresumedLoc
1486 /// SourceLocation specifies. A "presumed location" can be modified by \#line
1487 /// or GNU line marker directives. This provides a view on the data that a
1525 // If we have #line directives in this file, update and overwrite the physical
1529 // See if there is a #line directive before this. If so, get it.
1536 // Use the line number specified by the LineEntry. This line number may
1537 // be multiple lines down from the line entry. Add the difference in
1538 // physical line numbers from the query point and the line marker to the
1543 // Note that column numbers are not molested by line markers.
1595 /// \brief Get the source location for the given file:line:col triplet.
1600 unsigned Line,
1603 assert(Line && Col && "Line and column should start from 1!");
1606 return translateLineCol(FirstFID, Line, Col);
1725 /// \brief Get the source location in \arg FID for the given line:col.
1728 unsigned Line,
1743 if (Line == 1 && Col == 1)
1751 // If this is the first use of line information for this buffer, compute the
1760 if (Line > Content->NumLines) {
1768 unsigned FilePos = Content->SourceLineCache[Line - 1];
2135 << NumLineNumsComputed << " files with line #'s computed, "