Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit df42c76

Browse files
committed
Added default constructor to clang::Cursor
1 parent 251ff8e commit df42c76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Cursor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ namespace clang {
176176

177177
class Cursor {
178178
public:
179+
Cursor() { cx_cursor=clang_getNullCursor(); }
179180
Cursor(const CXCursor &cx_cursor) : cx_cursor(cx_cursor) {}
180181
CursorKind get_kind();
181182
SourceLocation get_source_location() const;

0 commit comments

Comments
 (0)