source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | spec/internal/config/routes.rb | Ruby | apache-2.0 | 46 | main | 2,605 | # frozen_string_literal: true
Rails.application.routes.draw do
# Add your own routes here, or remove this file if you don't have need for it.
modular_routes do
# constraints
resources :accounts, only: :show, constraints: { id: /\d+/ }
scope constraints: { id: /\d+/ } do
resources :papers, only: ... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes.rb | Ruby | apache-2.0 | 46 | main | 827 | # frozen_string_literal: true
require "action_dispatch"
require_relative "modular_routes/builder"
require_relative "modular_routes/extension"
require_relative "modular_routes/routable"
require_relative "modular_routes/routable/concerns"
require_relative "modular_routes/routable/non_restful"
require_relative "modular_... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/scopable.rb | Ruby | apache-2.0 | 46 | main | 412 | # frozen_string_literal: true
module ModularRoutes
module Scopable
def self.for(type, *args)
case type
when :namespace then Namespace.new(*args)
when :resources then Resource.new(*args)
when :resource then SingleResource.new(*args)
when :scope then Scope.new(*args)
when :conce... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/builder.rb | Ruby | apache-2.0 | 46 | main | 2,686 | # frozen_string_literal: true
module ModularRoutes
class Builder
HTTP_METHODS = [:post, :get, :put, :patch, :delete].freeze
attr_reader :routes
def initialize(api_only:)
@api_only = api_only
@scopes = []
@routes = []
end
HTTP_METHODS.each do |method|
define_method(metho... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/extension.rb | Ruby | apache-2.0 | 46 | main | 343 | # frozen_string_literal: true
module ModularRoutes
module Extension
def modular_routes(**options, &block)
api_only = options.fetch(:api_only, api_only?)
route_builder = Builder.new(api_only: api_only)
route_builder.instance_eval(&block)
route_builder.routes.each { |route| route.apply(sel... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/routable.rb | Ruby | apache-2.0 | 46 | main | 372 | # frozen_string_literal: true
module ModularRoutes
module Routable
def self.for(type, *args)
case type
when :standalone then Standalone.new(*args)
when :non_restful then NonRestful.new(*args)
when :restful then Restful.new(*args)
when :concerns then Concerns.new(*args)
else ra... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/routable/restful.rb | Ruby | apache-2.0 | 46 | main | 747 | # frozen_string_literal: true
module ModularRoutes
module Routable
class Restful
def initialize(action, resource)
@action = action
@resource = resource
end
def apply(mapper)
mapper.public_send(resource_type, resource_name, options)
end
private def resource_... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/routable/non_restful.rb | Ruby | apache-2.0 | 46 | main | 534 | # frozen_string_literal: true
module ModularRoutes
module Routable
class NonRestful
def initialize(http_method, action, options)
@http_method = http_method
@action = action
@options = options
end
def apply(mapper)
mapper.public_send(@http_method, @action, option... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/routable/standalone.rb | Ruby | apache-2.0 | 46 | main | 755 | # frozen_string_literal: true
module ModularRoutes
module Routable
class Standalone
def initialize(http_method, action, options)
@http_method = http_method
@action = action
@options = options
end
def apply(mapper)
mapper.public_send(@http_method, @action, option... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/routable/concerns.rb | Ruby | apache-2.0 | 46 | main | 263 | # frozen_string_literal: true
module ModularRoutes
module Routable
class Concerns
def initialize(name)
@name = name
end
def apply(mapper)
mapper.concerns(@name)
end
end
private_constant :Concerns
end
end |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/scopable/scope.rb | Ruby | apache-2.0 | 46 | main | 555 | # frozen_string_literal: true
module ModularRoutes
module Scopable
class Scope
def initialize(args, options)
@args = args
@options = options.except(:api_only)
@children = []
end
def add(route_or_scope)
@children << route_or_scope
end
def resource?
... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/scopable/resource.rb | Ruby | apache-2.0 | 46 | main | 1,626 | # frozen_string_literal: true
module ModularRoutes
module Scopable
class Resource
attr_reader :name
attr_reader :options
def initialize(name, options)
@name = name
@children = []
@api_only = options.delete(:api_only)
@only = options.delete(:only) { default_acti... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/scopable/single_resource.rb | Ruby | apache-2.0 | 46 | main | 410 | # frozen_string_literal: true
module ModularRoutes
module Scopable
class SingleResource < Resource
def resource_type
:resource
end
private def default_actions
if @api_only
[:create, :show, :update, :destroy]
else
[:create, :new, :edit, :show, :update... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/scopable/namespace.rb | Ruby | apache-2.0 | 46 | main | 566 | # frozen_string_literal: true
module ModularRoutes
module Scopable
class Namespace
def initialize(name, options)
@name = name
@options = options.except(:api_only)
@children = []
end
def add(route_or_scope)
@children << route_or_scope
end
def resour... |
github | vitoravelino/modular_routes | https://github.com/vitoravelino/modular_routes | lib/modular_routes/scopable/concern.rb | Ruby | apache-2.0 | 46 | main | 578 | # frozen_string_literal: true
module ModularRoutes
module Scopable
class Concern
def initialize(name, options)
@name = name
@options = options.except(:api_only)
@children = []
end
def add(route_or_scope)
@children << route_or_scope
end
def resource... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | asciidoctor-reducer.gemspec | Ruby | mit | 46 | main | 1,805 | begin
require_relative 'lib/asciidoctor/reducer/version'
rescue LoadError
require 'asciidoctor/reducer/version'
end
Gem::Specification.new do |s|
s.name = 'asciidoctor-reducer'
s.version = Asciidoctor::Reducer::VERSION
s.summary = 'Reduces an AsciiDoc document containing includes and conditionals to a single... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | Gemfile | Ruby | mit | 46 | main | 655 | # frozen_string_literal: true
source 'https://rubygems.org'
gemspec
gem 'asciidoctor', ENV['ASCIIDOCTOR_VERSION'], require: false if ENV.key? 'ASCIIDOCTOR_VERSION'
if (Gem::Version.new RUBY_VERSION) >= (Gem::Version.new '3.3.0')
gem 'logger'
end
group :coverage do
gem 'deep-cover-core', '~> 1.1.0', require: fal... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/include_mapper.rb | Ruby | mit | 46 | main | 206 | # frozen_string_literal: true
require_relative 'include_mapper/extension'
Asciidoctor::Extensions.register do
next if document.options[:reduced]
tree_processor Asciidoctor::Reducer::IncludeMapper
end |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/api.rb | Ruby | mit | 46 | main | 2,517 | # frozen_string_literal: true
autoload :Pathname, 'pathname'
require_relative 'extensions'
module Asciidoctor::Reducer
autoload :VERSION, (::File.join __dir__, 'version.rb')
class << self
# Reduces the AsciiDoc source and either returns the reduced Asciidoctor::Document or writes the source to a file.
#
... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/cli.rb | Ruby | mit | 46 | main | 4,977 | # frozen_string_literal: true
require_relative 'api'
autoload :OptionParser, 'optparse'
module Asciidoctor::Reducer
module Cli
class << self
def parse args
options = { attributes: {}, log_level: LOG_LEVELS['warn'], safe: :unsafe }
opt_parser = ::OptionParser.new do |opts|
opts.p... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/include_directive_tracker.rb | Ruby | mit | 46 | main | 2,601 | # frozen_string_literal: true
module Asciidoctor::Reducer
module IncludeDirectiveTracker
def self.extended instance
instance.singleton_class.send :attr_reader, :include_replacements
instance.instance_variable_set :@include_replacements, ([{}].extend CurrentPosition)
instance.instance_variable_s... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/tree_processor.rb | Ruby | mit | 46 | main | 2,850 | # frozen_string_literal: true
module Asciidoctor::Reducer
class TreeProcessor < ::Asciidoctor::Extensions::TreeProcessor
def process doc
if (inc_replacements = doc.reader.include_replacements).size > 1 || !(inc_replacements[0][:drop] || []).empty?
inc_replacements[0][:lines] = doc.source_lines.dup
... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/preprocessor.rb | Ruby | mit | 46 | main | 471 | # frozen_string_literal: true
unless RUBY_ENGINE == 'opal'
require_relative 'include_directive_tracker'
require_relative 'conditional_directive_tracker'
end
module Asciidoctor::Reducer
class Preprocessor < ::Asciidoctor::Extensions::Preprocessor
def process doc, reader
doc.options[:preserve_conditiona... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/extensions.rb | Ruby | mit | 46 | main | 1,213 | # frozen_string_literal: true
unless RUBY_ENGINE == 'opal'
require 'asciidoctor' unless defined? Asciidoctor.load
require_relative 'header_attribute_tracker'
require_relative 'preprocessor'
require_relative 'tree_processor'
end
module Asciidoctor::Reducer
module Extensions
module_function
def group... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/header_attribute_tracker.rb | Ruby | mit | 46 | main | 490 | # frozen_string_literal: true
module Asciidoctor::Reducer
module HeaderAttributeTracker
def self.extended instance
return if instance.singleton_class.method_defined? :source_header_attributes
instance.singleton_class.send :attr_reader, :source_header_attributes
end
def finalize_header(*)
... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/conditional_directive_tracker.rb | Ruby | mit | 46 | main | 956 | # frozen_string_literal: true
module Asciidoctor::Reducer
module ConditionalDirectiveTracker
def preprocess_conditional_directive keyword, target, delimiter, text
skip_active = @skipping
depth = @conditional_stack.size
directive_lineno = @lineno
result = super
return result if @skip... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | lib/asciidoctor/reducer/include_mapper/extension.rb | Ruby | mit | 46 | main | 674 | # frozen_string_literal: true
module Asciidoctor::Reducer
class IncludeMapper < ::Asciidoctor::Extensions::TreeProcessor
def process doc
if doc.extensions.groups[:reducer]
unless (includes = doc.catalog[:includes].map {|name, val| val ? name : %(~#{name}) }).empty?
doc.source_lines.push '... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | tasks/version.rb | Ruby | mit | 46 | main | 1,823 | # frozen_string_literal: true
require 'time'
release_version = ENV['RELEASE_VERSION']
release_date = Time.now.strftime '%Y-%m-%d'
release_user = ENV['RELEASE_USER']
version_file = Dir['lib/**/version.rb'].first
version_contents = (File.readlines version_file, mode: 'r:UTF-8').map do |l|
(l.include? 'VERSION') ? (l... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | tasks/rubocop.rake | Ruby | mit | 46 | main | 404 | # frozen_string_literal: true
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new :lint do |t|
t.patterns = Dir['lib/**/*.rb'] + %w(Rakefile Gemfile .deep_cover.rb tasks/*.rake spec/**/*.rb)
end
rescue LoadError => e
task :lint do
raise 'Failed to load lint task.
Install required gems using: bundle... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/api_spec.rb | Ruby | mit | 46 | main | 15,523 | # frozen_string_literal: true
describe Asciidoctor::Reducer do
let :the_input_source do
<<~'END'
before include
include::multiple-paragraphs.adoc[]
after include
END
end
let :the_expected_source do
<<~'END'
before include
first paragraph
second paragraph
with two line... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/include_mapper_spec.rb | Ruby | mit | 46 | main | 5,369 | # frozen_string_literal: true
require 'asciidoctor/reducer/include_mapper/extension'
describe Asciidoctor::Reducer::IncludeMapper do
it 'should not add include mapping comment if document has no includes' do
ext_class = described_class
run_scenario do
input_source <<~'END'
no includes here
... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper.rb | Ruby | mit | 46 | main | 643 | # frozen_string_literal: true
case ENV['COVERAGE']
when 'deep'
ENV['DEEP_COVER'] = 'true'
require 'deep_cover'
when 'true'
require 'deep_cover/builtin_takeover'
require 'simplecov'
end
require 'asciidoctor/reducer/api'
require 'asciidoctor/reducer/cli'
require 'stringio'
require_relative 'spec_helper/ext/path... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/extensions_spec.rb | Ruby | mit | 46 | main | 4,745 | # frozen_string_literal: true
describe Asciidoctor::Reducer::Extensions do
describe_method '.group' do
it 'should return extension group' do
group = subject.call
(expect group).to be_a Proc
doc = Asciidoctor.load []
reg = (Asciidoctor::Extensions.create described_class.key, &group).activa... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/reducer_spec.rb | Ruby | mit | 46 | main | 51,483 | # frozen_string_literal: true
describe Asciidoctor::Reducer do
let :empty_hash do
{}
end
it 'should be able to require library from Ruby process' do
# NOTE asciidoctor/reducer/version will already be required by Bundler
script_file = fixture_file 'print_version.rb'
output = %x(#{ruby} #{Shellwor... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/cli_spec.rb | Ruby | mit | 46 | main | 17,101 | # frozen_string_literal: true
describe Asciidoctor::Reducer::Cli do
before do
@old_stdin, $stdin = $stdin, StringIO.new
@old_stdout, $stdout = $stdout, StringIO.new # rubocop:disable RSpec/ExpectOutput
@old_stderr, $stderr = $stderr, StringIO.new # rubocop:disable RSpec/ExpectOutput
end
after do
... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper/scenario_builder.rb | Ruby | mit | 46 | main | 5,053 | # frozen_string_literal: true
require 'delegate'
class ScenarioBuilder < SimpleDelegator
UNDEFINED = ::Object.new
attr_reader :result
def initialize example
super
@chdir = ::Dir.pwd
@expected_exit_status = 0
@expected_log_messages = @expected_source = @include_source = @input_source = @output_... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper/helpers.rb | Ruby | mit | 46 | main | 4,542 | # frozen_string_literal: true
require 'shellwords'
require 'socket'
require 'open3'
require 'tempfile'
require_relative 'scenario_builder'
module RSpec::ExampleGroupHelpers
def describe_method refname, *args, &block
describe refname, *args do
subject { super().method refname.slice 1, refname.length }
... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper/ext/pathname.rb | Ruby | mit | 46 | main | 243 | # frozen_string_literal: true
unless (Pathname.instance_method :rmtree).arity > 0
autoload :FileUtils, 'fileutils'
Pathname.prepend (Module.new do
def rmtree **kwargs
FileUtils.rm_rf @path, **kwargs
nil
end
end)
end |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper/matchers/log_messages.rb | Ruby | mit | 46 | main | 752 | # frozen_string_literal: true
RSpec::Matchers.define :log_messages do |*expecteds, **opts|
expecteds.empty? ? (expecteds, opts = [opts], {}) : (expecteds = expecteds.flatten)
expecteds = [] unless expecteds.length > 1 || expecteds[0]
match notify_expectation_failures: true do |actual|
with_memory_logger opts... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper/matchers/have_size.rb | Ruby | mit | 46 | main | 277 | # frozen_string_literal: true
RSpec::Matchers.define :have_size do |expected|
match {|actual| actual.size == expected }
failure_message do |actual|
%(expected #{RSpec::Support::ObjectFormatter.format actual} to have size #{expected}, but was #{actual.size})
end
end |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper/matchers/have_message.rb | Ruby | mit | 46 | main | 1,356 | # frozen_string_literal: true
RSpec::Matchers.define :have_message do |expected|
actual = nil
match notify_expectation_failures: true do |logger|
messages = logger.messages
expected_at = expected[:at] || 0
next unless (actual = messages[expected_at]) && actual[:severity] == expected[:severity]
actu... |
github | asciidoctor/asciidoctor-reducer | https://github.com/asciidoctor/asciidoctor-reducer | spec/spec_helper/matchers/have_source.rb | Ruby | mit | 46 | main | 381 | # frozen_string_literal: true
RSpec::Matchers.define :have_source do |expected|
match {|actual| actual.source == expected }
failure_message do |actual|
message = %(expected #{actual} to have source #{expected.inspect})
differ = RSpec::Expectations.differ
(RSpec::Matchers::MultiMatcherDiff.from expected... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | gems.rb | Ruby | mit | 46 | main | 531 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2020, by Zete Lui.
source "https://rubygems.org"
gemspec
gem "rake"
group :maintenance, optional: true do
gem "bake-gem"
gem "bake-modernize"
gem "bake-rele... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | ffi-clang.gemspec | Ruby | mit | 46 | main | 1,151 | # frozen_string_literal: true
require_relative "lib/ffi/clang/version"
Gem::Specification.new do |spec|
spec.name = "ffi-clang"
spec.version = FFI::Clang::VERSION
spec.summary = "Ruby FFI bindings for libclang C interface."
spec.authors = ["Samuel Williams", "Charlie Savage", "Masahiro Sano", "Carlos Martín Nie... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | ext/teapot.rb | Ruby | mit | 46 | main | 404 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013-2022, by Samuel Williams.
teapot_version "0.8.0"
define_target "ffi-clang" do |target|
target.depends "Library/clang"
target.provides "Dependencies/ffi-clang"
end
define_configuration "ffi-clang" do |configuration|
configuration[:s... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | ext/rakefile.rb | Ruby | mit | 46 | main | 328 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013-2025, by Samuel Williams.
require "teapot"
task :default do
controller = Teapot::Controller.new(__dir__)
controller.fetch
packages = ["Dependencies/ffi-clang", "variant-release", "platform-darwin-osx"]
controller.build(packag... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/spec_helper.rb | Ruby | mit | 46 | main | 1,132 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2024-20... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/cursor_apis_spec.rb | Ruby | mit | 46 | main | 8,004 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
describe FFI::Clang::Cursor do
let(:translation_unit) {Index.new.parse_translation_unit(fixture_path("cursor_apis.cpp"))}
let(:cursor) {translation_unit.cursor}
describe "#storage_class" do
let(:extern_var) do... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/translation_unit_target_spec.rb | Ruby | mit | 46 | main | 652 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
describe FFI::Clang::TranslationUnit do
let(:translation_unit) {Index.new.parse_translation_unit(fixture_path("a.c"))}
describe "#target_triple" do
it "returns the target triple string" do
triple = translati... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/version_spec.rb | Ruby | mit | 46 | main | 558 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
describe FFI::Clang.clang_version_string do
it "returns a version string for showing to user" do
expect(subject).to be_kind_of(Strin... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/source_range_spec.rb | Ruby | mit | 46 | main | 2,672 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
describe SourceRange do
let(:translation_unit) {Index.new.parse_translation_unit(fixture_path("list.c"))}
let(:translation_unit_range... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/source_location_spec.rb | Ruby | mit | 46 | main | 7,767 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2024-2026, by Charlie Savage.
describe SourceLocation do
let(:translation_unit) {Index.new.parse_translation_unit(fixture... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/indexing_spec.rb | Ruby | mit | 46 | main | 2,558 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
describe "Index bindings" do
before :all do
FileUtils.mkdir_p TMP_DIR
end
after :all do
FileUtils.rm_rf TMP_DIR
end
it "exposes skipped-range bindings" do
expect(FFI::Clang::Lib).to respond_to(:get_ski... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/index_spec.rb | Ruby | mit | 46 | main | 8,326 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2019, by Hayden Purdy.
# Copyright, 2023-2026, by Charlie Savage.
describe Index do
befo... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/file_spec.rb | Ruby | mit | 46 | main | 4,499 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
describe File do
let(:file_list) {Index.new.parse_translation_unit(fixture_path("list.c")).file(fixture_path("list.c"))}
let(:file_do... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/comment_spec.rb | Ruby | mit | 46 | main | 15,489 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2024-2026, by Charlie Savage.
describe "comment render kind mapping" do
let(... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/compilation_database_spec.rb | Ruby | mit | 46 | main | 5,379 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2020, by Zete Lui.
# Copyright, 2026, by Charlie Savage.
describe CompilationDatabase do
let(:dirpath) {fixture_path("")}
let(:cdb) {CompilationDatabase.new(d... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/printing_policy_spec.rb | Ruby | mit | 46 | main | 1,596 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
describe "printing policy property mappings" do
it "includes the constant array size property" do
expect(FFI::Clang::Lib::PrintingPolicyProperty[:printing_policy_constant_array_size_as_written]).to eq(7)
end
end
... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/diagnostic_spec.rb | Ruby | mit | 46 | main | 3,763 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2023-2026, by Charlie Savage.
describe Diagnostic do
let(:diagnostics) {Index.new.parse_... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/translation_unit_spec.rb | Ruby | mit | 46 | main | 10,562 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2019, by Michael Metivier.
# Copyright, 2023-20... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/evaluation_spec.rb | Ruby | mit | 46 | main | 2,176 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
describe "eval result kind mapping" do
let(:eval_result_kind_value_class) do
Class.new(FFI::Struct) do
layout :value, FFI::Clang::Lib.find_type(:eval_result_kind)
end
end
let(:eval_result_kind_value) {eval_... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/args_spec.rb | Ruby | mit | 46 | main | 774 | # frozen_string_literal: true
require "spec_helper"
RSpec.describe FFI::Clang::Args do
describe "#llvm_library_dir" do
it "runs llvm-config from PATH" do
original_llvm_config = ENV["LLVM_CONFIG"]
original_llvm_version = ENV["LLVM_VERSION"]
ENV.delete("LLVM_CONFIG")
ENV.delete("LLVM_VERSION")
... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/type_spec.rb | Ruby | mit | 46 | main | 45,741 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2024-2026, by Charlie Savage.
describe FFI::Clang::Lib::CXType do
let(:type)... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/code_completion_spec.rb | Ruby | mit | 46 | main | 7,212 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2023-2026, by Charlie Savage.
describe "code completion enum mappings" do
it "includes current code completion flags" do
expect(FFI::Clang::Lib::CodeComplete... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/cursor_spec.rb | Ruby | mit | 46 | main | 51,800 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014, by George Pimm.
# Copyright, 2017,... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/index_action_spec.rb | Ruby | mit | 46 | main | 12,244 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
describe IndexAction do
let(:index) {Index.new}
let(:action) {IndexAction.new(index)}
let(:source_file) {fixture_path("indexing.c")}
let(:included_header) {fixture_path("extra.h")}
let(:command_line_args) {["-st... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/token_spec.rb | Ruby | mit | 46 | main | 2,694 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2024-2026, by Charlie Savage.
describe Tokens do
let(:translation_unit) {Index.new.parse_translation_unit(fixture_path("list.c"))}
let(:cursor) {translation_u... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/linux_args_spec.rb | Ruby | mit | 46 | main | 1,004 | # frozen_string_literal: true
require "spec_helper"
RSpec.describe FFI::Clang::LinuxArgs do
subject(:args) {described_class.new}
describe "#find_libclang_paths" do
it "tries versioned sonames before the generic fallback" do
allow(args).to receive(:llvm_library_dir).and_return("/opt/llvm/lib")
allow(args).... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | spec/ffi/clang/cursor_set_spec.rb | Ruby | mit | 46 | main | 1,038 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
describe CursorSet do
let(:translation_unit) {Index.new.parse_translation_unit(fixture_path("class.cpp"))}
let(:root_cursor) {translation_unit.cursor}
let(:class_cursor) {find_by_kind(root_cursor, :cursor_class_de... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang.rb | Ruby | mit | 46 | main | 1,422 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010-2011, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2024... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/index.rb | Ruby | mit | 46 | main | 16,958 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013, by Dave Wilkinson.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, ... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/unsaved_file.rb | Ruby | mit | 46 | main | 1,492 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2014, by Masahiro Sano.
module FFI
module Clang
# Represents an unsaved file with in-memory contents for parsing.
class UnsavedFile
# Initialize a... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/token.rb | Ruby | mit | 46 | main | 4,604 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/token"
require_relative "lib/cursor"
require_relative "source_location"
module FFI
module Clang
# Represents ... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/evaluation.rb | Ruby | mit | 46 | main | 1,607 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/evaluation"
module FFI
module Clang
# Represents the result of evaluating a cursor as a compile-time constant.
class EvalResult < AutoPointer
# Get the kind of this evaluation result.
... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/diagnostic.rb | Ruby | mit | 46 | main | 3,990 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2023-2026, by Charlie Savage.
require_relative "lib... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/cursor_set.rb | Ruby | mit | 46 | main | 1,051 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/cursor_set"
module FFI
module Clang
# Represents a libclang cursor set for fast cursor membership checks.
class CursorSet < AutoPointer
# Create an empty cursor set.
def initialize
... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/comment.rb | Ruby | mit | 46 | main | 12,098 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2014, by George Pimm.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/cursor"
require_relative "lib/comme... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/compilation_database.rb | Ruby | mit | 46 | main | 5,394 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/compilation_database"
module FFI
module Clang
# Represents a compilation database for a project.
class Comp... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/cursor.rb | Ruby | mit | 46 | main | 38,650 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013, by Dave Wilkinson.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 20... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/invocation_support.rb | Ruby | mit | 46 | main | 1,634 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
module FFI
module Clang
# Shared helpers for preparing libclang invocation arguments and options.
module InvocationSupport
private
# Convert command line arguments to a pointer array for libclang.
#... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/string_set.rb | Ruby | mit | 46 | main | 1,378 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/string"
module FFI
module Clang
# Represents a set of strings returned by libclang.
class StringSet
include Enumerable
# @attribute [r] size
# @returns [Integer] The number o... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/code_completion.rb | Ruby | mit | 46 | main | 9,802 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2023-2026, by Charlie Savage.
require_relative "lib/code_completion"
module FFI
module Clang
# @namespace
class CodeCompletion
# Get the default code c... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/source_location.rb | Ruby | mit | 46 | main | 8,536 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2024-2026, by Charlie Savage.
require_relative "lib... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/diagnostic_set.rb | Ruby | mit | 46 | main | 1,718 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/diagnostic"
module FFI
module Clang
# Represents a set of child diagnostics from a parent Diagnostic.
#
# This is not an AutoPointer because the CXDiagnosticSet pointer is
# owned by t... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/overridden_cursors.rb | Ruby | mit | 46 | main | 2,050 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/cursor"
module FFI
module Clang
class Cursor
# Represents the set of cursors overridden by a method.
# Calls clang_getOverriddenCursors, copies each CXCursor into
# Ruby-managed mem... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/lib.rb | Ruby | mit | 46 | main | 2,380 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010-2012, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013-2014, by Carlos Martín Nieto.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, by Masahiro Sano.
# Copyrigh... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/clang_version.rb | Ruby | mit | 46 | main | 645 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2016-2025, by Samuel Williams.
# Copyright, 2023, by Charlie Savage.
require_relative "lib/clang_version"
module FFI
module Clang
# Get the version string of the libclang library.
# @returns [String] The libclang version string.
def ... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/translation_unit.rb | Ruby | mit | 46 | main | 10,705 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014, by Greg Hazel.
# Copyright, 2019, by Michael M... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/source_range.rb | Ruby | mit | 46 | main | 3,307 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/sour... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/platform.rb | Ruby | mit | 46 | main | 563 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
require "rbconfig"
module FFI
module Clang
# Get the current platform identifier.
# @returns [Symbol] The platform identifier (`:darwin`, `:linux`, `:mingw`, `:mswin`, or ... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/index_action.rb | Ruby | mit | 46 | main | 22,912 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/indexing"
require_relative "cursor"
require_relative "file"
require_relative "source_location"
require_relative "translation_unit"
require_relative "invocation_support"
require_relative "unsaved... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/file.rb | Ruby | mit | 46 | main | 4,162 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
require_relative "lib/file"
require_relative "lib/inclusions"
require_relative "cursor"
require_relative "source_range"
require_relativ... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/printing_policy.rb | Ruby | mit | 46 | main | 1,492 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2024, by Charlie Savage.
# Copyright, 2024-2025, by Samuel Williams.
require_relative "lib/printing_policy"
module FFI
module Clang
# Represents a printing policy that controls how declarations are formatted.
class PrintingPolicy < Aut... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/error.rb | Ruby | mit | 46 | main | 241 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2025, by Samuel Williams.
module FFI
module Clang
# Represents an error that occurred during libclang operations.
class Error < StandardError
end
end
end |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/version.rb | Ruby | mit | 46 | main | 301 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2026, by Charlie Savage.
# @namespace
module FFI
# @namespace
module Clang
VERSION = "0.15.2"
end
end |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/types/pointer.rb | Ruby | mit | 46 | main | 2,147 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2024, by Charlie Savage.
# Copyright, 2025, by Samuel Williams.
module FFI
module Clang
module Types
# Represents a pointer type.
# This includes regular pointers, block pointers, Objective-C object pointers, and member pointers.
... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/types/function.rb | Ruby | mit | 46 | main | 2,129 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2024, by Charlie Savage.
# Copyright, 2025, by Samuel Williams.
module FFI
module Clang
module Types
# Represents a function type.
# This includes functions with and without prototypes.
class Function < Type
include Enumerabl... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/types/record.rb | Ruby | mit | 46 | main | 1,078 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2024, by Charlie Savage.
# Copyright, 2025, by Samuel Williams.
module FFI
module Clang
module Types
# Represents a record type (struct or union).
class Record < Type
# Get the byte offset of a field within this record.
# @p... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/types/array.rb | Ruby | mit | 46 | main | 815 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2024, by Charlie Savage.
# Copyright, 2025, by Samuel Williams.
module FFI
module Clang
# Type system classes for representing C/C++ types.
# @namespace
module Types
# Represents an array type.
# This includes constant arrays, i... |
github | socketry/ffi-clang | https://github.com/socketry/ffi-clang | lib/ffi/clang/types/type.rb | Ruby | mit | 46 | main | 20,769 | # frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2013, by Carlos Martín Nieto.
# Copyright, 2013-2025, by Samuel Williams.
# Copyright, 2013, by Takeshi Watanabe.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014, by Niklas Therning.
# Copyright, 2024-2026, by Charlie Savage.
module F... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.