Skip to content

Commit c642095

Browse files
committed
Update helper function name; NFC
1 parent 1e34563 commit c642095

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaInit.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6496,13 +6496,13 @@ static bool canPerformArrayCopy(const InitializedEntity &Entity) {
64966496
return false;
64976497
}
64986498

6499-
static const FieldDecl *GetConstField(const RecordDecl *RD) {
6499+
static const FieldDecl *getConstField(const RecordDecl *RD) {
65006500
for (const FieldDecl *FD : RD->fields()) {
65016501
QualType QT = FD->getType();
65026502
if (QT.isConstQualified())
65036503
return FD;
65046504
if (const auto *RD = QT->getAsRecordDecl())
6505-
return GetConstField(RD);
6505+
return getConstField(RD);
65066506
}
65076507
return nullptr;
65086508
}
@@ -6587,7 +6587,7 @@ void InitializationSequence::InitializeFrom(Sema &S,
65876587
// then we want to diagnose those as being uninitialized if there is no
65886588
// initializer present.
65896589
if (!Initializer) {
6590-
if (const FieldDecl *FD = GetConstField(Rec)) {
6590+
if (const FieldDecl *FD = getConstField(Rec)) {
65916591
unsigned DiagID = diag::warn_default_init_const_unsafe;
65926592
if (Var->getStorageDuration() == SD_Static ||
65936593
Var->getStorageDuration() == SD_Thread)

0 commit comments

Comments
 (0)