lib/ffi/clang/lib/cursor.rb in ffi-clang-0.3.0 vs lib/ffi/clang/lib/cursor.rb in ffi-clang-0.5.0

- old
+ new

@@ -19,15 +19,14 @@ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # 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' -require 'ffi/clang/lib/type' -require 'ffi/clang/utils' +require_relative 'translation_unit' +require_relative 'diagnostic' +require_relative 'comment' +require_relative 'type' module FFI module Clang module Lib enum :cursor_kind, [ @@ -257,20 +256,18 @@ attach_function :get_enum_value, :clang_getEnumConstantDeclValue, [CXCursor.by_value], :long_long attach_function :get_enum_unsigned_value, :clang_getEnumConstantDeclUnsignedValue, [CXCursor.by_value], :ulong_long attach_function :is_virtual_base, :clang_isVirtualBase, [CXCursor.by_value], :uint attach_function :is_dynamic_call, :clang_Cursor_isDynamicCall, [CXCursor.by_value], :uint - if FFI::Clang::Utils.satisfy_version?('3.3') - attach_function :is_variadic, :clang_Cursor_isVariadic, [CXCursor.by_value], :uint - end + attach_function :is_variadic, :clang_Cursor_isVariadic, [CXCursor.by_value], :uint + attach_function :is_definition, :clang_isCursorDefinition, [CXCursor.by_value], :uint attach_function :cxx_method_is_static, :clang_CXXMethod_isStatic, [CXCursor.by_value], :uint attach_function :cxx_method_is_virtual, :clang_CXXMethod_isVirtual, [CXCursor.by_value], :uint - if FFI::Clang::Utils.satisfy_version?('3.4') - attach_function :cxx_method_is_pure_virtual, :clang_CXXMethod_isPureVirtual, [CXCursor.by_value], :uint - end + attach_function :cxx_method_is_pure_virtual, :clang_CXXMethod_isPureVirtual, [CXCursor.by_value], :uint + attach_function :cxx_get_access_specifier, :clang_getCXXAccessSpecifier, [CXCursor.by_value], :access_specifier enum :language_kind, [:invalid, :c, :obj_c, :c_plus_plus] attach_function :get_language, :clang_getCursorLanguage, [CXCursor.by_value], :language_kind @@ -328,14 +325,12 @@ 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_included_file, :clang_getIncludedFile, [CXCursor.by_value], :CXFile attach_function :get_cursor_hash, :clang_hashCursor, [CXCursor.by_value], :uint - if FFI::Clang::Utils.satisfy_version?('3.3') - 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 - end + 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 attach_function :get_overloaded_decl, :clang_getOverloadedDecl, [CXCursor.by_value, :uint], CXCursor.by_value attach_function :get_num_overloaded_decls, :clang_getNumOverloadedDecls, [CXCursor.by_value], :uint attach_function :cursor_get_argument, :clang_Cursor_getArgument, [CXCursor.by_value, :uint], CXCursor.by_value @@ -348,15 +343,12 @@ attach_function :get_overridden_cursors, :clang_getOverriddenCursors, [CXCursor.by_value, :pointer, :pointer], :void attach_function :dispose_overridden_cursors, :clang_disposeOverriddenCursors, [:pointer], :void attach_function :get_typedef_decl_unerlying_type, :clang_getTypedefDeclUnderlyingType, [CXCursor.by_value], CXType.by_value - attach_function :get_type_declaration, :clang_getTypeDeclaration, [CXType.by_value], CXCursor.by_value attach_function :get_enum_type, :clang_getEnumDeclIntegerType, [CXCursor.by_value], CXType.by_value attach_function :get_num_args, :clang_Cursor_getNumArguments, [CXCursor.by_value], :int - - attach_function :is_variadic, :clang_Cursor_isVariadic, [CXCursor.by_value], :uint end end end