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