You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ffi-clang/lib/ffi/clang/clang_version.rb

21 lines
437 B
Ruby

# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2016-2024, by Samuel Williams.
# Copyright, 2023, by Charlie Savage.
require_relative 'lib/clang_version'
module FFI
module Clang
def self.clang_version_string
Lib.extract_string Lib.get_clang_version
end
def self.clang_version
clang_version = self.clang_version_string.match(/\d+\.\d+\.\d+/)
Gem::Version.new(clang_version)
end
end
end