Expand description
A somewhat idiomatic Rust wrapper for libclang.
Modules§
- completion
- Code completion.
- diagnostic
- Issues with source files.
- documentation
- Comments.
- sonar
- Finding C declarations.
- source
- Source files, locations, and ranges.
- token
- Lexed pieces of source files.
Structs§
- Clang
- An empty type which prevents the use of this library from multiple threads simultaneously.
- Compilation
Database - A compilation database of all information used to compile files in a project.
- Compile
Command - A compile comand from CompilationDatabase
- Compile
Commands - The result of a search in a CompilationDatabase
- Entity
- An AST entity.
- External
Symbol - An
external_source_symbol
attribute. - Index
- A collection of translation units.
- ObjC
Attributes - Indicates which attributes were applied to an Objective-C property.
- ObjC
Qualifiers - Indicates which qualifiers were applied to an Objective-C method return or parameter type.
- Parser
- Parses translation units.
- Platform
Availability - The availability of an AST entity on a particular platform.
- Pretty
Printer - Pretty prints declarations.
- Target
- Information about the target for a translation unit.
- Thread
Options - A set of options that determines which types of threads should use background priority.
- Translation
Unit - A preprocessed and parsed source file.
- Type
- The type of an AST entity.
- Unsaved
- The path to and unsaved contents of a previously existing file.
- Usr
- A Unified Symbol Resolution (USR).
- Version
- A version number in the form
x.y.z
.
Enums§
- Accessibility
- Indicates the accessibility of a declaration or base class specifier.
- Alignof
Error - Indicates the error that prevented determining the alignment of a type.
- Availability
- Indicates the availability of an AST entity.
- Calling
Convention - Indicates the calling convention specified for a function type.
- Entity
Kind - Indicates the categorization of an AST entity.
- Entity
Visit Result - Indicates how a entity visitation should proceed.
- Evaluation
Result - The result of evaluating an expression.
- Exception
Specification - Indicates the exception specification of a function.
- Language
- Indicates the language used by a declaration.
- Linkage
- Indicates the linkage of an AST entity.
- Memory
Usage - Indicates the usage category of a quantity of memory.
- Nullability
- Indicates the nullability of a pointer type.
- Offsetof
Error - Indicates the error that prevented determining the offset of a field in a record type.
- Printing
Policy Flag - Flags for the printing policy.
- RefQualifier
- Indicates the ref qualifier of a C++ function or method type.
- Save
Error - Indicates the type of error that prevented the saving of a translation unit to an AST file.
- Sizeof
Error - Indicates the error that prevented determining the size of a type.
- Source
Error - Indicates the type of error that prevented the loading of a translation unit from a source file.
- Storage
Class - Indicates the storage class of a declaration.
- Template
Argument - An argument to a template function specialization.
- TlsKind
- Indicates the thread-local storage (TLS) kind of a declaration.
- Type
Kind - Indicates the categorization of a type.
- Visibility
- Indicates the linker visibility of an AST element.
Functions§
- get_
version - Returns the version string for the version of
libclang
in use.