preprocessor-0.1.0.0: Remove cpp annotations to get the source ready for static analysis.

Copyright(c) Carlo Nucera, 2016
LicenseBSD3
Maintainermeditans@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Language.C.Preprocessor.Remover.Internal.Preprocess

Contents

Description

 

Synopsis

Entry point for parsing

parseModuleWithCpp :: CppOptions -> FilePath -> IO String Source #

Parse a module with specific instructions for the C pre-processor.

Wrapper around GHC's preprocess

getPreprocessedSrcDirect :: GhcMonad m => CppOptions -> FilePath -> m String Source #

Invoke GHC's preprocess function at the cpp phase, adding the options specified in the first argument.