parameters: (self)
return_statement: return DiagIterator(self)
docstring: Return an iterable (and indexable) object containing the diagnostics.
docstring_summary: Return an iterable (and indexable) object containing the diagnostics.
docstring_tokens: Return an iterable ( and indexable ) object containing the diagnostics .
function: def diagnostics(self):
          """
          Return an iterable (and indexable) object containing the diagnostics.
          """
          class DiagIterator(object):
              def __init__(self, tu):
                  self.tu = tu
  
              def __len__(self):
                  return int(conf.lib.clang_getNumDiagnostics(self.tu))
  
              def __getitem__(self, key):
                  diag = conf.lib.clang_getDiagnostic(self.tu, key)
                  if not diag:
                      raise IndexError
                  return Diagnostic(diag)
  
          return DiagIterator(self)
function_tokens: def diagnostics ( self ) : class DiagIterator ( object ) : def __init__ ( self , tu ) : self . tu = tu def __len__ ( self ) : return int ( conf . lib . clang_getNumDiagnostics ( self . tu ) ) def __getitem__ ( self , key ) : diag = conf . lib . clang_getDiagnostic ( self . tu , key ) if not diag : raise IndexError return Diagnostic ( diag ) return DiagIterator ( self )