Fix code generation exclusion
This commit is contained in:
parent
68f2ab91a0
commit
4e06906876
2 changed files with 2 additions and 2 deletions
|
|
@ -193,7 +193,7 @@ namespace cppast
|
|||
/// the other functions have no effects.
|
||||
explicit operator bool() const noexcept
|
||||
{
|
||||
return options_ != exclude;
|
||||
return !options_.is_set(exclude);
|
||||
}
|
||||
|
||||
/// \returns The generation options.
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ struct foo{
|
|||
generation_options do_get_options(const cpp_entity& e) override
|
||||
{
|
||||
if (e.name().front() == 'e')
|
||||
return code_generator::exclude;
|
||||
return code_generator::exclude | code_generator::declaration;
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue