@@ -30,7 +30,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
30
30
auto &ctx{unit->getASTContext ()};
31
31
auto tudecl{ctx.getTranslationUnitDecl ()};
32
32
rellic::ASTBuilder ast (*unit);
33
- rellic::StructGenerator gen (*unit);
33
+ rellic::StructGenerator gen (*unit, tudecl );
34
34
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, " x" )};
35
35
auto strct{GetDecl<clang::RecordDecl>(tudecl, " s" )};
36
36
THEN (" return correct accessors" ) {
@@ -53,7 +53,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
53
53
auto &ctx{unit->getASTContext ()};
54
54
auto tudecl{ctx.getTranslationUnitDecl ()};
55
55
rellic::ASTBuilder ast (*unit);
56
- rellic::StructGenerator gen (*unit);
56
+ rellic::StructGenerator gen (*unit, tudecl );
57
57
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, " x" )};
58
58
auto strct{GetDecl<clang::RecordDecl>(tudecl, " s" )};
59
59
THEN (" return correct accessors" ) {
@@ -76,7 +76,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
76
76
auto &ctx{unit->getASTContext ()};
77
77
auto tudecl{ctx.getTranslationUnitDecl ()};
78
78
rellic::ASTBuilder ast (*unit);
79
- rellic::StructGenerator gen (*unit);
79
+ rellic::StructGenerator gen (*unit, tudecl );
80
80
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, " x" )};
81
81
auto strct{GetDecl<clang::RecordDecl>(tudecl, " u" )};
82
82
THEN (" return correct accessors" ) {
@@ -101,7 +101,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
101
101
auto &ctx{unit->getASTContext ()};
102
102
auto tudecl{ctx.getTranslationUnitDecl ()};
103
103
rellic::ASTBuilder ast (*unit);
104
- rellic::StructGenerator gen (*unit);
104
+ rellic::StructGenerator gen (*unit, tudecl );
105
105
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, " x" )};
106
106
auto strct{GetDecl<clang::RecordDecl>(tudecl, " s" )};
107
107
THEN (" return correct accessors" ) {
0 commit comments