clang-tools 22.0.0git
clang::tidy::bugprone::CopyConstructorInitCheck Class Reference

Finds copy constructors where the ctor don't call the copy constructor of the base class. More...

#include <CopyConstructorInitCheck.h>

Inheritance diagram for clang::tidy::bugprone::CopyConstructorInitCheck:
[legend]

Public Member Functions

 CopyConstructorInitCheck (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

Finds copy constructors where the ctor don't call the copy constructor of the base class.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/copy-constructor-init.html

Definition at line 21 of file CopyConstructorInitCheck.h.

Constructor & Destructor Documentation

◆ CopyConstructorInitCheck()

clang::tidy::bugprone::CopyConstructorInitCheck::CopyConstructorInitCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file CopyConstructorInitCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::bugprone::CopyConstructorInitCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 32 of file CopyConstructorInitCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::bugprone::CopyConstructorInitCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 25 of file CopyConstructorInitCheck.h.

◆ registerMatchers()

void clang::tidy::bugprone::CopyConstructorInitCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 18 of file CopyConstructorInitCheck.cpp.


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