clang-tools 22.0.0git
clang::tidy::misc::NonCopyableObjectsCheck Class Reference

The check flags dereferences and non-pointer declarations of objects that are not meant to be passed by value, such as C FILE objects. More...

#include <NonCopyableObjects.h>

Inheritance diagram for clang::tidy::misc::NonCopyableObjectsCheck:
[legend]

Public Member Functions

 NonCopyableObjectsCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

The check flags dereferences and non-pointer declarations of objects that are not meant to be passed by value, such as C FILE objects.

Definition at line 18 of file NonCopyableObjects.h.

Constructor & Destructor Documentation

◆ NonCopyableObjectsCheck()

clang::tidy::misc::NonCopyableObjectsCheck::NonCopyableObjectsCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 20 of file NonCopyableObjects.h.

Member Function Documentation

◆ check()

void clang::tidy::misc::NonCopyableObjectsCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 51 of file NonCopyableObjects.cpp.

◆ registerMatchers()

void clang::tidy::misc::NonCopyableObjectsCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 17 of file NonCopyableObjects.cpp.


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