|
|
|
@ -1,6 +1,5 @@ |
|
|
|
#include "cursor.h" |
|
|
|
#include "cursor.h" |
|
|
|
#include "utility.h" |
|
|
|
#include "utility.h" |
|
|
|
#include <algorithm> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string clangmm::Cursor::Type::get_spelling() const { |
|
|
|
std::string clangmm::Cursor::Type::get_spelling() const { |
|
|
|
return to_string(clang_getTypeSpelling(cx_type)); |
|
|
|
return to_string(clang_getTypeSpelling(cx_type)); |
|
|
|
@ -224,7 +223,7 @@ std::string clangmm::Cursor::get_type_description() const { |
|
|
|
auto referenced = clang_getCursorReferenced(cx_cursor); |
|
|
|
auto referenced = clang_getCursorReferenced(cx_cursor); |
|
|
|
if(!clang_Cursor_isNull(referenced)) { |
|
|
|
if(!clang_Cursor_isNull(referenced)) { |
|
|
|
auto type = clang_getCursorType(referenced); |
|
|
|
auto type = clang_getCursorType(referenced); |
|
|
|
if(type.kind != CXTypeKind::CXType_Invalid && type.kind != CXTypeKind::CXType_Unexposed) |
|
|
|
if(type.kind != CXTypeKind::CXType_Invalid) |
|
|
|
return to_string(clang_getTypeSpelling(type)); |
|
|
|
return to_string(clang_getTypeSpelling(type)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|