Ensure compatibility with clang 4.0.0
There are some bug fixes for libclang, so now some workarounds were broken.
This commit is contained in:
parent
e10a41fea8
commit
dc5abeb785
5 changed files with 24 additions and 13 deletions
|
|
@ -32,8 +32,7 @@ enum class bar
|
|||
void func(int(*)(int));
|
||||
|
||||
extern void(* ptr)(int(*)(int))=&func;
|
||||
|
||||
template<typename T>int var;)";
|
||||
)";
|
||||
|
||||
auto file = parse({}, "code_generator.cpp", code);
|
||||
REQUIRE(get_code(*file) == code);
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ enum c : int;
|
|||
REQUIRE(e.is_declaration());
|
||||
REQUIRE(!e.is_definition());
|
||||
REQUIRE(!e.is_scoped());
|
||||
REQUIRE(e.underlying_type().has_value());
|
||||
REQUIRE(
|
||||
equal_types(idx, e.underlying_type().value(), *cpp_builtin_type::build(cpp_int)));
|
||||
REQUIRE(count_children(e) == 0u);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue