lib/ffi/clang/lib/cursor.rb in ffi-clang-0.10.0 vs lib/ffi/clang/lib/cursor.rb in ffi-clang-0.11.0
- old
+ new
@@ -317,10 +317,23 @@
:internal, 2,
:unique_external, 3,
:external, 4,
]
+ enum :exception_specification_type, [
+ :none,
+ :dynamic_none,
+ :dynamic,
+ :ms_any,
+ :basic_noexcept,
+ :computed_noexcept,
+ :unevaluated,
+ :uninstantiated,
+ :unparsed,
+ :no_throw
+ ]
+
class CXCursor < FFI::Struct
layout(
:kind, :cursor_kind,
:xdata, :int,
:data, [:pointer, 3]
@@ -452,9 +465,10 @@
attach_function :get_cursor_semantic_parent, :clang_getCursorSemanticParent, [CXCursor.by_value], CXCursor.by_value
attach_function :get_cursor_lexical_parent, :clang_getCursorLexicalParent, [CXCursor.by_value], CXCursor.by_value
attach_function :get_cursor_availability, :clang_getCursorAvailability, [CXCursor.by_value], :availability
attach_function :get_cursor_linkage, :clang_getCursorLinkage, [CXCursor.by_value], :linkage_kind
+ attach_function :get_cursor_exception_specification_type, :clang_getCursorExceptionSpecificationType, [CXCursor.by_value], :exception_specification_type
attach_function :get_included_file, :clang_getIncludedFile, [CXCursor.by_value], :CXFile
attach_function :get_cursor_hash, :clang_hashCursor, [CXCursor.by_value], :uint
attach_function :is_bit_field,:clang_Cursor_isBitField, [CXCursor.by_value], :uint
attach_function :get_field_decl_bit_width, :clang_getFieldDeclBitWidth, [CXCursor.by_value], :int