Skip templated and friended entities in tool

This commit is contained in:
Jonathan Müller 2017-04-12 15:17:30 +02:00
commit d0451c517b
3 changed files with 9 additions and 7 deletions

View file

@ -159,6 +159,10 @@ namespace cppast
/// \notes Do not use this entity other to read information from the template entity.
bool is_templated(const cpp_entity& e) noexcept;
/// \returns Whether or not the given entity is "friended",
/// that is, its declaration exists as part of a [cppast::cpp_friend]() declaration.
bool is_friended(const cpp_entity& e) noexcept;
/// \returns The full name of the [cppast::cpp_entity](), with all scopes.
/// \notes Enitites without a name ([cppast::cpp_using_declaration]() etc.) do not have a full name either.
/// \notes For (template) parameters the full name is the name itself.

View file

@ -67,10 +67,6 @@ namespace cppast
friend cpp_entity_container<cpp_friend, cpp_entity>;
};
/// \returns Whether or not the given entity is "friended",
/// that is, its declaration exists as part of a [cppast::cpp_friend]() declaration.
bool is_friended(const cpp_entity& e) noexcept;
} // namespace cppast
#endif // CPPAST_CPP_FRIEND_HPP_INCLUDED