Home | History | Annotate | Download | only in Basic

Lines Matching refs:SM

35     Loc.print(OS, SM);
62 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{
69 PresumedLoc PLoc = SM.getPresumedLoc(*this);
81 SM.getExpansionLoc(*this).print(OS, SM);
84 SM.getSpellingLoc(*this).print(OS, SM);
89 SourceLocation::printToString(const SourceManager &SM) const {
92 print(OS, SM);
96 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const {
97 print(llvm::errs(), SM);
101 LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const {
102 print(llvm::errs(), SM);
106 static PresumedLoc PrintDifference(raw_ostream &OS, const SourceManager &SM,
110 PresumedLoc PLoc = SM.getPresumedLoc(Loc);
128 auto PrintedLoc = PrintDifference(OS, SM, SM.getExpansionLoc(Loc), Previous);
131 PrintedLoc = PrintDifference(OS, SM, SM.getSpellingLoc(Loc), PrintedLoc);
136 void SourceRange::print(raw_ostream &OS, const SourceManager &SM) const {
139 auto PrintedLoc = PrintDifference(OS, SM, B, {});
142 PrintDifference(OS, SM, E, PrintedLoc);
148 SourceRange::printToString(const SourceManager &SM) const {
151 print(OS, SM);