Add enum category example

This commit is contained in:
Jonathan Müller 2017-11-10 11:54:21 +01:00
commit 0b71d7d3b4
5 changed files with 122 additions and 5 deletions

View file

@ -436,6 +436,9 @@ namespace cppast
cpp_reference ref_;
};
/// \returns The type as a string representation.
std::string to_string(const cpp_type& type);
/// \exclude
namespace detail
{
@ -453,9 +456,6 @@ namespace cppast
// write prefix, variadic, name, suffix
void write_type(code_generator::output& output, const cpp_type& type, std::string name,
bool is_variadic = false);
// simple to_string() for types
std::string to_string(const cpp_type& type);
} // namespace detail
} // namespace cppast