lib/ffi/clang/diagnostic.rb in ffi-clang-0.8.0 vs lib/ffi/clang/diagnostic.rb in ffi-clang-0.9.0
- old
+ new
@@ -1,22 +1,23 @@
# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2010, by Jari Bakken.
# Copyright, 2012, by Hal Brodigan.
-# Copyright, 2013-2022, by Samuel Williams.
+# Copyright, 2013-2024, by Samuel Williams.
# Copyright, 2013, by Garry Marshall.
# Copyright, 2014, by Masahiro Sano.
+# Copyright, 2023, by Charlie Savage.
require_relative 'lib/diagnostic'
require_relative 'source_range'
module FFI
module Clang
class Diagnostic < AutoPointer
def self.default_display_opts
- Lib.opts_from Lib::DiagnosticDisplayOptions, Lib.default_diagnostic_display_options
+ Lib.opts_from(Lib::DiagnosticDisplayOptions, Lib.default_diagnostic_display_options)
end
def initialize(translation_unit, pointer)
super pointer
@@ -94,10 +95,10 @@
def display_opts(opts)
if opts.empty?
Lib.default_diagnostic_display_options
else
- Lib.bitmask_from Lib::DiagnosticDisplayOptions, opts
+ Lib.bitmask_from(Lib::DiagnosticDisplayOptions, opts)
end
end
end
end
end