clang-tools 22.0.0git
clang::tidy::llvm_libc::ImplementationInNamespaceCheck Class Reference

Checks all llvm-libc implementation is within the correct namespace. More...

#include <ImplementationInNamespaceCheck.h>

Inheritance diagram for clang::tidy::llvm_libc::ImplementationInNamespaceCheck:
[legend]

Public Member Functions

 ImplementationInNamespaceCheck (StringRef Name, ClangTidyContext *Context)
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

Checks all llvm-libc implementation is within the correct namespace.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/llvmlibc/implementation-in-namespace.html

Definition at line 20 of file ImplementationInNamespaceCheck.h.

Constructor & Destructor Documentation

◆ ImplementationInNamespaceCheck()

clang::tidy::llvm_libc::ImplementationInNamespaceCheck::ImplementationInNamespaceCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file ImplementationInNamespaceCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::llvm_libc::ImplementationInNamespaceCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::llvm_libc::ImplementationInNamespaceCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 25 of file ImplementationInNamespaceCheck.h.

◆ registerMatchers()

void clang::tidy::llvm_libc::ImplementationInNamespaceCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 17 of file ImplementationInNamespaceCheck.cpp.


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