Skip to content

Commit a90bd45

Browse files
committed
More changes.
1 parent 2bd778b commit a90bd45

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/lib/Tooling/Refactoring/AtomicChange.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ combineReplacementsInChanges(llvm::StringRef FilePath,
196196
AtomicChange::AtomicChange(const SourceManager &SM,
197197
SourceLocation KeyPosition) {
198198
const FullSourceLoc FullKeyPosition(KeyPosition, SM);
199-
FileIDAndOffset FileIDAndOffset =
199+
auto FileIDAndOffset =
200200
FullKeyPosition.getSpellingLoc().getDecomposedLoc();
201201
OptionalFileEntryRef FE = SM.getFileEntryRefForID(FileIDAndOffset.first);
202202
assert(FE && "Cannot create AtomicChange with invalid location.");

clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ bool IsValidEditLoc(const clang::SourceManager& SM, clang::SourceLocation Loc) {
4545
if (Loc.isInvalid())
4646
return false;
4747
const clang::FullSourceLoc FullLoc(Loc, SM);
48-
std::pair<clang::FileID, unsigned> FileIdAndOffset =
49-
FullLoc.getSpellingLoc().getDecomposedLoc();
48+
auto FileIdAndOffset = FullLoc.getSpellingLoc().getDecomposedLoc();
5049
return SM.getFileEntryForID(FileIdAndOffset.first) != nullptr;
5150
}
5251

0 commit comments

Comments
 (0)