From df42c7658bca28f5ba375eb6885a7d12ca8d15ed Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 19 May 2016 07:21:05 +0200 Subject: [PATCH] Added default constructor to clang::Cursor --- src/Cursor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cursor.h b/src/Cursor.h index 4df1ff4..bf10fcf 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -176,6 +176,7 @@ namespace clang { class Cursor { public: + Cursor() { cx_cursor=clang_getNullCursor(); } Cursor(const CXCursor &cx_cursor) : cx_cursor(cx_cursor) {} CursorKind get_kind(); SourceLocation get_source_location() const;