language-c-0.9.2: Analysis and generation of C code
Copyright(c) 2008 Benedikt Huber
LicenseBSD-style
Maintainerbenedikt.huber@gmail.com
Stabilityprototype
Portabilityghc
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.C.Analysis.Debug

Description

Pretty printing the semantic analysis representation. This is currently only intended for debugging purposes.

Documentation

globalDeclStats :: (FilePath -> Bool) -> GlobalDecls -> [(String, Int)] Source #

prettyAssocs :: (Pretty k, Pretty v) => String -> [(k, v)] -> Doc Source #

prettyAssocsWith :: String -> (k -> Doc) -> (v -> Doc) -> [(k, v)] -> Doc Source #

Orphan instances

Pretty DefTable Source # 
Instance details

Methods

pretty :: DefTable -> Doc Source #

prettyPrec :: Int -> DefTable -> Doc Source #

Pretty TagFwdDecl Source # 
Instance details

Methods

pretty :: TagFwdDecl -> Doc Source #

prettyPrec :: Int -> TagFwdDecl -> Doc Source #

Pretty Attr Source # 
Instance details

Methods

pretty :: Attr -> Doc Source #

prettyPrec :: Int -> Attr -> Doc Source #

Pretty Attributes Source # 
Instance details

Methods

pretty :: Attributes -> Doc Source #

prettyPrec :: Int -> Attributes -> Doc Source #

Pretty CompTyKind Source # 
Instance details

Methods

pretty :: CompTyKind -> Doc Source #

prettyPrec :: Int -> CompTyKind -> Doc Source #

Pretty CompType Source # 
Instance details

Methods

pretty :: CompType -> Doc Source #

prettyPrec :: Int -> CompType -> Doc Source #

Pretty CompTypeRef Source # 
Instance details

Methods

pretty :: CompTypeRef -> Doc Source #

prettyPrec :: Int -> CompTypeRef -> Doc Source #

Pretty Decl Source # 
Instance details

Methods

pretty :: Decl -> Doc Source #

prettyPrec :: Int -> Decl -> Doc Source #

Pretty DeclAttrs Source # 
Instance details

Methods

pretty :: DeclAttrs -> Doc Source #

prettyPrec :: Int -> DeclAttrs -> Doc Source #

Pretty EnumType Source # 
Instance details

Methods

pretty :: EnumType -> Doc Source #

prettyPrec :: Int -> EnumType -> Doc Source #

Pretty EnumTypeRef Source # 
Instance details

Methods

pretty :: EnumTypeRef -> Doc Source #

prettyPrec :: Int -> EnumTypeRef -> Doc Source #

Pretty Enumerator Source # 
Instance details

Methods

pretty :: Enumerator -> Doc Source #

prettyPrec :: Int -> Enumerator -> Doc Source #

Pretty FunDef Source # 
Instance details

Methods

pretty :: FunDef -> Doc Source #

prettyPrec :: Int -> FunDef -> Doc Source #

Pretty FunctionAttrs Source # 
Instance details

Methods

pretty :: FunctionAttrs -> Doc Source #

prettyPrec :: Int -> FunctionAttrs -> Doc Source #

Pretty GlobalDecls Source # 
Instance details

Methods

pretty :: GlobalDecls -> Doc Source #

prettyPrec :: Int -> GlobalDecls -> Doc Source #

Pretty IdentDecl Source # 
Instance details

Methods

pretty :: IdentDecl -> Doc Source #

prettyPrec :: Int -> IdentDecl -> Doc Source #

Pretty Linkage Source # 
Instance details

Methods

pretty :: Linkage -> Doc Source #

prettyPrec :: Int -> Linkage -> Doc Source #

Pretty MemberDecl Source # 
Instance details

Methods

pretty :: MemberDecl -> Doc Source #

prettyPrec :: Int -> MemberDecl -> Doc Source #

Pretty ObjDef Source # 
Instance details

Methods

pretty :: ObjDef -> Doc Source #

prettyPrec :: Int -> ObjDef -> Doc Source #

Pretty ParamDecl Source # 
Instance details

Methods

pretty :: ParamDecl -> Doc Source #

prettyPrec :: Int -> ParamDecl -> Doc Source #

Pretty Storage Source # 
Instance details

Methods

pretty :: Storage -> Doc Source #

prettyPrec :: Int -> Storage -> Doc Source #

Pretty TagDef Source # 
Instance details

Methods

pretty :: TagDef -> Doc Source #

prettyPrec :: Int -> TagDef -> Doc Source #

Pretty Type Source # 
Instance details

Methods

pretty :: Type -> Doc Source #

prettyPrec :: Int -> Type -> Doc Source #

Pretty TypeDef Source # 
Instance details

Methods

pretty :: TypeDef -> Doc Source #

prettyPrec :: Int -> TypeDef -> Doc Source #

Pretty TypeQuals Source # 
Instance details

Methods

pretty :: TypeQuals -> Doc Source #

prettyPrec :: Int -> TypeQuals -> Doc Source #

Pretty VarDecl Source # 
Instance details

Methods

pretty :: VarDecl -> Doc Source #

prettyPrec :: Int -> VarDecl -> Doc Source #

Pretty VarName Source # 
Instance details

Methods

pretty :: VarName -> Doc Source #

prettyPrec :: Int -> VarName -> Doc Source #

Pretty Ident Source # 
Instance details

Methods

pretty :: Ident -> Doc Source #

prettyPrec :: Int -> Ident -> Doc Source #

Pretty SUERef Source # 
Instance details

Methods

pretty :: SUERef -> Doc Source #

prettyPrec :: Int -> SUERef -> Doc Source #

(Pretty a, Pretty b) => Pretty (Either a b) Source # 
Instance details

Methods

pretty :: Either a b -> Doc Source #

prettyPrec :: Int -> Either a b -> Doc Source #