Commit be990915 authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files

Fixed get_type_description in cases like std::pair::first

parent d259a248
Pipeline #140327648 passed with stage
in 3 minutes and 10 seconds
#include "cursor.h"
#include "utility.h"
#include <algorithm>
std::string clangmm::Cursor::Type::get_spelling() const {
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);
if(!clang_Cursor_isNull(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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment