Skip to content

Commit a78a14a

Browse files
committed
Fix tests
1 parent efa55b7 commit a78a14a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

unittests/AST/StructGenerator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
3030
auto &ctx{unit->getASTContext()};
3131
auto tudecl{ctx.getTranslationUnitDecl()};
3232
rellic::ASTBuilder ast(*unit);
33-
rellic::StructGenerator gen(*unit);
33+
rellic::StructGenerator gen(*unit, tudecl);
3434
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
3535
auto strct{GetDecl<clang::RecordDecl>(tudecl, "s")};
3636
THEN("return correct accessors") {
@@ -53,7 +53,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
5353
auto &ctx{unit->getASTContext()};
5454
auto tudecl{ctx.getTranslationUnitDecl()};
5555
rellic::ASTBuilder ast(*unit);
56-
rellic::StructGenerator gen(*unit);
56+
rellic::StructGenerator gen(*unit, tudecl);
5757
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
5858
auto strct{GetDecl<clang::RecordDecl>(tudecl, "s")};
5959
THEN("return correct accessors") {
@@ -76,7 +76,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
7676
auto &ctx{unit->getASTContext()};
7777
auto tudecl{ctx.getTranslationUnitDecl()};
7878
rellic::ASTBuilder ast(*unit);
79-
rellic::StructGenerator gen(*unit);
79+
rellic::StructGenerator gen(*unit, tudecl);
8080
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
8181
auto strct{GetDecl<clang::RecordDecl>(tudecl, "u")};
8282
THEN("return correct accessors") {
@@ -101,7 +101,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
101101
auto &ctx{unit->getASTContext()};
102102
auto tudecl{ctx.getTranslationUnitDecl()};
103103
rellic::ASTBuilder ast(*unit);
104-
rellic::StructGenerator gen(*unit);
104+
rellic::StructGenerator gen(*unit, tudecl);
105105
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
106106
auto strct{GetDecl<clang::RecordDecl>(tudecl, "s")};
107107
THEN("return correct accessors") {

0 commit comments

Comments
 (0)