Add is_templated() helper
This commit is contained in:
parent
dc290415f1
commit
67f247533c
6 changed files with 26 additions and 4 deletions
|
|
@ -119,7 +119,15 @@ namespace cppast
|
|||
friend detail::intrusive_list_node<cpp_entity>;
|
||||
};
|
||||
|
||||
/// \returns Whether or not the entity is templated.
|
||||
/// If this function returns `true` that means the entity is not the "real" entity,
|
||||
/// but contains just the information for the template which is the parent entity.
|
||||
/// \notes Do not use this entity other to read information from the template entity.
|
||||
bool is_templated(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.
|
||||
std::string full_name(const cpp_entity& e);
|
||||
} // namespace cppast
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue