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 HaskellSafe
LanguageHaskell2010

Language.C.Preprocessor.Remover.Internal.Types

Contents

Description

 

Synopsis

Options for the cpp preprocessor

data CppOptions Source #

CppOptions represent the options which are passed, through the ghc api, to the cpp preprocessing program. For reference, here is the part of the gcc manual corresponding to the preprocessing options.

Constructors

CppOptions 

Fields

  • cppDefine :: [String]

    CPP #define macros. Corresponds to a -D option for the cpp program.

  • cppInclude :: [FilePath]

    CPP Includes directory. Corresponds to a -I option for the cpp program.

  • cppFile :: [FilePath]

    CPP pre-include file. Corresponds to a -include option for the cpp program.

emptyCppOptions :: CppOptions Source #

>>> emptyCppOptions
CppOptions {cppDefine = [], cppInclude = [], cppFile = []}

Aliases for the type signatures

type ProjectDir = FilePath Source #

ProjectDir is the directory which contains the .cabal file for the project.

type CabalFilePath = FilePath Source #

The path of the main .cabal file of the project.