class NamedDeclFindingConsumer

Declaration

class NamedDeclFindingConsumer : public ASTConsumer { /* full declaration omitted */ };

Description

ASTConsumer - This is an abstract interface that should be implemented by clients that read ASTs. This abstraction layer allows the client to be independent of the AST producer (e.g. parser vs AST dump file reader, etc).

Declared at: clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp:223

Inherits from: ASTConsumer

Member Variables

private ArrayRef<unsigned int> SymbolOffsets
private ArrayRef<std::string> QualifiedNames
private std::vector<std::string>& SpellingNames
private std::vector<std::vector<std::string>>& USRList
private bool Force
private bool& ErrorOccurred

Method Overview

  • private bool FindSymbol(clang::ASTContext & Context, const clang::SourceManager & SourceMgr, unsigned int SymbolOffset, const std::string & QualifiedName)
  • private void HandleTranslationUnit(clang::ASTContext & Context)
  • public NamedDeclFindingConsumer(ArrayRef<unsigned int> SymbolOffsets, ArrayRef<std::string> QualifiedNames, std::vector<std::string> & SpellingNames, std::vector<std::vector<std::string>> & USRList, bool Force, bool & ErrorOccurred)

Inherited from ASTConsumer:

Methods

bool FindSymbol(
    clang::ASTContext& Context,
    const clang::SourceManager& SourceMgr,
    unsigned int SymbolOffset,
    const std::string& QualifiedName)

Declared at: clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp:235

Parameters

clang::ASTContext& Context
const clang::SourceManager& SourceMgr
unsigned int SymbolOffset
const std::string& QualifiedName

void HandleTranslationUnit(
    clang::ASTContext& Context)

Description

HandleTranslationUnit - This method is called when the ASTs for entire translation unit have been parsed.

Declared at: clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp:287

Parameters

clang::ASTContext& Context

NamedDeclFindingConsumer(
    ArrayRef<unsigned int> SymbolOffsets,
    ArrayRef<std::string> QualifiedNames,
    std::vector<std::string>& SpellingNames,
    std::vector<std::vector<std::string>>&
        USRList,
    bool Force,
    bool& ErrorOccurred)

Declared at: clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp:225

Parameters

ArrayRef<unsigned int> SymbolOffsets
ArrayRef<std::string> QualifiedNames
std::vector<std::string>& SpellingNames
std::vector<std::vector<std::string>>& USRList
bool Force
bool& ErrorOccurred