[breaking] Fix generation when excluding entities

Had to change generation options retrieval.
This commit is contained in:
Jonathan Müller 2017-05-25 23:22:59 +02:00
commit 315fb3a98f
5 changed files with 253 additions and 128 deletions

View file

@ -78,15 +78,8 @@ void print_entity(std::ostream& out, const cppast::cpp_entity& e)
}
private:
// called at the beginning of the code generation of a container entity (i.e. one with child)
generation_options on_container_begin(const cppast::cpp_entity&) override
{
// generate declaration only
return code_generator::declaration;
}
// called before code generation of a leaf entity
generation_options on_leaf(const cppast::cpp_entity&) override
// called to retrieve the generation options of an entity
generation_options do_get_options(const cppast::cpp_entity&) override
{
// generate declaration only
return code_generator::declaration;