Skip to content

Commit b590ba7

Browse files
committed
[NFC] Rename 'DependentModules' in ModuleFile to TransitiveImports
Required in the review process of #92083
1 parent e73e495 commit b590ba7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clang/include/clang/Serialization/ASTReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@ class ASTReader
22462246

22472247
auto [Loc, ModuleFileIndex] = ReadUntranslatedSourceLocation(Raw, Seq);
22482248
ModuleFile *OwningModuleFile =
2249-
ModuleFileIndex == 0 ? &MF : MF.DependentModules[ModuleFileIndex - 1];
2249+
ModuleFileIndex == 0 ? &MF : MF.TransitiveImports[ModuleFileIndex - 1];
22502250

22512251
assert(!SourceMgr.isLoadedSourceLocation(Loc) &&
22522252
"Run out source location space");

clang/include/clang/Serialization/ModuleFile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,11 @@ class ModuleFile {
513513

514514
/// List of modules which this modules dependent on. Different
515515
/// from `Imports`, this includes indirectly imported modules too.
516-
/// The order of DependentModules is significant. It should keep
516+
/// The order of TransitiveImports is significant. It should keep
517517
/// the same order with that module file manager when we write
518518
/// the current module file. The value of the member will be initialized
519519
/// in `ASTReader::ReadModuleOffsetMap`.
520-
llvm::SmallVector<ModuleFile *, 16> DependentModules;
520+
llvm::SmallVector<ModuleFile *, 16> TransitiveImports;
521521

522522
/// Determine whether this module was directly imported at
523523
/// any point during translation.

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4059,7 +4059,7 @@ void ASTReader::ReadModuleOffsetMap(ModuleFile &F) const {
40594059
RemapBuilder DeclRemap(F.DeclRemap);
40604060
RemapBuilder TypeRemap(F.TypeRemap);
40614061

4062-
auto &ImportedModuleVector = F.DependentModules;
4062+
auto &ImportedModuleVector = F.TransitiveImports;
40634063
assert(ImportedModuleVector.empty());
40644064

40654065
while (Data < DataEnd) {

0 commit comments

Comments
 (0)