[breaking] Fix generation when excluding entities
Had to change generation options retrieval.
This commit is contained in:
parent
59eee1f75a
commit
315fb3a98f
5 changed files with 253 additions and 128 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue