Commit 979a5964 authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files

Added Cursor::Type::get_cursor

parent 8c3f78eb
......@@ -10,6 +10,10 @@ clangmm::Cursor::Type clangmm::Cursor::Type::get_result() const {
return Type(clang_getResultType(cx_type));
}
clangmm::Cursor clangmm::Cursor::Type::get_cursor() const {
return Cursor(clang_getTypeDeclaration(cx_type));
}
bool clangmm::Cursor::Type::operator==(const Cursor::Type& rhs) const {
return clang_equalTypes(cx_type, rhs.cx_type);
}
......
......@@ -182,6 +182,7 @@ namespace clangmm {
Type(const CXType &cx_type) : cx_type(cx_type) {}
std::string get_spelling() const;
Type get_result() const;
Cursor get_cursor() const;
bool operator==(const Cursor::Type& rhs) const;
CXType cx_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