cdeps-0.1.1.0: Extract dependencies from C code.

Safe HaskellNone
LanguageHaskell2010

Language.C.Dependency

Synopsis

Documentation

getIncludes :: ByteString -> Either String [FilePath] Source #

Given a ByteString containing C, return a list of filepaths it #includes.

getCDepends Source #

Arguments

:: MonadIO m 
=> [FilePath]

Directories to search in

-> FilePath

Path to C source file

-> m [FilePath] 

Get any filepaths that were #include-ed in a C source file.

getAll Source #

Arguments

:: MonadIO m 
=> [FilePath]

Directories for included header/source files

-> FilePath

File name

-> m [FilePath] 

Get transitive dependencies of a C source file.