clang 19.0.0git
Classes | Namespaces | Functions
USRFindingAction.cpp File Reference

Provides an action to find USR for the symbol at <offset>, as well as all additional USRs. More...

#include "clang/Tooling/Refactoring/Rename/USRFindingAction.h"
#include "clang/AST/AST.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/FileManager.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/Refactoring/Rename/USRFinder.h"
#include "clang/Tooling/Tooling.h"
#include <algorithm>
#include <set>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  clang::tooling::NamedDeclFindingConsumer
 

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::tooling
 

Functions

const NamedDecl * clang::tooling::getCanonicalSymbolDeclaration (const NamedDecl *FoundDecl)
 Returns the canonical declaration that best represents a symbol that can be renamed.
 
std::vector< std::string > clang::tooling::getUSRsForDeclaration (const NamedDecl *ND, ASTContext &Context)
 Returns the set of USRs that correspond to the given declaration.
 

Detailed Description

Provides an action to find USR for the symbol at <offset>, as well as all additional USRs.

Definition in file USRFindingAction.cpp.