Skip to content

Commit 9950bb9

Browse files
committed
[ASTReader] Fix readability-inconsistent-declaration-parameter-name. NFC
1 parent 6c06bde commit 9950bb9

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

clang/include/clang/Serialization/ASTReader.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ class ASTReader
14241424
RecordLocation TypeCursorForIndex(unsigned Index);
14251425
void LoadedDecl(unsigned Index, Decl *D);
14261426
Decl *ReadDeclRecord(serialization::DeclID ID);
1427-
void markIncompleteDeclChain(Decl *Canon);
1427+
void markIncompleteDeclChain(Decl *D);
14281428

14291429
/// Returns the most recent declaration of a declaration (which must be
14301430
/// of a redeclarable kind) that is either local or has already been loaded
@@ -2093,7 +2093,7 @@ class ASTReader
20932093
SmallVectorImpl<std::pair<Selector, SourceLocation>> &Sels) override;
20942094

20952095
void ReadWeakUndeclaredIdentifiers(
2096-
SmallVectorImpl<std::pair<IdentifierInfo *, WeakInfo>> &WI) override;
2096+
SmallVectorImpl<std::pair<IdentifierInfo *, WeakInfo>> &WeakIDs) override;
20972097

20982098
void ReadUsedVTables(SmallVectorImpl<ExternalVTableUse> &VTables) override;
20992099

@@ -2203,7 +2203,7 @@ class ASTReader
22032203

22042204
/// Retrieve the global selector ID that corresponds to this
22052205
/// the local selector ID in a given module.
2206-
serialization::SelectorID getGlobalSelectorID(ModuleFile &F,
2206+
serialization::SelectorID getGlobalSelectorID(ModuleFile &M,
22072207
unsigned LocalID) const;
22082208

22092209
/// Read the contents of a CXXCtorInitializer array.

clang/lib/Serialization/ASTReader.cpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,26 +1781,26 @@ llvm::Error ASTReader::ReadBlockAbbrevs(BitstreamCursor &Cursor,
17811781
}
17821782
}
17831783

