clang-tools 20.0.0git
|
#include <NamespaceAliaser.h>
Public Member Functions | |
NamespaceAliaser (const SourceManager &SourceMgr) | |
std::optional< FixItHint > | createAlias (ASTContext &Context, const Stmt &Statement, llvm::StringRef Namespace, const std::vector< std::string > &Abbreviations) |
std::string | getNamespaceName (ASTContext &Context, const Stmt &Statement, llvm::StringRef Namespace) const |
Definition at line 24 of file NamespaceAliaser.h.
|
explicit |
Definition at line 20 of file NamespaceAliaser.cpp.
std::optional< FixItHint > clang::tidy::utils::NamespaceAliaser::createAlias | ( | ASTContext & | Context, |
const Stmt & | Statement, | ||
llvm::StringRef | Namespace, | ||
const std::vector< std::string > & | Abbreviations | ||
) |
Definition at line 29 of file NamespaceAliaser.cpp.
References clang::tidy::utils::getSurroundingFunction(), and Loc.
std::string clang::tidy::utils::NamespaceAliaser::getNamespaceName | ( | ASTContext & | Context, |
const Stmt & | Statement, | ||
llvm::StringRef | Namespace | ||
) | const |
Definition at line 80 of file NamespaceAliaser.cpp.
References clang::tidy::utils::getSurroundingFunction().