Skip to content

Commit d7a0b77

Browse files
Merge pull request swiftlang#9044 from felipepiovezan/felipe/clang_enums_fix_lldb_unittest
[lldb] Fix clang enumerations spelling in unittests
2 parents 670986b + f586177 commit d7a0b77

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lldb/unittests/TypeSystem/Clang/TestClangRedeclarations.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ TEST_F(TestClangRedeclarations, RedeclareCppClass) {
4848
OptionalClangModuleID module_id(1);
4949
CompilerType class_type = m_ast->CreateRecordType(
5050
m_ast->GetTranslationUnitDecl(), module_id, lldb::eAccessNone, "A",
51-
llvm::to_underlying(TagTypeKind::TTK_Class), lldb::eLanguageTypeC_plus_plus);
51+
llvm::to_underlying(TagTypeKind::Class), lldb::eLanguageTypeC_plus_plus);
5252
auto *record = llvm::cast<CXXRecordDecl>(ClangUtil::GetAsTagDecl(class_type));
5353

5454
m_ast->CreateRedeclaration(class_type);
@@ -109,11 +109,11 @@ TEST_F(TestClangRedeclarations, RedeclareCppTemplateClass) {
109109

110110
ClassTemplateDecl *template_decl = m_ast->CreateClassTemplateDecl(
111111
m_ast->GetTranslationUnitDecl(), module_id, lldb::eAccessNone, "A",
112-
llvm::to_underlying(TagTypeKind::TTK_Struct), *args);
112+
llvm::to_underlying(TagTypeKind::Struct), *args);
113113
ClassTemplateSpecializationDecl *fwd_decl =
114114
m_ast->CreateClassTemplateSpecializationDecl(
115115
m_ast->GetTranslationUnitDecl(), module_id, template_decl,
116-
llvm::to_underlying(TagTypeKind::TTK_Struct), *args);
116+
llvm::to_underlying(TagTypeKind::Struct), *args);
117117
CompilerType spec_type =
118118
m_ast->CreateClassTemplateSpecializationType(fwd_decl);
119119

@@ -250,7 +250,7 @@ TEST_F(TestClangRedeclarations, NestedDecls) {
250250
// Create a class.
251251
CompilerType context_class = m_ast->CreateRecordType(
252252
m_ast->GetTranslationUnitDecl(), OptionalClangModuleID(),
253-
lldb::eAccessNone, "A", llvm::to_underlying(TagTypeKind::TTK_Class),
253+
lldb::eAccessNone, "A", llvm::to_underlying(TagTypeKind::Class),
254254
lldb::eLanguageTypeC_plus_plus);
255255
auto *fwd_decl =
256256
llvm::cast<CXXRecordDecl>(ClangUtil::GetAsTagDecl(context_class));
@@ -270,7 +270,7 @@ TEST_F(TestClangRedeclarations, NestedDecls) {
270270
// DeclContext.
271271
CompilerType nested_class = m_ast->CreateRecordType(
272272
fwd_decl, OptionalClangModuleID(), lldb::eAccessPublic, "A",
273-
llvm::to_underlying(TagTypeKind::TTK_Class), lldb::eLanguageTypeC_plus_plus);
273+
llvm::to_underlying(TagTypeKind::Class), lldb::eLanguageTypeC_plus_plus);
274274
EXPECT_EQ(ClangUtil::GetAsTagDecl(nested_class)->getDeclContext(), def);
275275

276276
CompilerType int_type = m_ast->GetBasicType(lldb::eBasicTypeInt);
@@ -293,12 +293,12 @@ TEST_F(TestClangRedeclarations, NestedDecls) {
293293
// is the definition.
294294
ClassTemplateDecl *template_decl = m_ast->CreateClassTemplateDecl(
295295
fwd_decl, OptionalClangModuleID(), lldb::eAccessPublic, "A",
296-
llvm::to_underlying(TagTypeKind::TTK_Struct), args);
296+
llvm::to_underlying(TagTypeKind::Struct), args);
297297
EXPECT_EQ(template_decl->getDeclContext(), def);
298298
ClassTemplateSpecializationDecl *template_spec_decl =
299299
m_ast->CreateClassTemplateSpecializationDecl(
300300
fwd_decl, OptionalClangModuleID(), template_decl,
301-
llvm::to_underlying(TagTypeKind::TTK_Struct), args);
301+
llvm::to_underlying(TagTypeKind::Struct), args);
302302
EXPECT_EQ(template_spec_decl->getDeclContext(), def);
303303
}
304304

@@ -308,7 +308,7 @@ TEST_F(TestClangRedeclarations, MetadataRedeclaration) {
308308
// Create a class with the test metadata.
309309
CompilerType class_with_metadata = m_ast->CreateRecordType(
310310
m_ast->GetTranslationUnitDecl(), OptionalClangModuleID(),
311-
lldb::eAccessPublic, "A", llvm::to_underlying(TagTypeKind::TTK_Class),
311+
lldb::eAccessPublic, "A", llvm::to_underlying(TagTypeKind::Class),
312312
lldb::eLanguageTypeC_plus_plus);
313313
auto *record =
314314
llvm::cast<CXXRecordDecl>(ClangUtil::GetAsTagDecl(class_with_metadata));

0 commit comments

Comments
 (0)