|
|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
#include <string> |
|
|
|
|
#include <vector> |
|
|
|
|
#include <unordered_set> |
|
|
|
|
#include <ostream> |
|
|
|
|
|
|
|
|
|
namespace clangmm { |
|
|
|
|
class Cursor { |
|
|
|
|
@ -212,6 +213,15 @@ namespace clangmm {
|
|
|
|
|
std::string get_type_description() const; |
|
|
|
|
std::string get_brief_comments() const; |
|
|
|
|
|
|
|
|
|
friend std::ostream &operator<<(std::ostream &os, const Cursor &cursor) { |
|
|
|
|
auto offsets=cursor.get_source_range().get_offsets(); |
|
|
|
|
os << cursor.get_source_location().get_path() << ":" |
|
|
|
|
<< offsets.first.line << ":" << offsets.first.index << "-" |
|
|
|
|
<< offsets.second.line << ":" << offsets.second.index << " " |
|
|
|
|
<< cursor.get_spelling(); |
|
|
|
|
return os; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CXCursor cx_cursor; |
|
|
|
|
}; |
|
|
|
|
} // namespace clangmm
|
|
|
|
|
|