Home | History | Annotate | Download | only in Support

Lines Matching full:loc

76 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
78 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() &&
81 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd())
89 SourceMgr::getLineAndColumn(SMLoc Loc, int BufferID) const {
90 if (BufferID == -1) BufferID = FindBufferContainingLoc(Loc);
107 Cache->LastQuery <= Loc.getPointer()) {
114 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr)
151 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
163 if (Loc.isValid()) {
164 int CurBuf = FindBufferContainingLoc(Loc);
171 const char *LineStart = Loc.getPointer();
178 const char *LineEnd = Loc.getPointer();
206 LineAndCol = getLineAndColumn(Loc, CurBuf);
209 return SMDiagnostic(*this, Loc, BufferID, LineAndCol.first,
214 void SourceMgr::PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
217 SMDiagnostic Diagnostic = GetMessage(Loc, Kind, Msg, Ranges, FixIts);
227 if (Loc != SMLoc()) {
228 int CurBuf = FindBufferContainingLoc(Loc);
245 : SM(&sm), Loc(L), Filename(FN), LineNo(Line), ColumnNo(Col), Kind(Kind),
426 makeArrayRef(Loc.getPointer() - ColumnNo,