class FFI::Clang::CompilationDatabase::CompileCommand

Public Class Methods

new(pointer) click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 82
def initialize(pointer)
        @pointer = pointer
end

Public Instance Methods

arg(i) click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 94
def arg(i)
        Lib.extract_string Lib.compile_command_get_arg(@pointer, i)
end
args() click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 98
def args
        num_args.times.map { |i| arg(i) }
end
directory() click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 86
def directory
        Lib.extract_string Lib.compile_command_get_directory(@pointer)
end
mapped_source_content(i) click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 112
def mapped_source_content(i)
        raise NotImplementedError
        # Lib.extract_string Lib.compile_command_get_mapped_source_content(@pointer, i)
end
mapped_source_path(i) click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 107
def mapped_source_path(i)
        raise NotImplementedError
        # Lib.extract_string Lib.compile_command_get_mapped_source_path(@pointer, i)
end
mapped_sources() click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 117
def mapped_sources
        num_mapped_sources.times.map { |i|
                {path: mapped_source_path(i), content: mapped_source_content(i)}
        }
end
num_args() click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 90
def num_args
        Lib.compile_command_get_num_args(@pointer)
end
num_mapped_sources() click to toggle source
# File lib/ffi/clang/compilation_database.rb, line 102
def num_mapped_sources
        raise NotImplementedError
        # Lib.compile_command_get_num_mapped_sources(@pointer)
end