Handle inline type declarations and attributes

Fixes #27.
This commit is contained in:
Jonathan Müller 2018-12-18 16:37:39 +01:00
commit 3aaa73020d
2 changed files with 76 additions and 8 deletions

View file

@ -241,6 +241,13 @@ struct [[r]] r
[[r]]
r();
};
// type defined inline
struct [[inline_type]] inline_type
{
[[field]] int field;
}
[[s]] s;
)";
auto file = parse({}, "cpp_attribute__matching.cpp", code);
@ -268,5 +275,5 @@ struct [[r]] r
return true;
});
REQUIRE(count == 40u);
REQUIRE(count == 43u);
}