clang-tools 20.0.0git
|
#include <ConcatNestedNamespacesCheck.h>
Public Member Functions | |
std::optional< SourceRange > | getCleanedNamespaceFrontRange (const SourceManager &SM, const LangOptions &LangOpts) const |
SourceRange | getReplacedNamespaceFrontRange () const |
SourceRange | getNamespaceBackRange (const SourceManager &SM, const LangOptions &LangOpts) const |
SourceRange | getDefaultNamespaceBackRange () const |
void | appendName (NamespaceName &Str) const |
void | appendCloseComment (NamespaceName &Str) const |
Definition at line 20 of file ConcatNestedNamespacesCheck.h.
void clang::tidy::modernize::NS::appendCloseComment | ( | NamespaceName & | Str | ) | const |
Definition at line 89 of file ConcatNestedNamespacesCheck.cpp.
References appendName(), and clang::tidy::modernize::getName().
Referenced by getNamespaceBackRange().
void clang::tidy::modernize::NS::appendName | ( | NamespaceName & | Str | ) | const |
Definition at line 80 of file ConcatNestedNamespacesCheck.cpp.
Referenced by appendCloseComment().
std::optional< SourceRange > clang::tidy::modernize::NS::getCleanedNamespaceFrontRange | ( | const SourceManager & | SM, |
const LangOptions & | LangOpts | ||
) | const |
Definition at line 34 of file ConcatNestedNamespacesCheck.cpp.
References clang::tidy::utils::lexer::findNextTokenSkippingComments().
SourceRange clang::tidy::modernize::NS::getDefaultNamespaceBackRange | ( | ) | const |
Definition at line 54 of file ConcatNestedNamespacesCheck.cpp.
Referenced by getNamespaceBackRange().
SourceRange clang::tidy::modernize::NS::getNamespaceBackRange | ( | const SourceManager & | SM, |
const LangOptions & | LangOpts | ||
) | const |
Definition at line 57 of file ConcatNestedNamespacesCheck.cpp.
References appendCloseComment(), clang::tidy::utils::lexer::findNextTokenIncludingComments(), getDefaultNamespaceBackRange(), clang::tidy::modernize::getRawStringRef(), and Loc.
SourceRange clang::tidy::modernize::NS::getReplacedNamespaceFrontRange | ( | ) | const |
Definition at line 50 of file ConcatNestedNamespacesCheck.cpp.