|
|
|
|
@ -83,7 +83,6 @@ clangmm::Cursor clangmm::CompletionString::get_cursor(CXTranslationUnit &tu) con
|
|
|
|
|
bool equal = true; |
|
|
|
|
auto cx_tmp_cursor = cx_parent; |
|
|
|
|
if(clang_getCursorKind(cx_tmp_cursor) != CXCursorKind::CXCursor_TranslationUnit) { |
|
|
|
|
int c = 0; |
|
|
|
|
auto it = data->parent_parts.rbegin(); |
|
|
|
|
for(; it != data->parent_parts.rend(); ++it) { |
|
|
|
|
auto name = clangmm::to_string(clang_getCursorDisplayName(cx_tmp_cursor)); |
|
|
|
|
@ -99,7 +98,6 @@ clangmm::Cursor clangmm::CompletionString::get_cursor(CXTranslationUnit &tu) con
|
|
|
|
|
++it; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
++c; |
|
|
|
|
} |
|
|
|
|
if(it != data->parent_parts.rend()) |
|
|
|
|
equal = false; |
|
|
|
|
|