clang
3.9.0
|
#include <time.h>
#include "clang-c/Platform.h"
#include "clang-c/CXErrorCode.h"
#include "clang-c/CXString.h"
#include "clang-c/BuildSystem.h"
Go to the source code of this file.
Classes | |
struct | CXUnsavedFile |
Provides the contents of a file that has not yet been saved to disk. More... | |
struct | CXVersion |
Describes a version number of the form major.minor.subminor. More... | |
struct | CXFileUniqueID |
Uniquely identifies a CXFile, that refers to the same underlying file, across an indexing session. More... | |
struct | CXSourceLocation |
Identifies a specific source location within a translation unit. More... | |
struct | CXSourceRange |
Identifies a half-open character range in the source code. More... | |
struct | CXSourceRangeList |
Identifies an array of ranges. More... | |
struct | CXTUResourceUsageEntry |
struct | CXTUResourceUsage |
The memory usage of a CXTranslationUnit, broken into categories. More... | |
struct | CXCursor |
A cursor representing some element in the abstract syntax tree for a translation unit. More... | |
struct | CXPlatformAvailability |
Describes the availability of a given entity on a particular platform, e.g., a particular class might only be available on Mac OS 10.7 or newer. More... | |
struct | CXType |
The type of an element in the abstract syntax tree. More... | |
struct | CXToken |
Describes a single preprocessing token. More... | |
struct | CXCompletionResult |
A single result of code completion. More... | |
struct | CXCodeCompleteResults |
Contains the results of code-completion. More... | |
struct | CXCursorAndRangeVisitor |
struct | CXIdxLoc |
Source location passed to index callbacks. More... | |
struct | CXIdxIncludedFileInfo |
Data for ppIncludedFile callback. More... | |
struct | CXIdxImportedASTFileInfo |
Data for IndexerCallbacks::importedASTFile. More... | |
struct | CXIdxAttrInfo |
struct | CXIdxEntityInfo |
struct | CXIdxContainerInfo |
struct | CXIdxIBOutletCollectionAttrInfo |
struct | CXIdxDeclInfo |
struct | CXIdxObjCContainerDeclInfo |
struct | CXIdxBaseClassInfo |
struct | CXIdxObjCProtocolRefInfo |
struct | CXIdxObjCProtocolRefListInfo |
struct | CXIdxObjCInterfaceDeclInfo |
struct | CXIdxObjCCategoryDeclInfo |
struct | CXIdxObjCPropertyDeclInfo |
struct | CXIdxCXXClassDeclInfo |
struct | CXIdxEntityRefInfo |
Data for IndexerCallbacks::indexEntityReference. More... | |
struct | IndexerCallbacks |
A group of callbacks used by clang_indexSourceFile and clang_indexTranslationUnit. More... | |
Macros | |
#define | CINDEX_VERSION_MAJOR 0 |
The version constants for the libclang API. More... | |
#define | CINDEX_VERSION_MINOR 35 |
#define | CINDEX_VERSION_ENCODE(major, minor) |
#define | CINDEX_VERSION |
#define | CINDEX_VERSION_STRINGIZE_(major, minor) #major"."#minor |
#define | CINDEX_VERSION_STRINGIZE(major, minor) CINDEX_VERSION_STRINGIZE_(major, minor) |
#define | CINDEX_VERSION_STRING |
Typedefs | |
typedef void * | CXIndex |
An "index" that consists of a set of translation units that would typically be linked together into an executable or library. More... | |
typedef struct CXTranslationUnitImpl * | CXTranslationUnit |
A single translation unit, which resides in an index. More... | |
typedef void * | CXClientData |
Opaque pointer representing client data that will be passed through to various callbacks and visitors. More... | |
typedef struct CXVersion | CXVersion |
Describes a version number of the form major.minor.subminor. More... | |
typedef void * | CXFile |
A particular source file that is part of a translation unit. More... | |
typedef void * | CXDiagnostic |
A single diagnostic, containing the diagnostic's severity, location, text, source ranges, and fix-it hints. More... | |
typedef void * | CXDiagnosticSet |
A group of CXDiagnostics. More... | |
typedef struct CXTUResourceUsageEntry | CXTUResourceUsageEntry |
typedef struct CXTUResourceUsage | CXTUResourceUsage |
The memory usage of a CXTranslationUnit, broken into categories. More... | |
typedef struct CXPlatformAvailability | CXPlatformAvailability |
Describes the availability of a given entity on a particular platform, e.g., a particular class might only be available on Mac OS 10.7 or newer. More... | |
typedef struct CXCursorSetImpl * | CXCursorSet |
A fast container representing a set of CXCursors. More... | |
typedef enum CXChildVisitResult(* | CXCursorVisitor )(CXCursor cursor, CXCursor parent, CXClientData client_data) |
Visitor invoked for each cursor found by a traversal. More... | |
typedef void * | CXModule |
typedef enum CXTokenKind | CXTokenKind |
Describes a kind of token. More... | |
typedef void * | CXCompletionString |
A semantic string that describes a code-completion result. More... | |
typedef void(* | CXInclusionVisitor )(CXFile included_file, CXSourceLocation *inclusion_stack, unsigned include_len, CXClientData client_data) |
Visitor invoked for each file in a translation unit (used with clang_getInclusions()). More... | |
typedef void * | CXEvalResult |
Evaluation result of a cursor. More... | |
typedef void * | CXRemapping |
A remapping of original source files and their translated files. More... | |
typedef struct CXCursorAndRangeVisitor | CXCursorAndRangeVisitor |
typedef void * | CXIdxClientFile |
The client's data object that is associated with a CXFile. More... | |
typedef void * | CXIdxClientEntity |
The client's data object that is associated with a semantic entity. More... | |
typedef void * | CXIdxClientContainer |
The client's data object that is associated with a semantic container of entities. More... | |
typedef void * | CXIdxClientASTFile |
The client's data object that is associated with an AST file (PCH or module). More... | |
typedef void * | CXIndexAction |
An indexing action/session, to be applied to one or multiple translation units. More... | |
typedef enum CXVisitorResult(* | CXFieldVisitor )(CXCursor C, CXClientData client_data) |
Visitor invoked for each field found by a traversal. More... | |
Functions | |
CINDEX_LINKAGE CXIndex | clang_createIndex (int excludeDeclarationsFromPCH, int displayDiagnostics) |
Provides a shared context for creating translation units. More... | |
CINDEX_LINKAGE void | clang_disposeIndex (CXIndex index) |
Destroy the given index. More... | |
CINDEX_LINKAGE void | clang_CXIndex_setGlobalOptions (CXIndex, unsigned options) |
Sets general options associated with a CXIndex. More... | |
CINDEX_LINKAGE unsigned | clang_CXIndex_getGlobalOptions (CXIndex) |
Gets the general options associated with a CXIndex. More... | |
CINDEX_LINKAGE CXString | clang_getFileName (CXFile SFile) |
Retrieve the complete file and path name of the given file. More... | |
CINDEX_LINKAGE time_t | clang_getFileTime (CXFile SFile) |
Retrieve the last modification time of the given file. More... | |
CINDEX_LINKAGE int | clang_getFileUniqueID (CXFile file, CXFileUniqueID *outID) |
Retrieve the unique ID for the given file . More... | |
CINDEX_LINKAGE unsigned | clang_isFileMultipleIncludeGuarded (CXTranslationUnit tu, CXFile file) |
Determine whether the given header is guarded against multiple inclusions, either with the conventional #ifndef/#define/#endif macro guards or with #pragma once. More... | |
CINDEX_LINKAGE CXFile | clang_getFile (CXTranslationUnit tu, const char *file_name) |
Retrieve a file handle within the given translation unit. More... | |
CINDEX_LINKAGE int | clang_File_isEqual (CXFile file1, CXFile file2) |
Returns non-zero if the file1 and file2 point to the same file, or they are both NULL. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getNullLocation (void) |
Retrieve a NULL (invalid) source location. More... | |
CINDEX_LINKAGE unsigned | clang_equalLocations (CXSourceLocation loc1, CXSourceLocation loc2) |
Determine whether two source locations, which must refer into the same translation unit, refer to exactly the same point in the source code. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getLocation (CXTranslationUnit tu, CXFile file, unsigned line, unsigned column) |
Retrieves the source location associated with a given file/line/column in a particular translation unit. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getLocationForOffset (CXTranslationUnit tu, CXFile file, unsigned offset) |
Retrieves the source location associated with a given character offset in a particular translation unit. More... | |
CINDEX_LINKAGE int | clang_Location_isInSystemHeader (CXSourceLocation location) |
Returns non-zero if the given source location is in a system header. More... | |
CINDEX_LINKAGE int | clang_Location_isFromMainFile (CXSourceLocation location) |
Returns non-zero if the given source location is in the main file of the corresponding translation unit. More... | |
CINDEX_LINKAGE CXSourceRange | clang_getNullRange (void) |
Retrieve a NULL (invalid) source range. More... | |
CINDEX_LINKAGE CXSourceRange | clang_getRange (CXSourceLocation begin, CXSourceLocation end) |
Retrieve a source range given the beginning and ending source locations. More... | |
CINDEX_LINKAGE unsigned | clang_equalRanges (CXSourceRange range1, CXSourceRange range2) |
Determine whether two ranges are equivalent. More... | |
CINDEX_LINKAGE int | clang_Range_isNull (CXSourceRange range) |
Returns non-zero if range is null. More... | |
CINDEX_LINKAGE void | clang_getExpansionLocation (CXSourceLocation location, CXFile *file, unsigned *line, unsigned *column, unsigned *offset) |
Retrieve the file, line, column, and offset represented by the given source location. More... | |
CINDEX_LINKAGE void | clang_getPresumedLocation (CXSourceLocation location, CXString *filename, unsigned *line, unsigned *column) |
Retrieve the file, line, column, and offset represented by the given source location, as specified in a # line directive. More... | |
CINDEX_LINKAGE void | clang_getInstantiationLocation (CXSourceLocation location, CXFile *file, unsigned *line, unsigned *column, unsigned *offset) |
Legacy API to retrieve the file, line, column, and offset represented by the given source location. More... | |
CINDEX_LINKAGE void | clang_getSpellingLocation (CXSourceLocation location, CXFile *file, unsigned *line, unsigned *column, unsigned *offset) |
Retrieve the file, line, column, and offset represented by the given source location. More... | |
CINDEX_LINKAGE void | clang_getFileLocation (CXSourceLocation location, CXFile *file, unsigned *line, unsigned *column, unsigned *offset) |
Retrieve the file, line, column, and offset represented by the given source location. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getRangeStart (CXSourceRange range) |
Retrieve a source location representing the first character within a source range. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getRangeEnd (CXSourceRange range) |
Retrieve a source location representing the last character within a source range. More... | |
CINDEX_LINKAGE CXSourceRangeList * | clang_getSkippedRanges (CXTranslationUnit tu, CXFile file) |
Retrieve all ranges that were skipped by the preprocessor. More... | |
CINDEX_LINKAGE void | clang_disposeSourceRangeList (CXSourceRangeList *ranges) |
Destroy the given CXSourceRangeList . More... | |
CINDEX_LINKAGE unsigned | clang_getNumDiagnosticsInSet (CXDiagnosticSet Diags) |
Determine the number of diagnostics in a CXDiagnosticSet. More... | |
CINDEX_LINKAGE CXDiagnostic | clang_getDiagnosticInSet (CXDiagnosticSet Diags, unsigned Index) |
Retrieve a diagnostic associated with the given CXDiagnosticSet. More... | |
CINDEX_LINKAGE CXDiagnosticSet | clang_loadDiagnostics (const char *file, enum CXLoadDiag_Error *error, CXString *errorString) |
Deserialize a set of diagnostics from a Clang diagnostics bitcode file. More... | |
CINDEX_LINKAGE void | clang_disposeDiagnosticSet (CXDiagnosticSet Diags) |
Release a CXDiagnosticSet and all of its contained diagnostics. More... | |
CINDEX_LINKAGE CXDiagnosticSet | clang_getChildDiagnostics (CXDiagnostic D) |
Retrieve the child diagnostics of a CXDiagnostic. More... | |
CINDEX_LINKAGE unsigned | clang_getNumDiagnostics (CXTranslationUnit Unit) |
Determine the number of diagnostics produced for the given translation unit. More... | |
CINDEX_LINKAGE CXDiagnostic | clang_getDiagnostic (CXTranslationUnit Unit, unsigned Index) |
Retrieve a diagnostic associated with the given translation unit. More... | |
CINDEX_LINKAGE CXDiagnosticSet | clang_getDiagnosticSetFromTU (CXTranslationUnit Unit) |
Retrieve the complete set of diagnostics associated with a translation unit. More... | |
CINDEX_LINKAGE void | clang_disposeDiagnostic (CXDiagnostic Diagnostic) |
Destroy a diagnostic. More... | |
CINDEX_LINKAGE CXString | clang_formatDiagnostic (CXDiagnostic Diagnostic, unsigned Options) |
Format the given diagnostic in a manner that is suitable for display. More... | |
CINDEX_LINKAGE unsigned | clang_defaultDiagnosticDisplayOptions (void) |
Retrieve the set of display options most similar to the default behavior of the clang compiler. More... | |
CINDEX_LINKAGE enum CXDiagnosticSeverity | clang_getDiagnosticSeverity (CXDiagnostic) |
Determine the severity of the given diagnostic. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getDiagnosticLocation (CXDiagnostic) |
Retrieve the source location of the given diagnostic. More... | |
CINDEX_LINKAGE CXString | clang_getDiagnosticSpelling (CXDiagnostic) |
Retrieve the text of the given diagnostic. More... | |
CINDEX_LINKAGE CXString | clang_getDiagnosticOption (CXDiagnostic Diag, CXString *Disable) |
Retrieve the name of the command-line option that enabled this diagnostic. More... | |
CINDEX_LINKAGE unsigned | clang_getDiagnosticCategory (CXDiagnostic) |
Retrieve the category number for this diagnostic. More... | |
CINDEX_DEPRECATED CINDEX_LINKAGE CXString | clang_getDiagnosticCategoryName (unsigned Category) |
Retrieve the name of a particular diagnostic category. More... | |
CINDEX_LINKAGE CXString | clang_getDiagnosticCategoryText (CXDiagnostic) |
Retrieve the diagnostic category text for a given diagnostic. More... | |
CINDEX_LINKAGE unsigned | clang_getDiagnosticNumRanges (CXDiagnostic) |
Determine the number of source ranges associated with the given diagnostic. More... | |
CINDEX_LINKAGE CXSourceRange | clang_getDiagnosticRange (CXDiagnostic Diagnostic, unsigned Range) |
Retrieve a source range associated with the diagnostic. More... | |
CINDEX_LINKAGE unsigned | clang_getDiagnosticNumFixIts (CXDiagnostic Diagnostic) |
Determine the number of fix-it hints associated with the given diagnostic. More... | |
CINDEX_LINKAGE CXString | clang_getDiagnosticFixIt (CXDiagnostic Diagnostic, unsigned FixIt, CXSourceRange *ReplacementRange) |
Retrieve the replacement information for a given fix-it. More... | |
CINDEX_LINKAGE CXString | clang_getTranslationUnitSpelling (CXTranslationUnit CTUnit) |
Get the original translation unit source file name. More... | |
CINDEX_LINKAGE CXTranslationUnit | clang_createTranslationUnitFromSourceFile (CXIndex CIdx, const char *source_filename, int num_clang_command_line_args, const char *const *clang_command_line_args, unsigned num_unsaved_files, struct CXUnsavedFile *unsaved_files) |
Return the CXTranslationUnit for a given source file and the provided command line arguments one would pass to the compiler. More... | |
CINDEX_LINKAGE CXTranslationUnit | clang_createTranslationUnit (CXIndex CIdx, const char *ast_filename) |
Same as clang_createTranslationUnit2 , but returns the CXTranslationUnit instead of an error code. More... | |
CINDEX_LINKAGE enum CXErrorCode | clang_createTranslationUnit2 (CXIndex CIdx, const char *ast_filename, CXTranslationUnit *out_TU) |
Create a translation unit from an AST file (-emit-ast ). More... | |
CINDEX_LINKAGE unsigned | clang_defaultEditingTranslationUnitOptions (void) |
Returns the set of flags that is suitable for parsing a translation unit that is being edited. More... | |
CINDEX_LINKAGE CXTranslationUnit | clang_parseTranslationUnit (CXIndex CIdx, const char *source_filename, const char *const *command_line_args, int num_command_line_args, struct CXUnsavedFile *unsaved_files, unsigned num_unsaved_files, unsigned options) |
Same as clang_parseTranslationUnit2 , but returns the CXTranslationUnit instead of an error code. More... | |
CINDEX_LINKAGE enum CXErrorCode | clang_parseTranslationUnit2 (CXIndex CIdx, const char *source_filename, const char *const *command_line_args, int num_command_line_args, struct CXUnsavedFile *unsaved_files, unsigned num_unsaved_files, unsigned options, CXTranslationUnit *out_TU) |
Parse the given source file and the translation unit corresponding to that file. More... | |
CINDEX_LINKAGE enum CXErrorCode | clang_parseTranslationUnit2FullArgv (CXIndex CIdx, const char *source_filename, const char *const *command_line_args, int num_command_line_args, struct CXUnsavedFile *unsaved_files, unsigned num_unsaved_files, unsigned options, CXTranslationUnit *out_TU) |
Same as clang_parseTranslationUnit2 but requires a full command line for command_line_args including argv[0]. More... | |
CINDEX_LINKAGE unsigned | clang_defaultSaveOptions (CXTranslationUnit TU) |
Returns the set of flags that is suitable for saving a translation unit. More... | |
CINDEX_LINKAGE int | clang_saveTranslationUnit (CXTranslationUnit TU, const char *FileName, unsigned options) |
Saves a translation unit into a serialized representation of that translation unit on disk. More... | |
CINDEX_LINKAGE void | clang_disposeTranslationUnit (CXTranslationUnit) |
Destroy the specified CXTranslationUnit object. More... | |
CINDEX_LINKAGE unsigned | clang_defaultReparseOptions (CXTranslationUnit TU) |
Returns the set of flags that is suitable for reparsing a translation unit. More... | |
CINDEX_LINKAGE int | clang_reparseTranslationUnit (CXTranslationUnit TU, unsigned num_unsaved_files, struct CXUnsavedFile *unsaved_files, unsigned options) |
Reparse the source files that produced this translation unit. More... | |
CINDEX_LINKAGE const char * | clang_getTUResourceUsageName (enum CXTUResourceUsageKind kind) |
Returns the human-readable null-terminated C string that represents the name of the memory category. More... | |
CINDEX_LINKAGE CXTUResourceUsage | clang_getCXTUResourceUsage (CXTranslationUnit TU) |
Return the memory usage of a translation unit. More... | |
CINDEX_LINKAGE void | clang_disposeCXTUResourceUsage (CXTUResourceUsage usage) |
CINDEX_LINKAGE CXCursor | clang_getNullCursor (void) |
Retrieve the NULL cursor, which represents no entity. More... | |
CINDEX_LINKAGE CXCursor | clang_getTranslationUnitCursor (CXTranslationUnit) |
Retrieve the cursor that represents the given translation unit. More... | |
CINDEX_LINKAGE unsigned | clang_equalCursors (CXCursor, CXCursor) |
Determine whether two cursors are equivalent. More... | |
CINDEX_LINKAGE int | clang_Cursor_isNull (CXCursor cursor) |
Returns non-zero if cursor is null. More... | |
CINDEX_LINKAGE unsigned | clang_hashCursor (CXCursor) |
Compute a hash value for the given cursor. More... | |
CINDEX_LINKAGE enum CXCursorKind | clang_getCursorKind (CXCursor) |
Retrieve the kind of the given cursor. More... | |
CINDEX_LINKAGE unsigned | clang_isDeclaration (enum CXCursorKind) |
Determine whether the given cursor kind represents a declaration. More... | |
CINDEX_LINKAGE unsigned | clang_isReference (enum CXCursorKind) |
Determine whether the given cursor kind represents a simple reference. More... | |
CINDEX_LINKAGE unsigned | clang_isExpression (enum CXCursorKind) |
Determine whether the given cursor kind represents an expression. More... | |
CINDEX_LINKAGE unsigned | clang_isStatement (enum CXCursorKind) |
Determine whether the given cursor kind represents a statement. More... | |
CINDEX_LINKAGE unsigned | clang_isAttribute (enum CXCursorKind) |
Determine whether the given cursor kind represents an attribute. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_hasAttrs (CXCursor C) |
Determine whether the given cursor has any attributes. More... | |
CINDEX_LINKAGE unsigned | clang_isInvalid (enum CXCursorKind) |
Determine whether the given cursor kind represents an invalid cursor. More... | |
CINDEX_LINKAGE unsigned | clang_isTranslationUnit (enum CXCursorKind) |
Determine whether the given cursor kind represents a translation unit. More... | |
CINDEX_LINKAGE unsigned | clang_isPreprocessing (enum CXCursorKind) |
CINDEX_LINKAGE unsigned | clang_isUnexposed (enum CXCursorKind) |
CINDEX_LINKAGE enum CXLinkageKind | clang_getCursorLinkage (CXCursor cursor) |
Determine the linkage of the entity referred to by a given cursor. More... | |
CINDEX_LINKAGE enum CXVisibilityKind | clang_getCursorVisibility (CXCursor cursor) |
Describe the visibility of the entity referred to by a cursor. More... | |
CINDEX_LINKAGE enum CXAvailabilityKind | clang_getCursorAvailability (CXCursor cursor) |
Determine the availability of the entity that this cursor refers to, taking the current target platform into account. More... | |
CINDEX_LINKAGE int | clang_getCursorPlatformAvailability (CXCursor cursor, int *always_deprecated, CXString *deprecated_message, int *always_unavailable, CXString *unavailable_message, CXPlatformAvailability *availability, int availability_size) |
Determine the availability of the entity that this cursor refers to on any platforms for which availability information is known. More... | |
CINDEX_LINKAGE void | clang_disposeCXPlatformAvailability (CXPlatformAvailability *availability) |
Free the memory associated with a CXPlatformAvailability structure. More... | |
CINDEX_LINKAGE enum CXLanguageKind | clang_getCursorLanguage (CXCursor cursor) |
Determine the "language" of the entity referred to by a given cursor. More... | |
CINDEX_LINKAGE CXTranslationUnit | clang_Cursor_getTranslationUnit (CXCursor) |
Returns the translation unit that a cursor originated from. More... | |
CINDEX_LINKAGE CXCursorSet | clang_createCXCursorSet (void) |
Creates an empty CXCursorSet. More... | |
CINDEX_LINKAGE void | clang_disposeCXCursorSet (CXCursorSet cset) |
Disposes a CXCursorSet and releases its associated memory. More... | |
CINDEX_LINKAGE unsigned | clang_CXCursorSet_contains (CXCursorSet cset, CXCursor cursor) |
Queries a CXCursorSet to see if it contains a specific CXCursor. More... | |
CINDEX_LINKAGE unsigned | clang_CXCursorSet_insert (CXCursorSet cset, CXCursor cursor) |
Inserts a CXCursor into a CXCursorSet. More... | |
CINDEX_LINKAGE CXCursor | clang_getCursorSemanticParent (CXCursor cursor) |
Determine the semantic parent of the given cursor. More... | |
CINDEX_LINKAGE CXCursor | clang_getCursorLexicalParent (CXCursor cursor) |
Determine the lexical parent of the given cursor. More... | |
CINDEX_LINKAGE void | clang_getOverriddenCursors (CXCursor cursor, CXCursor **overridden, unsigned *num_overridden) |
Determine the set of methods that are overridden by the given method. More... | |
CINDEX_LINKAGE void | clang_disposeOverriddenCursors (CXCursor *overridden) |
Free the set of overridden cursors returned by clang_getOverriddenCursors() . More... | |
CINDEX_LINKAGE CXFile | clang_getIncludedFile (CXCursor cursor) |
Retrieve the file that is included by the given inclusion directive cursor. More... | |
CINDEX_LINKAGE CXCursor | clang_getCursor (CXTranslationUnit, CXSourceLocation) |
Map a source location to the cursor that describes the entity at that location in the source code. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getCursorLocation (CXCursor) |
Retrieve the physical location of the source constructor referenced by the given cursor. More... | |
CINDEX_LINKAGE CXSourceRange | clang_getCursorExtent (CXCursor) |
Retrieve the physical extent of the source construct referenced by the given cursor. More... | |
CINDEX_LINKAGE CXType | clang_getCursorType (CXCursor C) |
Retrieve the type of a CXCursor (if any). More... | |
CINDEX_LINKAGE CXString | clang_getTypeSpelling (CXType CT) |
Pretty-print the underlying type using the rules of the language of the translation unit from which it came. More... | |
CINDEX_LINKAGE CXType | clang_getTypedefDeclUnderlyingType (CXCursor C) |
Retrieve the underlying type of a typedef declaration. More... | |
CINDEX_LINKAGE CXType | clang_getEnumDeclIntegerType (CXCursor C) |
Retrieve the integer type of an enum declaration. More... | |
CINDEX_LINKAGE long long | clang_getEnumConstantDeclValue (CXCursor C) |
Retrieve the integer value of an enum constant declaration as a signed long long. More... | |
CINDEX_LINKAGE unsigned long long | clang_getEnumConstantDeclUnsignedValue (CXCursor C) |
Retrieve the integer value of an enum constant declaration as an unsigned long long. More... | |
CINDEX_LINKAGE int | clang_getFieldDeclBitWidth (CXCursor C) |
Retrieve the bit width of a bit field declaration as an integer. More... | |
CINDEX_LINKAGE int | clang_Cursor_getNumArguments (CXCursor C) |
Retrieve the number of non-variadic arguments associated with a given cursor. More... | |
CINDEX_LINKAGE CXCursor | clang_Cursor_getArgument (CXCursor C, unsigned i) |
Retrieve the argument cursor of a function or method. More... | |
CINDEX_LINKAGE int | clang_Cursor_getNumTemplateArguments (CXCursor C) |
Returns the number of template args of a function decl representing a template specialization. More... | |
CINDEX_LINKAGE enum CXTemplateArgumentKind | clang_Cursor_getTemplateArgumentKind (CXCursor C, unsigned I) |
Retrieve the kind of the I'th template argument of the CXCursor C. More... | |
CINDEX_LINKAGE CXType | clang_Cursor_getTemplateArgumentType (CXCursor C, unsigned I) |
Retrieve a CXType representing the type of a TemplateArgument of a function decl representing a template specialization. More... | |
CINDEX_LINKAGE long long | clang_Cursor_getTemplateArgumentValue (CXCursor C, unsigned I) |
Retrieve the value of an Integral TemplateArgument (of a function decl representing a template specialization) as a signed long long. More... | |
CINDEX_LINKAGE unsigned long long | clang_Cursor_getTemplateArgumentUnsignedValue (CXCursor C, unsigned I) |
Retrieve the value of an Integral TemplateArgument (of a function decl representing a template specialization) as an unsigned long long. More... | |
CINDEX_LINKAGE unsigned | clang_equalTypes (CXType A, CXType B) |
Determine whether two CXTypes represent the same type. More... | |
CINDEX_LINKAGE CXType | clang_getCanonicalType (CXType T) |
Return the canonical type for a CXType. More... | |
CINDEX_LINKAGE unsigned | clang_isConstQualifiedType (CXType T) |
Determine whether a CXType has the "const" qualifier set, without looking through typedefs that may have added "const" at a different level. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_isMacroFunctionLike (CXCursor C) |
Determine whether a CXCursor that is a macro, is function like. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_isMacroBuiltin (CXCursor C) |
Determine whether a CXCursor that is a macro, is a builtin one. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_isFunctionInlined (CXCursor C) |
Determine whether a CXCursor that is a function declaration, is an inline declaration. More... | |
CINDEX_LINKAGE unsigned | clang_isVolatileQualifiedType (CXType T) |
Determine whether a CXType has the "volatile" qualifier set, without looking through typedefs that may have added "volatile" at a different level. More... | |
CINDEX_LINKAGE unsigned | clang_isRestrictQualifiedType (CXType T) |
Determine whether a CXType has the "restrict" qualifier set, without looking through typedefs that may have added "restrict" at a different level. More... | |
CINDEX_LINKAGE CXType | clang_getPointeeType (CXType T) |
For pointer types, returns the type of the pointee. More... | |
CINDEX_LINKAGE CXCursor | clang_getTypeDeclaration (CXType T) |
Return the cursor for the declaration of the given type. More... | |
CINDEX_LINKAGE CXString | clang_getDeclObjCTypeEncoding (CXCursor C) |
Returns the Objective-C type encoding for the specified declaration. More... | |
CINDEX_LINKAGE CXString | clang_Type_getObjCEncoding (CXType type) |
Returns the Objective-C type encoding for the specified CXType. More... | |
CINDEX_LINKAGE CXString | clang_getTypeKindSpelling (enum CXTypeKind K) |
Retrieve the spelling of a given CXTypeKind. More... | |
CINDEX_LINKAGE enum CXCallingConv | clang_getFunctionTypeCallingConv (CXType T) |
Retrieve the calling convention associated with a function type. More... | |
CINDEX_LINKAGE CXType | clang_getResultType (CXType T) |
Retrieve the return type associated with a function type. More... | |
CINDEX_LINKAGE int | clang_getNumArgTypes (CXType T) |
Retrieve the number of non-variadic parameters associated with a function type. More... | |
CINDEX_LINKAGE CXType | clang_getArgType (CXType T, unsigned i) |
Retrieve the type of a parameter of a function type. More... | |
CINDEX_LINKAGE unsigned | clang_isFunctionTypeVariadic (CXType T) |
Return 1 if the CXType is a variadic function type, and 0 otherwise. More... | |
CINDEX_LINKAGE CXType | clang_getCursorResultType (CXCursor C) |
Retrieve the return type associated with a given cursor. More... | |
CINDEX_LINKAGE unsigned | clang_isPODType (CXType T) |
Return 1 if the CXType is a POD (plain old data) type, and 0 otherwise. More... | |
CINDEX_LINKAGE CXType | clang_getElementType (CXType T) |
Return the element type of an array, complex, or vector type. More... | |
CINDEX_LINKAGE long long | clang_getNumElements (CXType T) |
Return the number of elements of an array or vector type. More... | |
CINDEX_LINKAGE CXType | clang_getArrayElementType (CXType T) |
Return the element type of an array type. More... | |
CINDEX_LINKAGE long long | clang_getArraySize (CXType T) |
Return the array size of a constant array. More... | |
CINDEX_LINKAGE CXType | clang_Type_getNamedType (CXType T) |
Retrieve the type named by the qualified-id. More... | |
CINDEX_LINKAGE long long | clang_Type_getAlignOf (CXType T) |
Return the alignment of a type in bytes as per C++[expr.alignof] standard. More... | |
CINDEX_LINKAGE CXType | clang_Type_getClassType (CXType T) |
Return the class type of an member pointer type. More... | |
CINDEX_LINKAGE long long | clang_Type_getSizeOf (CXType T) |
Return the size of a type in bytes as per C++[expr.sizeof] standard. More... | |
CINDEX_LINKAGE long long | clang_Type_getOffsetOf (CXType T, const char *S) |
Return the offset of a field named S in a record of type T in bits as it would be returned by offsetof as per C++11[18.2p4]. More... | |
CINDEX_LINKAGE long long | clang_Cursor_getOffsetOfField (CXCursor C) |
Return the offset of the field represented by the Cursor. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_isAnonymous (CXCursor C) |
Determine whether the given cursor represents an anonymous record declaration. More... | |
CINDEX_LINKAGE int | clang_Type_getNumTemplateArguments (CXType T) |
Returns the number of template arguments for given class template specialization, or -1 if type T is not a class template specialization. More... | |
CINDEX_LINKAGE CXType | clang_Type_getTemplateArgumentAsType (CXType T, unsigned i) |
Returns the type template argument of a template class specialization at given index. More... | |
CINDEX_LINKAGE enum CXRefQualifierKind | clang_Type_getCXXRefQualifier (CXType T) |
Retrieve the ref-qualifier kind of a function or method. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_isBitField (CXCursor C) |
Returns non-zero if the cursor specifies a Record member that is a bitfield. More... | |
CINDEX_LINKAGE unsigned | clang_isVirtualBase (CXCursor) |
Returns 1 if the base class specified by the cursor with kind CX_CXXBaseSpecifier is virtual. More... | |
CINDEX_LINKAGE enum CX_CXXAccessSpecifier | clang_getCXXAccessSpecifier (CXCursor) |
Returns the access control level for the referenced object. More... | |
CINDEX_LINKAGE enum CX_StorageClass | clang_Cursor_getStorageClass (CXCursor) |
Returns the storage class for a function or variable declaration. More... | |
CINDEX_LINKAGE unsigned | clang_getNumOverloadedDecls (CXCursor cursor) |
Determine the number of overloaded declarations referenced by a CXCursor_OverloadedDeclRef cursor. More... | |
CINDEX_LINKAGE CXCursor | clang_getOverloadedDecl (CXCursor cursor, unsigned index) |
Retrieve a cursor for one of the overloaded declarations referenced by a CXCursor_OverloadedDeclRef cursor. More... | |
CINDEX_LINKAGE CXType | clang_getIBOutletCollectionType (CXCursor) |
For cursors representing an iboutletcollection attribute, this function returns the collection element type. More... | |
CINDEX_LINKAGE unsigned | clang_visitChildren (CXCursor parent, CXCursorVisitor visitor, CXClientData client_data) |
Visit the children of a particular cursor. More... | |
CINDEX_LINKAGE CXString | clang_getCursorUSR (CXCursor) |
Retrieve a Unified Symbol Resolution (USR) for the entity referenced by the given cursor. More... | |
CINDEX_LINKAGE CXString | clang_constructUSR_ObjCClass (const char *class_name) |
Construct a USR for a specified Objective-C class. More... | |
CINDEX_LINKAGE CXString | clang_constructUSR_ObjCCategory (const char *class_name, const char *category_name) |
Construct a USR for a specified Objective-C category. More... | |
CINDEX_LINKAGE CXString | clang_constructUSR_ObjCProtocol (const char *protocol_name) |
Construct a USR for a specified Objective-C protocol. More... | |
CINDEX_LINKAGE CXString | clang_constructUSR_ObjCIvar (const char *name, CXString classUSR) |
Construct a USR for a specified Objective-C instance variable and the USR for its containing class. More... | |
CINDEX_LINKAGE CXString | clang_constructUSR_ObjCMethod (const char *name, unsigned isInstanceMethod, CXString classUSR) |
Construct a USR for a specified Objective-C method and the USR for its containing class. More... | |
CINDEX_LINKAGE CXString | clang_constructUSR_ObjCProperty (const char *property, CXString classUSR) |
Construct a USR for a specified Objective-C property and the USR for its containing class. More... | |
CINDEX_LINKAGE CXString | clang_getCursorSpelling (CXCursor) |
Retrieve a name for the entity referenced by this cursor. More... | |
CINDEX_LINKAGE CXSourceRange | clang_Cursor_getSpellingNameRange (CXCursor, unsigned pieceIndex, unsigned options) |
Retrieve a range for a piece that forms the cursors spelling name. More... | |
CINDEX_LINKAGE CXString | clang_getCursorDisplayName (CXCursor) |
Retrieve the display name for the entity referenced by this cursor. More... | |
CINDEX_LINKAGE CXCursor | clang_getCursorReferenced (CXCursor) |
For a cursor that is a reference, retrieve a cursor representing the entity that it references. More... | |
CINDEX_LINKAGE CXCursor | clang_getCursorDefinition (CXCursor) |
For a cursor that is either a reference to or a declaration of some entity, retrieve a cursor that describes the definition of that entity. More... | |
CINDEX_LINKAGE unsigned | clang_isCursorDefinition (CXCursor) |
Determine whether the declaration pointed to by this cursor is also a definition of that entity. More... | |
CINDEX_LINKAGE CXCursor | clang_getCanonicalCursor (CXCursor) |
Retrieve the canonical cursor corresponding to the given cursor. More... | |
CINDEX_LINKAGE int | clang_Cursor_getObjCSelectorIndex (CXCursor) |
If the cursor points to a selector identifier in an Objective-C method or message expression, this returns the selector index. More... | |
CINDEX_LINKAGE int | clang_Cursor_isDynamicCall (CXCursor C) |
Given a cursor pointing to a C++ method call or an Objective-C message, returns non-zero if the method/message is "dynamic", meaning: More... | |
CINDEX_LINKAGE CXType | clang_Cursor_getReceiverType (CXCursor C) |
Given a cursor pointing to an Objective-C message, returns the CXType of the receiver. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_getObjCPropertyAttributes (CXCursor C, unsigned reserved) |
Given a cursor that represents a property declaration, return the associated property attributes. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_getObjCDeclQualifiers (CXCursor C) |
Given a cursor that represents an Objective-C method or parameter declaration, return the associated Objective-C qualifiers for the return type or the parameter respectively. More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_isObjCOptional (CXCursor C) |
Given a cursor that represents an Objective-C method or property declaration, return non-zero if the declaration was affected by "@optional". More... | |
CINDEX_LINKAGE unsigned | clang_Cursor_isVariadic (CXCursor C) |
Returns non-zero if the given cursor is a variadic function or method. More... | |
CINDEX_LINKAGE CXSourceRange | clang_Cursor_getCommentRange (CXCursor C) |
Given a cursor that represents a declaration, return the associated comment's source range. More... | |
CINDEX_LINKAGE CXString | clang_Cursor_getRawCommentText (CXCursor C) |
Given a cursor that represents a declaration, return the associated comment text, including comment markers. More... | |
CINDEX_LINKAGE CXString | clang_Cursor_getBriefCommentText (CXCursor C) |
Given a cursor that represents a documentable entity (e.g., declaration), return the associated \brief paragraph; otherwise return the first paragraph. More... | |
CINDEX_LINKAGE CXString | clang_Cursor_getMangling (CXCursor) |
Retrieve the CXString representing the mangled name of the cursor. More... | |
CINDEX_LINKAGE CXStringSet * | clang_Cursor_getCXXManglings (CXCursor) |
Retrieve the CXStrings representing the mangled symbols of the C++ constructor or destructor at the cursor. More... | |
CINDEX_LINKAGE CXModule | clang_Cursor_getModule (CXCursor C) |
Given a CXCursor_ModuleImportDecl cursor, return the associated module. More... | |
CINDEX_LINKAGE CXModule | clang_getModuleForFile (CXTranslationUnit, CXFile) |
Given a CXFile header file, return the module that contains it, if one exists. More... | |
CINDEX_LINKAGE CXFile | clang_Module_getASTFile (CXModule Module) |
CINDEX_LINKAGE CXModule | clang_Module_getParent (CXModule Module) |
CINDEX_LINKAGE CXString | clang_Module_getName (CXModule Module) |
CINDEX_LINKAGE CXString | clang_Module_getFullName (CXModule Module) |
CINDEX_LINKAGE int | clang_Module_isSystem (CXModule Module) |
CINDEX_LINKAGE unsigned | clang_Module_getNumTopLevelHeaders (CXTranslationUnit, CXModule Module) |
CINDEX_LINKAGE CXFile | clang_Module_getTopLevelHeader (CXTranslationUnit, CXModule Module, unsigned Index) |
CINDEX_LINKAGE unsigned | clang_CXXConstructor_isConvertingConstructor (CXCursor C) |
Determine if a C++ constructor is a converting constructor. More... | |
CINDEX_LINKAGE unsigned | clang_CXXConstructor_isCopyConstructor (CXCursor C) |
Determine if a C++ constructor is a copy constructor. More... | |
CINDEX_LINKAGE unsigned | clang_CXXConstructor_isDefaultConstructor (CXCursor C) |
Determine if a C++ constructor is the default constructor. More... | |
CINDEX_LINKAGE unsigned | clang_CXXConstructor_isMoveConstructor (CXCursor C) |
Determine if a C++ constructor is a move constructor. More... | |
CINDEX_LINKAGE unsigned | clang_CXXField_isMutable (CXCursor C) |
Determine if a C++ field is declared 'mutable'. More... | |
CINDEX_LINKAGE unsigned | clang_CXXMethod_isDefaulted (CXCursor C) |
Determine if a C++ method is declared '= default'. More... | |
CINDEX_LINKAGE unsigned | clang_CXXMethod_isPureVirtual (CXCursor C) |
Determine if a C++ member function or member function template is pure virtual. More... | |
CINDEX_LINKAGE unsigned | clang_CXXMethod_isStatic (CXCursor C) |
Determine if a C++ member function or member function template is declared 'static'. More... | |
CINDEX_LINKAGE unsigned | clang_CXXMethod_isVirtual (CXCursor C) |
Determine if a C++ member function or member function template is explicitly declared 'virtual' or if it overrides a virtual method from one of the base classes. More... | |
CINDEX_LINKAGE unsigned | clang_CXXMethod_isConst (CXCursor C) |
Determine if a C++ member function or member function template is declared 'const'. More... | |
CINDEX_LINKAGE enum CXCursorKind | clang_getTemplateCursorKind (CXCursor C) |
Given a cursor that represents a template, determine the cursor kind of the specializations would be generated by instantiating the template. More... | |
CINDEX_LINKAGE CXCursor | clang_getSpecializedCursorTemplate (CXCursor C) |
Given a cursor that may represent a specialization or instantiation of a template, retrieve the cursor that represents the template that it specializes or from which it was instantiated. More... | |
CINDEX_LINKAGE CXSourceRange | clang_getCursorReferenceNameRange (CXCursor C, unsigned NameFlags, unsigned PieceIndex) |
Given a cursor that references something else, return the source range covering that reference. More... | |
CINDEX_LINKAGE CXTokenKind | clang_getTokenKind (CXToken) |
Determine the kind of the given token. More... | |
CINDEX_LINKAGE CXString | clang_getTokenSpelling (CXTranslationUnit, CXToken) |
Determine the spelling of the given token. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_getTokenLocation (CXTranslationUnit, CXToken) |
Retrieve the source location of the given token. More... | |
CINDEX_LINKAGE CXSourceRange | clang_getTokenExtent (CXTranslationUnit, CXToken) |
Retrieve a source range that covers the given token. More... | |
CINDEX_LINKAGE void | clang_tokenize (CXTranslationUnit TU, CXSourceRange Range, CXToken **Tokens, unsigned *NumTokens) |
Tokenize the source code described by the given range into raw lexical tokens. More... | |
CINDEX_LINKAGE void | clang_annotateTokens (CXTranslationUnit TU, CXToken *Tokens, unsigned NumTokens, CXCursor *Cursors) |
Annotate the given set of tokens by providing cursors for each token that can be mapped to a specific entity within the abstract syntax tree. More... | |
CINDEX_LINKAGE void | clang_disposeTokens (CXTranslationUnit TU, CXToken *Tokens, unsigned NumTokens) |
Free the given set of tokens. More... | |
CINDEX_LINKAGE CXString | clang_getCursorKindSpelling (enum CXCursorKind Kind) |
CINDEX_LINKAGE void | clang_getDefinitionSpellingAndExtent (CXCursor, const char **startBuf, const char **endBuf, unsigned *startLine, unsigned *startColumn, unsigned *endLine, unsigned *endColumn) |
CINDEX_LINKAGE void | clang_enableStackTraces (void) |
CINDEX_LINKAGE void | clang_executeOnThread (void(*fn)(void *), void *user_data, unsigned stack_size) |
CINDEX_LINKAGE enum CXCompletionChunkKind | clang_getCompletionChunkKind (CXCompletionString completion_string, unsigned chunk_number) |
Determine the kind of a particular chunk within a completion string. More... | |
CINDEX_LINKAGE CXString | clang_getCompletionChunkText (CXCompletionString completion_string, unsigned chunk_number) |
Retrieve the text associated with a particular chunk within a completion string. More... | |
CINDEX_LINKAGE CXCompletionString | clang_getCompletionChunkCompletionString (CXCompletionString completion_string, unsigned chunk_number) |
Retrieve the completion string associated with a particular chunk within a completion string. More... | |
CINDEX_LINKAGE unsigned | clang_getNumCompletionChunks (CXCompletionString completion_string) |
Retrieve the number of chunks in the given code-completion string. More... | |
CINDEX_LINKAGE unsigned | clang_getCompletionPriority (CXCompletionString completion_string) |
Determine the priority of this code completion. More... | |
CINDEX_LINKAGE enum CXAvailabilityKind | clang_getCompletionAvailability (CXCompletionString completion_string) |
Determine the availability of the entity that this code-completion string refers to. More... | |
CINDEX_LINKAGE unsigned | clang_getCompletionNumAnnotations (CXCompletionString completion_string) |
Retrieve the number of annotations associated with the given completion string. More... | |
CINDEX_LINKAGE CXString | clang_getCompletionAnnotation (CXCompletionString completion_string, unsigned annotation_number) |
Retrieve the annotation associated with the given completion string. More... | |
CINDEX_LINKAGE CXString | clang_getCompletionParent (CXCompletionString completion_string, enum CXCursorKind *kind) |
Retrieve the parent context of the given completion string. More... | |
CINDEX_LINKAGE CXString | clang_getCompletionBriefComment (CXCompletionString completion_string) |
Retrieve the brief documentation comment attached to the declaration that corresponds to the given completion string. More... | |
CINDEX_LINKAGE CXCompletionString | clang_getCursorCompletionString (CXCursor cursor) |
Retrieve a completion string for an arbitrary declaration or macro definition cursor. More... | |
CINDEX_LINKAGE unsigned | clang_defaultCodeCompleteOptions (void) |
Returns a default set of code-completion options that can be passed toclang_codeCompleteAt() . More... | |
CINDEX_LINKAGE CXCodeCompleteResults * | clang_codeCompleteAt (CXTranslationUnit TU, const char *complete_filename, unsigned complete_line, unsigned complete_column, struct CXUnsavedFile *unsaved_files, unsigned num_unsaved_files, unsigned options) |
Perform code completion at a given location in a translation unit. More... | |
CINDEX_LINKAGE void | clang_sortCodeCompletionResults (CXCompletionResult *Results, unsigned NumResults) |
Sort the code-completion results in case-insensitive alphabetical order. More... | |
CINDEX_LINKAGE void | clang_disposeCodeCompleteResults (CXCodeCompleteResults *Results) |
Free the given set of code-completion results. More... | |
CINDEX_LINKAGE unsigned | clang_codeCompleteGetNumDiagnostics (CXCodeCompleteResults *Results) |
Determine the number of diagnostics produced prior to the location where code completion was performed. More... | |
CINDEX_LINKAGE CXDiagnostic | clang_codeCompleteGetDiagnostic (CXCodeCompleteResults *Results, unsigned Index) |
Retrieve a diagnostic associated with the given code completion. More... | |
CINDEX_LINKAGE unsigned long long | clang_codeCompleteGetContexts (CXCodeCompleteResults *Results) |
Determines what completions are appropriate for the context the given code completion. More... | |
CINDEX_LINKAGE enum CXCursorKind | clang_codeCompleteGetContainerKind (CXCodeCompleteResults *Results, unsigned *IsIncomplete) |
Returns the cursor kind for the container for the current code completion context. More... | |
CINDEX_LINKAGE CXString | clang_codeCompleteGetContainerUSR (CXCodeCompleteResults *Results) |
Returns the USR for the container for the current code completion context. More... | |
CINDEX_LINKAGE CXString | clang_codeCompleteGetObjCSelector (CXCodeCompleteResults *Results) |
Returns the currently-entered selector for an Objective-C message send, formatted like "initWithFoo:bar:". More... | |
CINDEX_LINKAGE CXString | clang_getClangVersion (void) |
Return a version string, suitable for showing to a user, but not intended to be parsed (the format is not guaranteed to be stable). More... | |
CINDEX_LINKAGE void | clang_toggleCrashRecovery (unsigned isEnabled) |
Enable/disable crash recovery. More... | |
CINDEX_LINKAGE void | clang_getInclusions (CXTranslationUnit tu, CXInclusionVisitor visitor, CXClientData client_data) |
Visit the set of preprocessor inclusions in a translation unit. More... | |
CINDEX_LINKAGE CXEvalResult | clang_Cursor_Evaluate (CXCursor C) |
If cursor is a statement declaration tries to evaluate the statement and if its variable, tries to evaluate its initializer, into its corresponding type. More... | |
CINDEX_LINKAGE CXEvalResultKind | clang_EvalResult_getKind (CXEvalResult E) |
Returns the kind of the evaluated result. More... | |
CINDEX_LINKAGE int | clang_EvalResult_getAsInt (CXEvalResult E) |
Returns the evaluation result as integer if the kind is Int. More... | |
CINDEX_LINKAGE double | clang_EvalResult_getAsDouble (CXEvalResult E) |
Returns the evaluation result as double if the kind is double. More... | |
CINDEX_LINKAGE const char * | clang_EvalResult_getAsStr (CXEvalResult E) |
Returns the evaluation result as a constant string if the kind is other than Int or float. More... | |
CINDEX_LINKAGE void | clang_EvalResult_dispose (CXEvalResult E) |
Disposes the created Eval memory. More... | |
CINDEX_LINKAGE CXRemapping | clang_getRemappings (const char *path) |
Retrieve a remapping. More... | |
CINDEX_LINKAGE CXRemapping | clang_getRemappingsFromFileList (const char **filePaths, unsigned numFiles) |
Retrieve a remapping. More... | |
CINDEX_LINKAGE unsigned | clang_remap_getNumFiles (CXRemapping) |
Determine the number of remappings. More... | |
CINDEX_LINKAGE void | clang_remap_getFilenames (CXRemapping, unsigned index, CXString *original, CXString *transformed) |
Get the original and the associated filename from the remapping. More... | |
CINDEX_LINKAGE void | clang_remap_dispose (CXRemapping) |
Dispose the remapping. More... | |
CINDEX_LINKAGE CXResult | clang_findReferencesInFile (CXCursor cursor, CXFile file, CXCursorAndRangeVisitor visitor) |
Find references of a declaration in a specific file. More... | |
CINDEX_LINKAGE CXResult | clang_findIncludesInFile (CXTranslationUnit TU, CXFile file, CXCursorAndRangeVisitor visitor) |
Find #import/#include directives in a specific file. More... | |
CINDEX_LINKAGE int | clang_index_isEntityObjCContainerKind (CXIdxEntityKind) |
CINDEX_LINKAGE const CXIdxObjCContainerDeclInfo * | clang_index_getObjCContainerDeclInfo (const CXIdxDeclInfo *) |
CINDEX_LINKAGE const CXIdxObjCInterfaceDeclInfo * | clang_index_getObjCInterfaceDeclInfo (const CXIdxDeclInfo *) |
CINDEX_LINKAGE const CXIdxObjCCategoryDeclInfo * | clang_index_getObjCCategoryDeclInfo (const CXIdxDeclInfo *) |
CINDEX_LINKAGE const CXIdxObjCProtocolRefListInfo * | clang_index_getObjCProtocolRefListInfo (const CXIdxDeclInfo *) |
CINDEX_LINKAGE const CXIdxObjCPropertyDeclInfo * | clang_index_getObjCPropertyDeclInfo (const CXIdxDeclInfo *) |
CINDEX_LINKAGE const CXIdxIBOutletCollectionAttrInfo * | clang_index_getIBOutletCollectionAttrInfo (const CXIdxAttrInfo *) |
CINDEX_LINKAGE const CXIdxCXXClassDeclInfo * | clang_index_getCXXClassDeclInfo (const CXIdxDeclInfo *) |
CINDEX_LINKAGE CXIdxClientContainer | clang_index_getClientContainer (const CXIdxContainerInfo *) |
For retrieving a custom CXIdxClientContainer attached to a container. More... | |
CINDEX_LINKAGE void | clang_index_setClientContainer (const CXIdxContainerInfo *, CXIdxClientContainer) |
For setting a custom CXIdxClientContainer attached to a container. More... | |
CINDEX_LINKAGE CXIdxClientEntity | clang_index_getClientEntity (const CXIdxEntityInfo *) |
For retrieving a custom CXIdxClientEntity attached to an entity. More... | |
CINDEX_LINKAGE void | clang_index_setClientEntity (const CXIdxEntityInfo *, CXIdxClientEntity) |
For setting a custom CXIdxClientEntity attached to an entity. More... | |
CINDEX_LINKAGE CXIndexAction | clang_IndexAction_create (CXIndex CIdx) |
An indexing action/session, to be applied to one or multiple translation units. More... | |
CINDEX_LINKAGE void | clang_IndexAction_dispose (CXIndexAction) |
Destroy the given index action. More... | |
CINDEX_LINKAGE int | clang_indexSourceFile (CXIndexAction, CXClientData client_data, IndexerCallbacks *index_callbacks, unsigned index_callbacks_size, unsigned index_options, const char *source_filename, const char *const *command_line_args, int num_command_line_args, struct CXUnsavedFile *unsaved_files, unsigned num_unsaved_files, CXTranslationUnit *out_TU, unsigned TU_options) |
Index the given source file and the translation unit corresponding to that file via callbacks implemented through IndexerCallbacks. More... | |
CINDEX_LINKAGE int | clang_indexSourceFileFullArgv (CXIndexAction, CXClientData client_data, IndexerCallbacks *index_callbacks, unsigned index_callbacks_size, unsigned index_options, const char *source_filename, const char *const *command_line_args, int num_command_line_args, struct CXUnsavedFile *unsaved_files, unsigned num_unsaved_files, CXTranslationUnit *out_TU, unsigned TU_options) |
Same as clang_indexSourceFile but requires a full command line for command_line_args including argv[0]. More... | |
CINDEX_LINKAGE int | clang_indexTranslationUnit (CXIndexAction, CXClientData client_data, IndexerCallbacks *index_callbacks, unsigned index_callbacks_size, unsigned index_options, CXTranslationUnit) |
Index the given translation unit via callbacks implemented through IndexerCallbacks. More... | |
CINDEX_LINKAGE void | clang_indexLoc_getFileLocation (CXIdxLoc loc, CXIdxClientFile *indexFile, CXFile *file, unsigned *line, unsigned *column, unsigned *offset) |
Retrieve the CXIdxFile, file, line, column, and offset represented by the given CXIdxLoc. More... | |
CINDEX_LINKAGE CXSourceLocation | clang_indexLoc_getCXSourceLocation (CXIdxLoc loc) |
Retrieve the CXSourceLocation represented by the given CXIdxLoc. More... | |
CINDEX_LINKAGE unsigned | clang_Type_visitFields (CXType T, CXFieldVisitor visitor, CXClientData client_data) |
Visit the fields of a particular type. More... | |
#define CINDEX_VERSION |
#define CINDEX_VERSION_ENCODE | ( | major, | |
minor | |||
) |
#define CINDEX_VERSION_MAJOR 0 |
The version constants for the libclang API.
CINDEX_VERSION_MINOR should increase when there are API additions. CINDEX_VERSION_MAJOR is intended for "major" source/ABI breaking changes.
The policy about the libclang API was always to keep it source and ABI compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable.
#define CINDEX_VERSION_STRING |
#define CINDEX_VERSION_STRINGIZE | ( | major, | |
minor | |||
) | CINDEX_VERSION_STRINGIZE_(major, minor) |