Print number of attributes in tool
This commit is contained in:
parent
40236f606b
commit
5971c4a0a1
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,10 @@ void print_entity(std::ostream& out, const cppast::cpp_entity& e)
|
|||
if (cppast::is_definition(e))
|
||||
out << " [definition]";
|
||||
|
||||
// print number of attributes
|
||||
if (!e.attributes().empty())
|
||||
out << " [" << e.attributes().size() << " attribute(s)]";
|
||||
|
||||
if (e.kind() == cppast::cpp_entity_kind::language_linkage_t)
|
||||
// no need to print additional information for language linkages
|
||||
out << '\n';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue