Lines Matching refs:SM
33 Loc.print(OS, SM); in print()
60 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{ in print()
67 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print()
79 SM.getExpansionLoc(*this).print(OS, SM); in print()
82 SM.getSpellingLoc(*this).print(OS, SM); in print()
87 SourceLocation::printToString(const SourceManager &SM) const { in printToString()
90 print(OS, SM); in printToString()
94 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const { in dump()
95 print(llvm::errs(), SM); in dump()
99 LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const { in dump()
100 print(llvm::errs(), SM); in dump()
104 static PresumedLoc PrintDifference(raw_ostream &OS, const SourceManager &SM, in PrintDifference() argument
108 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in PrintDifference()
126 auto PrintedLoc = PrintDifference(OS, SM, SM.getExpansionLoc(Loc), Previous); in PrintDifference()
129 PrintedLoc = PrintDifference(OS, SM, SM.getSpellingLoc(Loc), PrintedLoc); in PrintDifference()
134 void SourceRange::print(raw_ostream &OS, const SourceManager &SM) const { in print()
137 auto PrintedLoc = PrintDifference(OS, SM, B, {}); in print()
140 PrintDifference(OS, SM, E, PrintedLoc); in print()
146 SourceRange::printToString(const SourceManager &SM) const { in printToString()
149 print(OS, SM); in printToString()