Safe Haskell | None |
---|---|
Language | Haskell2010 |
The Cursor is an easy way to reference something in code and query its properties and relationships This is the primary way of traversing and querying code
- isNullCursor :: Cursor s -> Bool
- nullCursor :: ClangBase m => ClangT s m (Cursor s)
- getHash :: ClangBase m => Cursor s' -> ClangT s m Word32
- getKind :: Cursor s -> CursorKind
- getLinkage :: ClangBase m => Cursor s' -> ClangT s m LinkageKind
- getAvailability :: ClangBase m => Cursor s' -> ClangT s m AvailabilityKind
- getLanguage :: ClangBase m => Cursor s' -> ClangT s m LanguageKind
- getTranslationUnit :: ClangBase m => Cursor s' -> ClangT s m (TranslationUnit s)
- getSemanticParent :: ClangBase m => Cursor s' -> ClangT s m (Cursor s)
- getLexicalParent :: ClangBase m => Cursor s' -> ClangT s m (Cursor s)
- getOverriddenCursors :: ClangBase m => Cursor s' -> ClangT s m (CursorList s)
- getIncludedFile :: ClangBase m => Cursor s' -> ClangT s m (Maybe (File s))
- getLocation :: ClangBase m => Cursor s' -> ClangT s m (SourceLocation s)
- getSpellingLocation :: ClangBase m => Cursor s' -> ClangT s m (Maybe (File s), Int, Int, Int)
- getExtent :: ClangBase m => Cursor s' -> ClangT s m (SourceRange s)
- getType :: ClangBase m => Cursor s' -> ClangT s m (Type s)
- getResultType :: ClangBase m => Cursor s' -> ClangT s m (Type s)
- getDeclObjCTypeEncoding :: ClangBase m => Cursor s' -> ClangT s m (ClangString s)
- getSpelling :: ClangBase m => Cursor s' -> ClangT s m (ClangString s)
- getSpellingNameRange :: ClangBase m => Cursor s' -> Int -> ClangT s m (SourceRange s)
- getDisplayName :: ClangBase m => Cursor s' -> ClangT s m (ClangString s)
- getReferenced :: ClangBase m => Cursor s' -> ClangT s m (Cursor s)
- getDefinition :: ClangBase m => Cursor s' -> ClangT s m (Cursor s)
- getCanonicalCursor :: ClangBase m => Cursor s' -> ClangT s m (Cursor s)
- getObjCSelectorIndex :: ClangBase m => Cursor s' -> ClangT s m Int
- getReceiverType :: ClangBase m => Cursor s' -> ClangT s m (Type s)
- getObjCPropertyAttributes :: ClangBase m => Cursor s' -> ClangT s m [ObjCPropertyAttrKind]
- getObjCDeclQualifiers :: ClangBase m => Cursor s' -> ClangT s m [ObjCDeclQualifierKind]
- isObjCOptional :: ClangBase m => Cursor s' -> ClangT s m Bool
- isVariadic :: ClangBase m => Cursor s' -> ClangT s m Bool
- getTemplateKind :: ClangBase m => Cursor s' -> ClangT s m CursorKind
- getTemplateForSpecialization :: ClangBase m => Cursor s' -> ClangT s m (Cursor s)
- getReferenceNameRange :: ClangBase m => Cursor s' -> [NameRefFlags] -> Int -> ClangT s m (SourceRange s)
- getTypeDeclaration :: ClangBase m => Type s' -> ClangT s m (Cursor s)
- getNumArguments :: ClangBase m => Cursor s' -> ClangT s m Int
- getArgument :: ClangBase m => Cursor s' -> Int -> ClangT s m (Cursor s)
- getUSR :: ClangBase m => Cursor s' -> ClangT s m (ClangString s)
- getIBOutletCollectionType :: ClangBase m => Cursor s' -> ClangT s m (Type s)
- isDefinition :: ClangBase m => Cursor s' -> ClangT s m Bool
- isDeclaration :: CursorKind -> Bool
- isReference :: CursorKind -> Bool
- isExpression :: CursorKind -> Bool
- isStatement :: CursorKind -> Bool
- isAttribute :: CursorKind -> Bool
- isInvalid :: CursorKind -> Bool
- isTranslationUnit :: CursorKind -> Bool
- isPreprocessing :: CursorKind -> Bool
- isUnexposed :: CursorKind -> Bool
- isBitField :: ClangBase m => Cursor s' -> ClangT s m Bool
- isVirtualBase :: ClangBase m => Cursor s' -> ClangT s m Bool
- isPureVirtualCppMethod :: ClangBase m => Cursor s' -> ClangT s m Bool
- isStaticCppMethod :: ClangBase m => Cursor s' -> ClangT s m Bool
- isVirtualCppMethod :: ClangBase m => Cursor s' -> ClangT s m Bool
- isDynamicCall :: ClangBase m => Cursor s' -> ClangT s m Bool
- getCommentRange :: ClangBase m => Cursor s' -> ClangT s m (SourceRange s)
- getRawCommentText :: ClangBase m => Cursor s' -> ClangT s m (ClangString s)
- getBriefCommentText :: ClangBase m => Cursor s' -> ClangT s m (ClangString s)
- getParsedComment :: ClangBase m => Cursor s' -> ClangT s m (Maybe (ParsedComment s))
- getModule :: ClangBase m => Cursor s' -> ClangT s m (Module s)
- getCXXAccessSpecifier :: ClangBase m => Cursor s' -> ClangT s m CXXAccessSpecifier
- getOverloadedDecls :: ClangBase m => Cursor s' -> ClangT s m [Cursor s]
- createSet :: ClangBase m => ClangT s m (CursorSet s)
- setContains :: ClangBase m => CursorSet s' -> Cursor s'' -> ClangT s m Bool
- setInsert :: ClangBase m => CursorSet s' -> Cursor s'' -> ClangT s m Bool
- getCursorKindSpelling :: ClangBase m => CursorKind -> ClangT s m (ClangString s)
- getCursorPlatformAvailability :: ClangBase m => Cursor s' -> ClangT s m (PlatformAvailabilityInfo s)
- getCompletionString :: ClangBase m => Cursor s' -> ClangT s m (CompletionString s)
Documentation
isNullCursor :: Cursor s -> Bool Source
nullCursor :: ClangBase m => ClangT s m (Cursor s) Source
getKind :: Cursor s -> CursorKind Source
getLinkage :: ClangBase m => Cursor s' -> ClangT s m LinkageKind Source
getAvailability :: ClangBase m => Cursor s' -> ClangT s m AvailabilityKind Source
getLanguage :: ClangBase m => Cursor s' -> ClangT s m LanguageKind Source
getTranslationUnit :: ClangBase m => Cursor s' -> ClangT s m (TranslationUnit s) Source
getOverriddenCursors :: ClangBase m => Cursor s' -> ClangT s m (CursorList s) Source
getLocation :: ClangBase m => Cursor s' -> ClangT s m (SourceLocation s) Source
getSpellingLocation :: ClangBase m => Cursor s' -> ClangT s m (Maybe (File s), Int, Int, Int) Source
getDeclObjCTypeEncoding :: ClangBase m => Cursor s' -> ClangT s m (ClangString s) Source
getSpelling :: ClangBase m => Cursor s' -> ClangT s m (ClangString s) Source
getSpellingNameRange :: ClangBase m => Cursor s' -> Int -> ClangT s m (SourceRange s) Source
getDisplayName :: ClangBase m => Cursor s' -> ClangT s m (ClangString s) Source
getObjCPropertyAttributes :: ClangBase m => Cursor s' -> ClangT s m [ObjCPropertyAttrKind] Source
getObjCDeclQualifiers :: ClangBase m => Cursor s' -> ClangT s m [ObjCDeclQualifierKind] Source
getTemplateKind :: ClangBase m => Cursor s' -> ClangT s m CursorKind Source
getReferenceNameRange :: ClangBase m => Cursor s' -> [NameRefFlags] -> Int -> ClangT s m (SourceRange s) Source
isDeclaration :: CursorKind -> Bool Source
isReference :: CursorKind -> Bool Source
isExpression :: CursorKind -> Bool Source
isStatement :: CursorKind -> Bool Source
isAttribute :: CursorKind -> Bool Source
isInvalid :: CursorKind -> Bool Source
isPreprocessing :: CursorKind -> Bool Source
isUnexposed :: CursorKind -> Bool Source
getCommentRange :: ClangBase m => Cursor s' -> ClangT s m (SourceRange s) Source
getRawCommentText :: ClangBase m => Cursor s' -> ClangT s m (ClangString s) Source
getBriefCommentText :: ClangBase m => Cursor s' -> ClangT s m (ClangString s) Source
getParsedComment :: ClangBase m => Cursor s' -> ClangT s m (Maybe (ParsedComment s)) Source
getCXXAccessSpecifier :: ClangBase m => Cursor s' -> ClangT s m CXXAccessSpecifier Source
getCursorKindSpelling :: ClangBase m => CursorKind -> ClangT s m (ClangString s) Source
getCursorPlatformAvailability :: ClangBase m => Cursor s' -> ClangT s m (PlatformAvailabilityInfo s) Source
getCompletionString :: ClangBase m => Cursor s' -> ClangT s m (CompletionString s) Source
Retrieve a completion string for an arbitrary declaration or macro definition cursor.
Completion strings can be manipulated using the functions in Clang.Completion.