Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for manipulating 'Unified Symbol Resolution' values, or 'USRs'. USRs are strings that provide an unambiguous reference to a symbol. Any two cursors that refer to the same semantic entity will have the same USR, even if they occur in different translation units. This is very useful when attempting to cross-reference between different source files in a project.
Most often, using USRs simply means retrieving the USR that
corresponds to a Cursor
. You can do this using
getUSR
, and then convert to a Haskell string using
the functions in Clang.String.
This module is intended to be imported qualified.
- createFromObjCClass :: ClangBase m => String -> ClangT s m (ClangString s)
- createFromObjCCategory :: ClangBase m => String -> String -> ClangT s m (ClangString s)
- createFromObjCProtocol :: ClangBase m => String -> ClangT s m (ClangString s)
- createFromObjCIvar :: ClangBase m => String -> ClangString s' -> ClangT s m (ClangString s)
- createFromObjCInstanceMethod :: ClangBase m => String -> ClangString s' -> ClangT s m (ClangString s)
- createFromObjCClassMethod :: ClangBase m => String -> ClangString s' -> ClangT s m (ClangString s)
- createFromObjCProperty :: ClangBase m => String -> ClangString s' -> ClangT s m (ClangString s)
Documentation
:: ClangBase m | |
=> String | A class name. |
-> ClangT s m (ClangString s) |
Construct a USR for the specified Objective-C class.
:: ClangBase m | |
=> String | A class name. |
-> String | A category name. |
-> ClangT s m (ClangString s) |
Construct a USR for the specified Objective-C category.
:: ClangBase m | |
=> String | A protocol name. |
-> ClangT s m (ClangString s) |
Construct a USR for the specified Objective-C protocol.
:: ClangBase m | |
=> String | An instance variable name. |
-> ClangString s' | A class USR. |
-> ClangT s m (ClangString s) |
Construct a USR for the specified Objective-C instance variable, given the USR for its containing class.
createFromObjCInstanceMethod Source
:: ClangBase m | |
=> String | A method name. |
-> ClangString s' | A class USR. |
-> ClangT s m (ClangString s) |
Construct a USR for the specified Objective-C instance method, given the USR for its containing class.
createFromObjCClassMethod Source
:: ClangBase m | |
=> String | A method name. |
-> ClangString s' | A class USR. |
-> ClangT s m (ClangString s) |
Construct a USR for the specified Objective-C class method, given the USR for its containing class.
:: ClangBase m | |
=> String | A property name. |
-> ClangString s' | A class USR. |
-> ClangT s m (ClangString s) |
Construct a USR for the specified Objective-C property, given the USR for its containing class.