Crate clang

Source
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.
CompilationDatabase
A compilation database of all information used to compile files in a project.
CompileCommand
A compile comand from CompilationDatabase
CompileCommands
The result of a search in a CompilationDatabase
Entity
An AST entity.
ExternalSymbol
An external_source_symbol attribute.
Index
A collection of translation units.
ObjCAttributes
Indicates which attributes were applied to an Objective-C property.
ObjCQualifiers
Indicates which qualifiers were applied to an Objective-C method return or parameter type.
Parser
Parses translation units.
PlatformAvailability
The availability of an AST entity on a particular platform.
PrettyPrinter
Pretty prints declarations.
Target
Information about the target for a translation unit.
ThreadOptions
A set of options that determines which types of threads should use background priority.
TranslationUnit
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.
AlignofError
Indicates the error that prevented determining the alignment of a type.
Availability
Indicates the availability of an AST entity.
CallingConvention
Indicates the calling convention specified for a function type.
EntityKind
Indicates the categorization of an AST entity.
EntityVisitResult
Indicates how a entity visitation should proceed.
EvaluationResult
The result of evaluating an expression.
ExceptionSpecification
Indicates the exception specification of a function.
Language
Indicates the language used by a declaration.
Linkage
Indicates the linkage of an AST entity.
MemoryUsage
Indicates the usage category of a quantity of memory.
Nullability
Indicates the nullability of a pointer type.
OffsetofError
Indicates the error that prevented determining the offset of a field in a record type.
PrintingPolicyFlag
Flags for the printing policy.
RefQualifier
Indicates the ref qualifier of a C++ function or method type.
SaveError
Indicates the type of error that prevented the saving of a translation unit to an AST file.
SizeofError
Indicates the error that prevented determining the size of a type.
SourceError
Indicates the type of error that prevented the loading of a translation unit from a source file.
StorageClass
Indicates the storage class of a declaration.
TemplateArgument
An argument to a template function specialization.
TlsKind
Indicates the thread-local storage (TLS) kind of a declaration.
TypeKind
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.