clang-tools 20.0.0git
|
#include <Move.h>
Public Member Functions | |
ClangMoveTool (ClangMoveContext *const Context, DeclarationReporter *const Reporter) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) |
void | run (const ast_matchers::MatchFinder::MatchResult &Result) override |
void | onEndOfTranslationUnit () override |
void | addIncludes (llvm::StringRef IncludeHeader, bool IsAngled, llvm::StringRef SearchPath, llvm::StringRef FileName, clang::CharSourceRange IncludeFilenameRange, const SourceManager &SM) |
Add #includes from old.h/cc files. | |
std::vector< const NamedDecl * > & | getMovedDecls () |
void | addRemovedDecl (const NamedDecl *Decl) |
Add declarations being removed from old.h/cc. | |
llvm::SmallPtrSet< const NamedDecl *, 8 > & | getUnremovedDeclsInOldHeader () |
clang::move::ClangMoveTool::ClangMoveTool | ( | ClangMoveContext *const | Context, |
DeclarationReporter *const | Reporter | ||
) |
void clang::move::ClangMoveTool::addIncludes | ( | llvm::StringRef | IncludeHeader, |
bool | IsAngled, | ||
llvm::StringRef | SearchPath, | ||
llvm::StringRef | FileName, | ||
clang::CharSourceRange | IncludeFilenameRange, | ||
const SourceManager & | SM | ||
) |
Add #includes from old.h/cc files.
IncludeHeader | The name of the file being included, as written in the source code. |
IsAngled | Whether the file name was enclosed in angle brackets. |
SearchPath | The search path which was used to find the IncludeHeader in the file system. It can be a relative path or an absolute path. |
FileName | The name of file where the IncludeHeader comes from. |
IncludeFilenameRange | The source range for the written file name in #include (i.e. "old.h" for #include "old.h") in old.cc. |
SM | The SourceManager. |
Definition at line 690 of file Move.cpp.
References FileName, IsAngled, clang::move::MoveDefinitionSpec::OldCC, clang::move::MoveDefinitionSpec::OldHeader, and clang::move::ClangMoveContext::Spec.
void clang::move::ClangMoveTool::addRemovedDecl | ( | const NamedDecl * | Decl | ) |
|
inline |
|
inline |
|
override |
Definition at line 879 of file Move.cpp.
References Decl, clang::move::HelperDeclRefGraph::dump(), clang::move::ClangMoveContext::DumpDeclarations, clang::move::HelperDeclRGBuilder::getGraph(), Kind, clang::move::MoveDefinitionSpec::NewCC, clang::move::MoveDefinitionSpec::NewHeader, clang::move::MoveDefinitionSpec::OldCC, clang::move::MoveDefinitionSpec::OldHeader, clang::move::DeclarationReporter::reportDeclaration(), and clang::move::ClangMoveContext::Spec.
void clang::move::ClangMoveTool::registerMatchers | ( | ast_matchers::MatchFinder * | Finder | ) |
Definition at line 500 of file Move.cpp.
References clang::move::ClangMoveContext::DumpDeclarations, clang::move::MoveDefinitionSpec::Names, clang::move::MoveDefinitionSpec::OldCC, clang::move::MoveDefinitionSpec::OldHeader, and clang::move::ClangMoveContext::Spec.
Referenced by clang::move::ClangMoveAction::ClangMoveAction().
|
override |