@@ -48,7 +48,7 @@ TEST_F(TestClangRedeclarations, RedeclareCppClass) {
48
48
OptionalClangModuleID module_id (1 );
49
49
CompilerType class_type = m_ast->CreateRecordType (
50
50
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);
52
52
auto *record = llvm::cast<CXXRecordDecl>(ClangUtil::GetAsTagDecl (class_type));
53
53
54
54
m_ast->CreateRedeclaration (class_type);
@@ -109,11 +109,11 @@ TEST_F(TestClangRedeclarations, RedeclareCppTemplateClass) {
109
109
110
110
ClassTemplateDecl *template_decl = m_ast->CreateClassTemplateDecl (
111
111
m_ast->GetTranslationUnitDecl (), module_id, lldb::eAccessNone, " A" ,
112
- llvm::to_underlying (TagTypeKind::TTK_Struct ), *args);
112
+ llvm::to_underlying (TagTypeKind::Struct ), *args);
113
113
ClassTemplateSpecializationDecl *fwd_decl =
114
114
m_ast->CreateClassTemplateSpecializationDecl (
115
115
m_ast->GetTranslationUnitDecl (), module_id, template_decl,
116
- llvm::to_underlying (TagTypeKind::TTK_Struct ), *args);
116
+ llvm::to_underlying (TagTypeKind::Struct ), *args);
117
117
CompilerType spec_type =
118
118
m_ast->CreateClassTemplateSpecializationType (fwd_decl);
119
119
@@ -250,7 +250,7 @@ TEST_F(TestClangRedeclarations, NestedDecls) {
250
250
// Create a class.
251
251
CompilerType context_class = m_ast->CreateRecordType (
252
252
m_ast->GetTranslationUnitDecl (), OptionalClangModuleID (),
253
- lldb::eAccessNone, " A" , llvm::to_underlying (TagTypeKind::TTK_Class ),
253
+ lldb::eAccessNone, " A" , llvm::to_underlying (TagTypeKind::Class ),
254
254
lldb::eLanguageTypeC_plus_plus);
255
255
auto *fwd_decl =
256
256
llvm::cast<CXXRecordDecl>(ClangUtil::GetAsTagDecl (context_class));
@@ -270,7 +270,7 @@ TEST_F(TestClangRedeclarations, NestedDecls) {
270
270
// DeclContext.
271
271
CompilerType nested_class = m_ast->CreateRecordType (
272
272
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);
274
274
EXPECT_EQ (ClangUtil::GetAsTagDecl (nested_class)->getDeclContext (), def);
275
275
276
276
CompilerType int_type = m_ast->GetBasicType (lldb::eBasicTypeInt);
@@ -293,12 +293,12 @@ TEST_F(TestClangRedeclarations, NestedDecls) {
293
293
// is the definition.
294
294
ClassTemplateDecl *template_decl = m_ast->CreateClassTemplateDecl (
295
295
fwd_decl, OptionalClangModuleID (), lldb::eAccessPublic, " A" ,
296
- llvm::to_underlying (TagTypeKind::TTK_Struct ), args);
296
+ llvm::to_underlying (TagTypeKind::Struct ), args);
297
297
EXPECT_EQ (template_decl->getDeclContext (), def);
298
298
ClassTemplateSpecializationDecl *template_spec_decl =
299
299
m_ast->CreateClassTemplateSpecializationDecl (
300
300
fwd_decl, OptionalClangModuleID (), template_decl,
301
- llvm::to_underlying (TagTypeKind::TTK_Struct ), args);
301
+ llvm::to_underlying (TagTypeKind::Struct ), args);
302
302
EXPECT_EQ (template_spec_decl->getDeclContext (), def);
303
303
}
304
304
@@ -308,7 +308,7 @@ TEST_F(TestClangRedeclarations, MetadataRedeclaration) {
308
308
// Create a class with the test metadata.
309
309
CompilerType class_with_metadata = m_ast->CreateRecordType (
310
310
m_ast->GetTranslationUnitDecl (), OptionalClangModuleID (),
311
- lldb::eAccessPublic, " A" , llvm::to_underlying (TagTypeKind::TTK_Class ),
311
+ lldb::eAccessPublic, " A" , llvm::to_underlying (TagTypeKind::Class ),
312
312
lldb::eLanguageTypeC_plus_plus);
313
313
auto *record =
314
314
llvm::cast<CXXRecordDecl>(ClangUtil::GetAsTagDecl (class_with_metadata));
0 commit comments