lib/ffi/clang/lib/cursor.rb in ffi-clang-0.1.1 vs lib/ffi/clang/lib/cursor.rb in ffi-clang-0.1.2
- old
+ new
@@ -20,16 +20,21 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
require 'ffi/clang/lib/translation_unit'
require 'ffi/clang/lib/diagnostic'
+require 'ffi/clang/lib/comment'
module FFI
module Clang
module Lib
enum :kind, [:cursor_struct, 2,
+ :cursor_enum_decl, 5,
+ :cursor_enum_constant_decl, 7,
:cursor_function, 8,
+ :cursor_parm_decl, 10,
+ :cursor_typedef_decl, 20,
:cursor_invalid_file, 70,
:cursor_translation_unit, 300]
class CXCursor < FFI::Struct
layout(
@@ -42,9 +47,12 @@
attach_function :get_translation_unit_cursor, :clang_getTranslationUnitCursor, [:CXTranslationUnit], CXCursor.by_value
attach_function :get_null_cursor, :clang_getNullCursor, [], CXCursor.by_value
attach_function :cursor_is_null, :clang_Cursor_isNull, [CXCursor.by_value], :int
+
+ attach_function :cursor_get_raw_comment_text, :clang_Cursor_getRawCommentText, [CXCursor.by_value], CXString.by_value
+ attach_function :cursor_get_parsed_comment, :clang_Cursor_getParsedComment, [CXCursor.by_value], CXComment.by_value
attach_function :get_cursor_location, :clang_getCursorLocation, [CXCursor.by_value], CXSourceLocation.by_value
attach_function :get_cursor_extent, :clang_getCursorExtent, [CXCursor.by_value], CXSourceRange.by_value
attach_function :get_cursor_display_name, :clang_getCursorDisplayName, [CXCursor.by_value], CXString.by_value
attach_function :get_cursor_spelling, :clang_getCursorSpelling, [CXCursor.by_value], CXString.by_value