Class: Clangc::TranslationUnit
- Inherits:
-
Object
- Object
- Clangc::TranslationUnit
- Defined in:
- ext/clangc/clangc.c,
lib/clangc.rb
Instance Method Summary (collapse)
- - (Object) cursor
- - (Object) default_reparse_options
- - (Object) default_save_options
- - (Object) diagnostic
-
- (Object) diagnostics
:call-seq: Clangc::TranslationUnit#diagnostics => Array.
- - (Object) diagnostics_num
- - (Object) file
- - (Object) spelling
Instance Method Details
- (Object) cursor
- (Object) default_reparse_options
- (Object) default_save_options
- (Object) diagnostic
- (Object) diagnostics
:call-seq:
Clangc::TranslationUnit#diagnostics => Array
Returns an array of Clangc::Diagnostic for the current Clangc::TranslationUnit. The array is empty if no Clangc::Diagnostic can be found.
39 40 41 42 43 44 45 |
# File 'lib/clangc.rb', line 39 def diagnostics ds = [] for i in 0..(diagnostics_num - 1) do ds << diagnostic(i) end ds end |