[SourceManager] Rename line and column APIs for clarity

This commit is contained in:
Owen Voorhees
2020-05-21 12:54:07 -05:00
parent 0ab9fd718a
commit 45bc578ae5
42 changed files with 145 additions and 117 deletions

View File

@@ -850,7 +850,7 @@ SourceFile::getBasicLocsForDecl(const Decl *D) const {
auto setLineColumn = [&SM](LineColumn &Home, SourceLoc Loc) {
if (Loc.isValid()) {
std::tie(Home.Line, Home.Column) = SM.getLineAndColumn(Loc);
std::tie(Home.Line, Home.Column) = SM.getPresumedLineAndColumnForLoc(Loc);
}
};
#define SET(X) setLineColumn(Result.X, D->get##X());