clang-tools 20.0.0git
Public Member Functions | List of all members
clang::tidy::utils::NamespaceAliaser Class Reference

#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
 

Detailed Description

Definition at line 24 of file NamespaceAliaser.h.

Constructor & Destructor Documentation

◆ NamespaceAliaser()

clang::tidy::utils::NamespaceAliaser::NamespaceAliaser ( const SourceManager &  SourceMgr)
explicit

Definition at line 20 of file NamespaceAliaser.cpp.

Member Function Documentation

◆ createAlias()

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.

◆ getNamespaceName()

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().


The documentation for this class was generated from the following files: