LibClang-3.4.0: Haskell bindings for libclang (a C++ parsing library)

Safe HaskellNone
LanguageHaskell2010

Clang.Module

Description

Functions for manipulating Modules. An Module value may be obtained using getModule.

This module is intended to be imported qualified.

Synopsis

Documentation

getASTFile :: ClangBase m => Module s' -> ClangT s m (File s) Source

Retrieves the File which contains the provided module.

getParent :: ClangBase m => Module s' -> ClangT s m (Maybe (Module s)) Source

Given an module, returns either

  • the parent module (for example, for 'std.vector' the 'std' module will be returned), or
  • Nothing if the module is top-level.

getName :: ClangBase m => Module s' -> ClangT s m (ClangString s) Source

Retrieves the name of a module. For example, for 'std.vector', getName will return 'vector'.

getFullName :: ClangBase m => Module s' -> ClangT s m (ClangString s) Source

Retrieves the full name of a module, e.g. 'std.vector'.

getTopLevelHeaders :: ClangBase m => TranslationUnit s' -> Module s'' -> ClangT s m [File s] Source

Returns the list of top-level headers associated with the given module.