Class: Clangc::TranslationUnit

Inherits:
Object
  • Object
show all
Defined in:
ext/clangc/clangc.c,
lib/clangc.rb

Instance Method Summary (collapse)

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

- (Object) diagnostics_num

- (Object) file

- (Object) spelling