Module: FFI::Clang
- Defined in:
- lib/ffi/clang/lib.rb,
lib/ffi/clang/file.rb,
lib/ffi/clang/index.rb,
lib/ffi/clang/token.rb,
lib/ffi/clang/cursor.rb,
lib/ffi/clang/comment.rb,
lib/ffi/clang/version.rb,
lib/ffi/clang/lib/file.rb,
lib/ffi/clang/lib/type.rb,
lib/ffi/clang/lib/index.rb,
lib/ffi/clang/lib/token.rb,
lib/ffi/clang/diagnostic.rb,
lib/ffi/clang/lib/cursor.rb,
lib/ffi/clang/lib/string.rb,
lib/ffi/clang/types/type.rb,
lib/ffi/clang/lib/comment.rb,
lib/ffi/clang/types/array.rb,
lib/ffi/clang/source_range.rb,
lib/ffi/clang/types/record.rb,
lib/ffi/clang/types/vector.rb,
lib/ffi/clang/unsaved_file.rb,
lib/ffi/clang/clang_version.rb,
lib/ffi/clang/types/pointer.rb,
lib/ffi/clang/lib/diagnostic.rb,
lib/ffi/clang/lib/inclusions.rb,
lib/ffi/clang/types/function.rb,
lib/ffi/clang/types/type_def.rb,
lib/ffi/clang/code_completion.rb,
lib/ffi/clang/printing_policy.rb,
lib/ffi/clang/source_location.rb,
lib/ffi/clang/lib/source_range.rb,
lib/ffi/clang/translation_unit.rb,
lib/ffi/clang/types/elaborated.rb,
lib/ffi/clang/lib/clang_version.rb,
lib/ffi/clang/lib/code_completion.rb,
lib/ffi/clang/lib/printing_policy.rb,
lib/ffi/clang/lib/source_location.rb,
lib/ffi/clang/compilation_database.rb,
lib/ffi/clang/lib/translation_unit.rb,
lib/ffi/clang/lib/compilation_database.rb,
lib/ffi/clang.rb
Defined Under Namespace
Modules: Lib, Types
Classes: BlockCommandComment, CodeCompletion, Comment, CompilationDatabase, Cursor, Diagnostic, Error, ExpansionLocation, File, FileLocation, FullComment, HTMLEndTagComment, HTMLStartTagComment, HTMLTagComment, Index, InlineCommandComment, ParagraphComment, ParamCommandComment, PresumedLocation, PrintingPolicy, SourceLocation, SourceRange, SpellingLocation, TParamCommandComment, TextComment, Token, Tokens, TranslationUnit, UnsavedFile, VerbatimBlockCommandComment, VerbatimBlockLineComment, VerbatimLine
Constant Summary
collapse
- VERSION =
"0.11.0"
Class Method Summary
collapse
Class Method Details
.clang_version ⇒ Object
15
16
17
18
|
# File 'lib/ffi/clang/clang_version.rb', line 15
def self.clang_version
clang_version = self.clang_version_string.match(/\d+\.\d+\.\d+/)
Gem::Version.new(clang_version)
end
|
.clang_version_string ⇒ Object
11
12
13
|
# File 'lib/ffi/clang/clang_version.rb', line 11
def self.clang_version_string
Lib. Lib.get_clang_version
end
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/ffi/clang.rb', line 18
def self.platform
os = RbConfig::CONFIG["host_os"]
case os
when /darwin/
:darwin
when /linux/
:linux
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
:windows
else
os
end
end
|