Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/input/MR/test_matching_layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace MR::MatchingLayout
int arr2d[4][5];

// Having static fields is not an error! Those get their normal getters and setters.
static int x;
inline static int x = 0;
};

struct B
Expand Down
4 changes: 2 additions & 2 deletions test/input/MR/test_member_vars.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace MR::MemberVars
int x;
const int y;

static int z;
static const int w;
inline static int z = 0;
inline static const int w = 0;

int &ref; // Those don't get setters, and also get only one (non-const-propagating) getter.
int arr[4]; // Arrays don't get setters, because they aren't assignable. But they still get mutable getters
Expand Down