Skip to content

Commit

Permalink
Avoid else-if after return, NFC
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Zhang <jun@junz.org>
  • Loading branch information
junaire committed Aug 27, 2022
1 parent a4f84f1 commit b9c2b60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/Basic/SourceManager.cpp
Expand Up @@ -1795,11 +1795,11 @@ void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache,
if (Entry.getFile().NumCreatedFIDs)
ID += Entry.getFile().NumCreatedFIDs - 1 /*because of next ++ID*/;
continue;
} else if (IncludeLoc.isValid()) {
// If file was included but not from FID, there is no more files/macros
// that may be "contained" in this file.
return;
}
// If file was included but not from FID, there is no more files/macros
// that may be "contained" in this file.
if (IncludeLoc.isValid())
return;
continue;
}

Expand Down

0 comments on commit b9c2b60

Please sign in to comment.