Skip to content

Commit c14676e

Browse files
committed
apply clang-format
1 parent 0647828 commit c14676e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

clang/lib/CodeGen/CGDebugInfo.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,8 +1901,9 @@ CGDebugInfo::CreateRecordStaticField(const VarDecl *Var, llvm::DIType *RecordTy,
19011901
return GV;
19021902
}
19031903

1904-
void CGDebugInfo::CollectRecordEnumType(const EnumDecl *ED, SmallVectorImpl<llvm::Metadata *> &elements) {
1905-
QualType Ty = CGM.getContext().getTypeDeclType(ED);
1904+
void CGDebugInfo::CollectRecordEnumType(
1905+
const EnumDecl *ED, SmallVectorImpl<llvm::Metadata *> &elements) {
1906+
QualType Ty = CGM.getContext().getTypeDeclType(ED);
19061907
SourceLocation Loc = ED->getLocation();
19071908
if (llvm::DIType *enumType = getOrCreateType(Ty, getOrCreateFile(Loc)))
19081909
elements.push_back(enumType);
@@ -1994,8 +1995,8 @@ void CGDebugInfo::CollectRecordFields(
19941995

19951996
// Bump field number for next field.
19961997
++fieldNo;
1997-
} else if (const auto *enumType = dyn_cast<EnumDecl>(I)) {
1998-
CollectRecordEnumType(enumType, elements);
1998+
} else if (const auto *enumType = dyn_cast<EnumDecl>(I)) {
1999+
CollectRecordEnumType(enumType, elements);
19992000
} else if (CGM.getCodeGenOpts().EmitCodeView) {
20002001
// Debug info for nested types is included in the member list only for
20012002
// CodeView.

clang/lib/CodeGen/CGDebugInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ class CGDebugInfo {
370370
llvm::DIDerivedType *CreateRecordStaticField(const VarDecl *Var,
371371
llvm::DIType *RecordTy,
372372
const RecordDecl *RD);
373-
void CollectRecordEnumType(const EnumDecl *ED, SmallVectorImpl<llvm::Metadata *> &elements);
373+
void CollectRecordEnumType(const EnumDecl *ED,
374+
SmallVectorImpl<llvm::Metadata *> &elements);
374375
void CollectRecordNormalField(const FieldDecl *Field, uint64_t OffsetInBits,
375376
llvm::DIFile *F,
376377
SmallVectorImpl<llvm::Metadata *> &E,

0 commit comments

Comments
 (0)