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:
Jonathan Müller 2017-04-02 19:23:49 +02:00
commit dc5abeb785
5 changed files with 24 additions and 13 deletions

View file

@ -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);