clang-tools  15.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)
llvm::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 25 of file NamespaceAliaser.h.

Constructor & Destructor Documentation

◆ NamespaceAliaser()

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

Definition at line 21 of file NamespaceAliaser.cpp.

Member Function Documentation

◆ createAlias()

Optional< FixItHint > clang::tidy::utils::NamespaceAliaser::createAlias ( ASTContext &  Context,
const Stmt &  Statement,
llvm::StringRef  Namespace,
const std::vector< std::string > &  Abbreviations 

Definition at line 30 of file NamespaceAliaser.cpp.

◆ getNamespaceName()

std::string clang::tidy::utils::NamespaceAliaser::getNamespaceName ( ASTContext &  Context,
const Stmt &  Statement,
llvm::StringRef  Namespace 
) const

Definition at line 81 of file NamespaceAliaser.cpp.

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