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

Safe HaskellNone
LanguageHaskell2010

Clang.Index

Contents

Description

Functions for manipulating indexes.

An index is a container that holds a set of translation units. Generally you'll create an index using withNew and then use that index with functions from Clang.TranslationUnit to create and work with translation units.

This module is intended to be imported qualified.

Synopsis

Creating an index

withNew Source

Arguments

:: ClangBase m 
=> Bool

Whether to exclude declarations coming from pre-compiled headers.

-> Bool

Whether to automatically display diagnostic messages.

-> (forall s. Index s -> ClangT s m a)

The function which will use the index.

-> m a 

Creates an index.

Index options

getGlobalOptions :: ClangBase m => Index s' -> ClangT s m [GlobalIndexOptions] Source

Retrieves the global options for this index.

setGlobalOptions :: ClangBase m => Index s' -> [GlobalIndexOptions] -> ClangT s m () Source

Sets the global options for this index.

threadBackgroundPriorityForAll :: [GlobalIndexOptions] Source

A set of global index options that requests background priority for all threads.