From be990915ba31a7f239b61dc0479100bab0dc97c9 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 27 Apr 2020 18:57:53 +0200 Subject: [PATCH] Fixed get_type_description in cases like std::pair::first --- src/cursor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cursor.cc b/src/cursor.cc index 62f5189..b8976ad 100644 --- a/src/cursor.cc +++ b/src/cursor.cc @@ -1,6 +1,5 @@ #include "cursor.h" #include "utility.h" -#include 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)); }