Add parse_error handling
This commit is contained in:
parent
1d083978ca
commit
467936cba4
5 changed files with 89 additions and 17 deletions
|
|
@ -11,6 +11,11 @@
|
|||
|
||||
using namespace cppast;
|
||||
|
||||
detail::cxstring detail::get_display_name(const CXCursor& cur) noexcept
|
||||
{
|
||||
return cxstring(clang_getCursorDisplayName(cur));
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
std::mutex mtx;
|
||||
|
|
@ -19,7 +24,7 @@ namespace
|
|||
void detail::print_cursor_info(const CXCursor& cur) noexcept
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mtx);
|
||||
std::printf("[debug] cursor '%s' (%s)\n", cxstring(clang_getCursorDisplayName(cur)).c_str(),
|
||||
std::printf("[debug] cursor '%s' (%s)\n", get_display_name(cur).c_str(),
|
||||
cxstring(clang_getCursorKindSpelling(cur.kind)).c_str());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue