cpptooling.analyzer.clang.analyze_helper

Members

Classes

ClassVisitor
class ClassVisitor

Reconstruct the semantic clang AST with dextool data structures suitable for code generation.

Functions

analyzeConstructor
auto analyzeConstructor(const(Constructor) v, ref Container container, in uint indent)

Analyze the node for actionable data.

analyzeCxxBaseSpecified
auto analyzeCxxBaseSpecified(const(CxxBaseSpecifier) v, ref Container container, in uint indent)

Analyze the node that represents a inheritance.

analyzeCxxMethod
CxxMethodResult analyzeCxxMethod(const(Cursor) v, ref Container container, in uint indent)
analyzeDestructor
auto analyzeDestructor(const(Destructor) v, ref Container container, in uint indent)
analyzeFieldDecl
auto analyzeFieldDecl(const(FieldDecl) v, ref Container container, in uint indent)

Analyze the node for actionable data.

analyzeVarDecl
VarDeclResult analyzeVarDecl(const(VarDecl) v, ref Container container, in uint indent)
VarDeclResult analyzeVarDecl(const(Cursor) v, ref Container container, in uint indent)

Analyze a variable declaration

toAccessType
AccessType toAccessType(CX_CXXAccessSpecifier accessSpec)

Convert a clang access specifier to dextool representation.

toLanguage
Language toLanguage(const Cursor c)

Correctly determine the language of a libclang Cursor.

Structs

TranslationUnitResult
struct TranslationUnitResult

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Design. - Using named tuples as the result from analyze* to allow the tuples to add more data in the future without breaking existing code.

License

MPL-2