Commit d5bfee1b authored by Florian Jung's avatar Florian Jung
Browse files

Added Cursor::hash() method

parent bb7b7984
......@@ -195,6 +195,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);
......@@ -212,6 +212,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