clang-tools 22.0.0git
clang::tidy::modernize::ConcatNestedNamespacesCheck Class Reference

#include <ConcatNestedNamespacesCheck.h>

Inheritance diagram for clang::tidy::modernize::ConcatNestedNamespacesCheck:
[legend]

Public Member Functions

 ConcatNestedNamespacesCheck (StringRef Name, ClangTidyContext *Context)
bool unsupportedNamespace (const NamespaceDecl &ND, bool IsChild) const
bool singleNamedNamespaceChild (const NamespaceDecl &ND) const
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Definition at line 33 of file ConcatNestedNamespacesCheck.h.

Constructor & Destructor Documentation

◆ ConcatNestedNamespacesCheck()

clang::tidy::modernize::ConcatNestedNamespacesCheck::ConcatNestedNamespacesCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 35 of file ConcatNestedNamespacesCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::modernize::ConcatNestedNamespacesCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::modernize::ConcatNestedNamespacesCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 39 of file ConcatNestedNamespacesCheck.h.

◆ registerMatchers()

void clang::tidy::modernize::ConcatNestedNamespacesCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 117 of file ConcatNestedNamespacesCheck.cpp.

◆ singleNamedNamespaceChild()

bool clang::tidy::modernize::ConcatNestedNamespacesCheck::singleNamedNamespaceChild ( const NamespaceDecl & ND) const

Definition at line 107 of file ConcatNestedNamespacesCheck.cpp.

References unsupportedNamespace().

Referenced by check().

◆ unsupportedNamespace()

bool clang::tidy::modernize::ConcatNestedNamespacesCheck::unsupportedNamespace ( const NamespaceDecl & ND,
bool IsChild ) const

Definition at line 95 of file ConcatNestedNamespacesCheck.cpp.

Referenced by check(), and singleNamedNamespaceChild().


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