clang-pure-0.2.0.2: Pure C++ code analysis with libclang

Safe HaskellNone
LanguageHaskell2010

Language.C.Clang

Contents

Synopsis

Index

Utilities

class Clang n Source #

Minimal complete definition

deref, unsafeToPtr

Instances

Clang File Source # 

Methods

deref :: File -> (Ptr (RefOf File) -> IO a) -> IO a

unsafeToPtr :: File -> Ptr (RefOf File)

Clang SourceLocation Source # 

Methods

deref :: SourceLocation -> (Ptr (RefOf SourceLocation) -> IO a) -> IO a

unsafeToPtr :: SourceLocation -> Ptr (RefOf SourceLocation)

Clang SourceRange Source # 

Methods

deref :: SourceRange -> (Ptr (RefOf SourceRange) -> IO a) -> IO a

unsafeToPtr :: SourceRange -> Ptr (RefOf SourceRange)

Clang Cursor Source # 

Methods

deref :: Cursor -> (Ptr (RefOf Cursor) -> IO a) -> IO a

unsafeToPtr :: Cursor -> Ptr (RefOf Cursor)

Clang TranslationUnit Source # 
Clang ClangIndex Source # 

Methods

deref :: ClangIndex -> (Ptr (RefOf ClangIndex) -> IO a) -> IO a

unsafeToPtr :: ClangIndex -> Ptr (RefOf ClangIndex)

Clang Type Source # 

Methods

deref :: Type -> (Ptr (RefOf Type) -> IO a) -> IO a

unsafeToPtr :: Type -> Ptr (RefOf Type)

Clang (CursorK kind) Source # 

Methods

deref :: CursorK kind -> (Ptr (RefOf (CursorK kind)) -> IO a) -> IO a

unsafeToPtr :: CursorK kind -> Ptr (RefOf (CursorK kind))

newtype ClangOrd a Source #

The Eq instance for Clang types checks structural equality, i.e. whether they represent the same object in the translation unit.

Wrapping values in this type provides Eq and Ord instances based on reference equality.

Constructors

ClangOrd 

Fields

Instances

Clang a => Eq (ClangOrd a) Source # 

Methods

(==) :: ClangOrd a -> ClangOrd a -> Bool #

(/=) :: ClangOrd a -> ClangOrd a -> Bool #

Clang a => Ord (ClangOrd a) Source # 

Methods

compare :: ClangOrd a -> ClangOrd a -> Ordering #

(<) :: ClangOrd a -> ClangOrd a -> Bool #

(<=) :: ClangOrd a -> ClangOrd a -> Bool #

(>) :: ClangOrd a -> ClangOrd a -> Bool #

(>=) :: ClangOrd a -> ClangOrd a -> Bool #

max :: ClangOrd a -> ClangOrd a -> ClangOrd a #

min :: ClangOrd a -> ClangOrd a -> ClangOrd a #