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

Safe HaskellNone

Clang.TranslationUnit

Documentation

type Index = Ptr IndexObjSource

withCreateIndex :: Bool -> Bool -> (Ptr IndexObj -> IO b) -> IO bSource

withCreate :: Index -> String -> (Ptr TranslationUnitObj -> IO b) -> IO bSource

withCreateFromSourceFileSource

Arguments

:: Index

Index for the source

-> FilePath

Source filename

-> [String]

Command line arguments ( this can include all clang compatible flags)

-> [UnsavedFile]

Unsaved files

-> (TranslationUnit -> IO a)

Function that will process the TranslationUnit

-> IO a 

withParseSource

Arguments

:: Index

Index for the source

-> Maybe FilePath

Source filename

-> [String]

Command line arguments ( this can include all clang compatible flags)

-> [UnsavedFile]

Unsaved files

-> [TranslationUnitFlags]

TranslationUnit flags

-> (TranslationUnit -> IO a)

Function that will process the TranslationUnit

-> IO a

Result to be returned if source couldn't be parsed

-> IO a 

saveSource

Arguments

:: TranslationUnit

TranslationUnit to save

-> FilePath

Filename to save to

-> [SaveTranslationUnitFlags]

Saving Flags

-> IO Bool 

reparseSource

Arguments

:: TranslationUnit

TranslationUnit to save

-> [UnsavedFile]

All the unsaved files

-> [ReparseFlags]

reparse options

-> IO Bool