Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
frabert committed Jan 25, 2023
1 parent efa55b7 commit a78a14a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/AST/StructGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
auto &ctx{unit->getASTContext()};
auto tudecl{ctx.getTranslationUnitDecl()};
rellic::ASTBuilder ast(*unit);
rellic::StructGenerator gen(*unit);
rellic::StructGenerator gen(*unit, tudecl);
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
auto strct{GetDecl<clang::RecordDecl>(tudecl, "s")};
THEN("return correct accessors") {
Expand All @@ -53,7 +53,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
auto &ctx{unit->getASTContext()};
auto tudecl{ctx.getTranslationUnitDecl()};
rellic::ASTBuilder ast(*unit);
rellic::StructGenerator gen(*unit);
rellic::StructGenerator gen(*unit, tudecl);
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
auto strct{GetDecl<clang::RecordDecl>(tudecl, "s")};
THEN("return correct accessors") {
Expand All @@ -76,7 +76,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
auto &ctx{unit->getASTContext()};
auto tudecl{ctx.getTranslationUnitDecl()};
rellic::ASTBuilder ast(*unit);
rellic::StructGenerator gen(*unit);
rellic::StructGenerator gen(*unit, tudecl);
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
auto strct{GetDecl<clang::RecordDecl>(tudecl, "u")};
THEN("return correct accessors") {
Expand All @@ -101,7 +101,7 @@ TEST_SUITE("StructGenerator::GetAccessor") {
auto &ctx{unit->getASTContext()};
auto tudecl{ctx.getTranslationUnitDecl()};
rellic::ASTBuilder ast(*unit);
rellic::StructGenerator gen(*unit);
rellic::StructGenerator gen(*unit, tudecl);
auto var{GetDeclRef<clang::VarDecl>(ast, tudecl, "x")};
auto strct{GetDecl<clang::RecordDecl>(tudecl, "s")};
THEN("return correct accessors") {
Expand Down

0 comments on commit a78a14a

Please sign in to comment.