class ASTSrcLocProcessor

Declaration

class ASTSrcLocProcessor : public MatchCallback { /* full declaration omitted */ };

Description

Called when the Match registered for it was successfully found in the AST.

Declared at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h:25

Inherits from: MatchFinder::MatchCallback

Member Variables

private llvm::StringMap<std::string> ClassInheritance
private llvm::StringMap<std::vector<StringRef>> ClassesInClade
private llvm::StringMap<ClassData> ClassEntries
private std::string JsonPath
private std::unique_ptr<clang::ast_matchers::MatchFinder> Finder

Method Overview

Inherited from MatchFinder::MatchCallback:

Methods

ASTSrcLocProcessor(llvm::StringRef JsonPath)

Declared at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h:27

Parameters

llvm::StringRef JsonPath

std::unique_ptr<ASTConsumer> createASTConsumer(
    clang::CompilerInstance& Compiler,
    llvm::StringRef File)

Declared at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h:29

Parameters

clang::CompilerInstance& Compiler
llvm::StringRef File

void generate()

Declared at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h:32

void generateEmpty()

Declared at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h:33

llvm::Optional<TraversalKind>
getCheckTraversalKind() const

Description

TraversalKind to use while matching and processing the result nodes. This API is temporary to facilitate third parties porting existing code to the default behavior of clang-tidy.

Declared at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h:38

void run(
    const ast_matchers::MatchFinder::MatchResult&
        Result)

Description

Called on every match by the \c MatchFinder.

Declared at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h:36

Parameters

const ast_matchers::MatchFinder::MatchResult& Result