Commit 892652a6 authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files
parents ce0929dd d5bfee1b
......@@ -207,6 +207,10 @@ bool clangmm::Cursor::operator==(const Cursor& rhs) const {
return clang_equalCursors(cx_cursor, rhs.cx_cursor);
}
unsigned clangmm::Cursor::hash() const {
return clang_hashCursor(cx_cursor);
}
bool clangmm::Cursor::is_valid_kind() const {
auto referenced=clang_getCursorReferenced(cx_cursor);
if(clang_Cursor_isNull(referenced))
......
......@@ -213,6 +213,7 @@ namespace clangmm {
std::vector<Cursor> get_all_overridden_cursors() const;
operator bool() const;
bool operator==(const Cursor& rhs) const;
unsigned hash() const;
bool is_valid_kind() const;
std::string get_type_description() const;
......
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