Safe Haskell | None |
---|---|
Language | Haskell2010 |
Clang.File
Description
Functions for manipulating File
s, which represent
references to files in the libclang AST.
This module is intended to be imported qualified.
- createFromPath :: ClangBase m => TranslationUnit s' -> FilePath -> ClangT s m (File s)
- getName :: ClangBase m => File s' -> ClangT s m (ClangString s)
- isMultipleIncludeGuarded :: ClangBase m => TranslationUnit s' -> File s'' -> ClangT s m Bool
- getMTime :: ClangBase m => File s' -> ClangT s m UTCTime
- getPosixMTime :: ClangBase m => File s' -> ClangT s m POSIXTime
- getUniqueId :: ClangBase m => File s' -> ClangT s m (Maybe UniqueId)
- data UniqueId
Creating files
createFromPath :: ClangBase m => TranslationUnit s' -> FilePath -> ClangT s m (File s) Source
Create a new File
value from the provided path.
File properties
getName :: ClangBase m => File s' -> ClangT s m (ClangString s) Source
Retrieve the filename of the given file.
isMultipleIncludeGuarded :: ClangBase m => TranslationUnit s' -> File s'' -> ClangT s m Bool Source
Determines whether the given file is guarded against multiple inclusions, either with the conventional '#ifdef' '#define' '#endif' macro guards or with '#pragma once'.
getMTime :: ClangBase m => File s' -> ClangT s m UTCTime Source
Returns the last modification time of the given file, represented
as a UTCTime
.
getPosixMTime :: ClangBase m => File s' -> ClangT s m POSIXTime Source
Returns the last modification time of the given file, represented
as a POSIXTime
.