Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- withNew :: ClangBase m => Bool -> Bool -> (forall s. Index s -> ClangT s m a) -> m a
- getGlobalOptions :: ClangBase m => Index s' -> ClangT s m [GlobalIndexOptions]
- setGlobalOptions :: ClangBase m => Index s' -> [GlobalIndexOptions] -> ClangT s m ()
- data GlobalIndexOptions
- threadBackgroundPriorityForAll :: [GlobalIndexOptions]
Creating an index
:: 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.
data GlobalIndexOptions Source
Options that apply globally to every translation unit within an index.
threadBackgroundPriorityForAll :: [GlobalIndexOptions] Source
A set of global index options that requests background priority for all threads.