Lines Matching refs:SM
680 const SourceManager *SM, in emitDiagnosticMessage() argument
686 emitDiagnosticLoc(Loc, PLoc, Level, Ranges, *SM); in emitDiagnosticMessage()
776 const SourceManager &SM) { in emitDiagnosticLoc() argument
779 FileID FID = SM.getFileID(Loc); in emitDiagnosticLoc()
781 const FileEntry* FE = SM.getFileEntryForID(FID); in emitDiagnosticLoc()
827 SM.getFileID(SM.getExpansionLoc(Loc)); in emitDiagnosticLoc()
836 SourceLocation B = SM.getExpansionLoc(RI->getBegin()); in emitDiagnosticLoc()
837 SourceLocation E = SM.getExpansionLoc(RI->getEnd()); in emitDiagnosticLoc()
845 E = SM.getExpansionRange(RI->getEnd()).second; in emitDiagnosticLoc()
847 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(B); in emitDiagnosticLoc()
848 std::pair<FileID, unsigned> EInfo = SM.getDecomposedLoc(E); in emitDiagnosticLoc()
859 TokSize = Lexer::MeasureTokenLength(E, SM, LangOpts); in emitDiagnosticLoc()
861 OS << '{' << SM.getLineNumber(BInfo.first, BInfo.second) << ':' in emitDiagnosticLoc()
862 << SM.getColumnNumber(BInfo.first, BInfo.second) << '-' in emitDiagnosticLoc()
863 << SM.getLineNumber(EInfo.first, EInfo.second) << ':' in emitDiagnosticLoc()
864 << (SM.getColumnNumber(EInfo.first, EInfo.second)+TokSize) in emitDiagnosticLoc()
877 const SourceManager &SM) { in emitIncludeLocation() argument
887 const SourceManager &SM) { in emitImportLocation() argument
898 const SourceManager &SM) { in emitBuildingModuleLocation() argument
911 const SourceManager &SM, in highlightRange() argument
918 unsigned StartLineNo = SM.getExpansionLineNumber(Begin); in highlightRange()
919 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID) in highlightRange()
922 unsigned EndLineNo = SM.getExpansionLineNumber(End); in highlightRange()
923 if (EndLineNo < LineNo || SM.getFileID(End) != FID) in highlightRange()
929 StartColNo = SM.getExpansionColumnNumber(Begin); in highlightRange()
936 EndColNo = SM.getExpansionColumnNumber(End); in highlightRange()
943 EndColNo += Lexer::MeasureTokenLength(End, SM, LangOpts); in highlightRange()
989 const SourceManager &SM, in buildFixItInsertionLine() argument
1002 = SM.getDecomposedExpansionLoc(I->RemoveRange.getBegin()); in buildFixItInsertionLine()
1003 if (LineNo == SM.getLineNumber(HintLocInfo.first, HintLocInfo.second) && in buildFixItInsertionLine()
1011 = SM.getColumnNumber(HintLocInfo.first, HintLocInfo.second) - 1; in buildFixItInsertionLine()
1062 const SourceManager &SM) { in emitSnippetAndCaret() argument
1079 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in emitSnippetAndCaret()
1085 const char *BufStart = SM.getBufferData(FID, &Invalid).data(); in emitSnippetAndCaret()
1089 unsigned LineNo = SM.getLineNumber(FID, FileOffset); in emitSnippetAndCaret()
1090 unsigned ColNo = SM.getColumnNumber(FID, FileOffset); in emitSnippetAndCaret()
1125 highlightRange(*I, LineNo, FID, sourceColMap, CaretLine, SM, LangOpts); in emitSnippetAndCaret()
1135 Hints, SM, in emitSnippetAndCaret()
1179 emitParseableFixits(Hints, SM); in emitSnippetAndCaret()
1219 const SourceManager &SM) { in emitParseableFixits() argument
1238 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(BLoc); in emitParseableFixits()
1239 std::pair<FileID, unsigned> EInfo = SM.getDecomposedLoc(ELoc); in emitParseableFixits()
1243 EInfo.second += Lexer::MeasureTokenLength(ELoc, SM, LangOpts); in emitParseableFixits()
1247 PresumedLoc PLoc = SM.getPresumedLoc(BLoc); in emitParseableFixits()
1253 OS << "\":{" << SM.getLineNumber(BInfo.first, BInfo.second) in emitParseableFixits()
1254 << ':' << SM.getColumnNumber(BInfo.first, BInfo.second) in emitParseableFixits()
1255 << '-' << SM.getLineNumber(EInfo.first, EInfo.second) in emitParseableFixits()
1256 << ':' << SM.getColumnNumber(EInfo.first, EInfo.second) in emitParseableFixits()