module Clang
Nested
CodeCompletionCommentHTMLTagCommentHTMLStartTagCommentHTMLEndTagCommentParagraphCommentTextCommentInlineCommandCommentBlockCommandCommentParamCommandCommentTParamCommandCommentVerbatimBlockCommandCommentVerbatimBlockLineCommentVerbatimLineFullCommentCompilationDatabaseCursorDiagnosticErrorFileIndexLibPrintingPolicySourceLocationExpansionLocationPresumedLocationSpellingLocationFileLocationSourceRangeTokensTokenTranslationUnitTypesUnsavedFile
Definitions
def self.clang_version_string
Get the version string of the libclang library.
Signature
-
returns
String The libclang version string.
Implementation
def self.clang_version_string
Lib.extract_string Lib.get_clang_version
end
def self.clang_version
Get the libclang version as a Gem::Version object.
Signature
-
returns
Gem::Version The parsed version.
Implementation
def self.clang_version
clang_version = self.clang_version_string.match(/\d+\.\d+\.\d+/)
Gem::Version.new(clang_version)
end
def self.platform
Get the current platform identifier.
Signature
-
returns
Symbol The platform identifier (
:darwin,:linux,:windows, or a custom platform string).
Implementation
def self.platform
case RUBY_PLATFORM
when /darwin/
:darwin
when /linux/
:linux
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
:windows
else
RUBY_PLATFORM.split("-").last
end
end