1784-
Token ASTReader::ReadToken(ModuleFile &F, const RecordDataImpl &Record,
1784+
Token ASTReader::ReadToken(ModuleFile &M, const RecordDataImpl &Record,
17851785
unsigned &Idx) {
17861786
Token Tok;
17871787
Tok.startToken();
1788-
Tok.setLocation(ReadSourceLocation(F, Record, Idx));
1788+
Tok.setLocation(ReadSourceLocation(M, Record, Idx));
17891789
Tok.setKind((tok::TokenKind)Record[Idx++]);
17901790
Tok.setFlag((Token::TokenFlags)Record[Idx++]);
17911791

17921792
if (Tok.isAnnotation()) {
1793-
Tok.setAnnotationEndLoc(ReadSourceLocation(F, Record, Idx));
1793+
Tok.setAnnotationEndLoc(ReadSourceLocation(M, Record, Idx));
17941794
switch (Tok.getKind()) {
17951795
case tok::annot_pragma_loop_hint: {
17961796
auto *Info = new (PP.getPreprocessorAllocator()) PragmaLoopHintInfo;
1797-
Info->PragmaName = ReadToken(F, Record, Idx);
1798-
Info->Option = ReadToken(F, Record, Idx);
1797+
Info->PragmaName = ReadToken(M, Record, Idx);
1798+
Info->Option = ReadToken(M, Record, Idx);
17991799
unsigned NumTokens = Record[Idx++];
18001800
SmallVector<Token, 4> Toks;
18011801
Toks.reserve(NumTokens);
18021802
for (unsigned I = 0; I < NumTokens; ++I)
1803-
Toks.push_back(ReadToken(F, Record, Idx));
1803+
Toks.push_back(ReadToken(M, Record, Idx));
18041804
Info->Toks = llvm::ArrayRef(Toks).copy(PP.getPreprocessorAllocator());
18051805
Tok.setAnnotationValue(static_cast<void *>(Info));
18061806
break;
@@ -1811,7 +1811,7 @@ Token ASTReader::ReadToken(ModuleFile &F, const RecordDataImpl &Record,
18111811
auto SlotLabel = ReadString(Record, Idx);
18121812
Info->SlotLabel =
18131813
llvm::StringRef(SlotLabel).copy(PP.getPreprocessorAllocator());
1814-
Info->Alignment = ReadToken(F, Record, Idx);
1814+
Info->Alignment = ReadToken(M, Record, Idx);
18151815
Tok.setAnnotationValue(static_cast<void *>(Info));
18161816
break;
18171817
}
@@ -1827,7 +1827,7 @@ Token ASTReader::ReadToken(ModuleFile &F, const RecordDataImpl &Record,
18271827
}
18281828
} else {
18291829
Tok.setLength(Record[Idx++]);
1830-
if (IdentifierInfo *II = getLocalIdentifier(F, Record[Idx++]))
1830+
if (IdentifierInfo *II = getLocalIdentifier(M, Record[Idx++]))
18311831
Tok.setIdentifierInfo(II);
18321832
}
18331833
return Tok;
@@ -1997,10 +1997,10 @@ unsigned HeaderFileInfoTrait::ComputeHash(internal_key_ref ikey) {
19971997
}
19981998

19991999
HeaderFileInfoTrait::internal_key_type
2000-
HeaderFileInfoTrait::GetInternalKey(external_key_type FE) {
2001-
internal_key_type ikey = {FE.getSize(),
2002-
M.HasTimestamps ? FE.getModificationTime() : 0,
2003-
FE.getName(), /*Imported*/ false};
2000+
HeaderFileInfoTrait::GetInternalKey(external_key_type ekey) {
2001+
internal_key_type ikey = {ekey.getSize(),
2002+
M.HasTimestamps ? ekey.getModificationTime() : 0,
2003+
ekey.getName(), /*Imported*/ false};
20042004
return ikey;
20052005
}
20062006

@@ -8946,10 +8946,10 @@ Module *ASTReader::getModule(unsigned ID) {
89468946
return getSubmodule(ID);
89478947
}
89488948

8949-
ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &F, unsigned ID) {
8949+
ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &M, unsigned ID) {
89508950
if (ID & 1) {
89518951
// It's a module, look it up by submodule ID.
8952-
auto I = GlobalSubmoduleMap.find(getGlobalSubmoduleID(F, ID >> 1));
8952+
auto I = GlobalSubmoduleMap.find(getGlobalSubmoduleID(M, ID >> 1));
89538953
return I == GlobalSubmoduleMap.end() ? nullptr : I->second;
89548954
} else {
89558955
// It's a prefix (preamble, PCH, ...). Look it up by index.
@@ -8959,19 +8959,19 @@ ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &F, unsigned ID) {
89598959
}
89608960
}
89618961

8962-
unsigned ASTReader::getModuleFileID(ModuleFile *F) {
8963-
if (!F)
8962+
unsigned ASTReader::getModuleFileID(ModuleFile *M) {
8963+
if (!M)
89648964
return 1;
89658965

89668966
// For a file representing a module, use the submodule ID of the top-level
89678967
// module as the file ID. For any other kind of file, the number of such
89688968
// files loaded beforehand will be the same on reload.
89698969
// FIXME: Is this true even if we have an explicit module file and a PCH?
8970-
if (F->isModule())
8971-
return ((F->BaseSubmoduleID + NUM_PREDEF_SUBMODULE_IDS) << 1) | 1;
8970+
if (M->isModule())
8971+
return ((M->BaseSubmoduleID + NUM_PREDEF_SUBMODULE_IDS) << 1) | 1;
89728972

89738973
auto PCHModules = getModuleManager().pch_modules();
8974-
auto I = llvm::find(PCHModules, F);
8974+
auto I = llvm::find(PCHModules, M);
89758975
assert(I != PCHModules.end() && "emitting reference to unknown file");
89768976
return (I - PCHModules.end()) << 1;
89778977
}

0 commit comments

Comments
 (0)