clang-tools 22.0.0git
clang::tidy::cppcoreguidelines::SlicingCheck Class Reference

Flags slicing (incomplete copying of an object's state) of member variables or vtable. More...

#include <SlicingCheck.h>

Inheritance diagram for clang::tidy::cppcoreguidelines::SlicingCheck:
[legend]

Public Member Functions

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

Flags slicing (incomplete copying of an object's state) of member variables or vtable.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/slicing.html

Definition at line 21 of file SlicingCheck.h.

Constructor & Destructor Documentation

◆ SlicingCheck()

clang::tidy::cppcoreguidelines::SlicingCheck::SlicingCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file SlicingCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::cppcoreguidelines::SlicingCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 100 of file SlicingCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::cppcoreguidelines::SlicingCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 25 of file SlicingCheck.h.

◆ registerMatchers()

void clang::tidy::cppcoreguidelines::SlicingCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 19 of file SlicingCheck.cpp.


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