standardese/cppast

How to get the full signature of a function

huiseliming opened this issue · 0 comments

example

A.h

void foo(int a);

call for A.h
auto& CppMemberFunction = static_cast<const cppast::cpp_member_function&>(e);
std::cout << CppMemberFunction->getspelling();

output
"void foo(int a)"