clang-tools 22.0.0git
clang::tidy::cert::DefaultOperatorNewAlignmentCheck Class Reference

Checks if an object of type with extended alignment is allocated by using the default operator new. More...

#include <DefaultOperatorNewAlignmentCheck.h>

Inheritance diagram for clang::tidy::cert::DefaultOperatorNewAlignmentCheck:
[legend]

Public Member Functions

 DefaultOperatorNewAlignmentCheck (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 if an object of type with extended alignment is allocated by using the default operator new.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cert/mem57-cpp.html

Definition at line 21 of file DefaultOperatorNewAlignmentCheck.h.

Constructor & Destructor Documentation

◆ DefaultOperatorNewAlignmentCheck()

clang::tidy::cert::DefaultOperatorNewAlignmentCheck::DefaultOperatorNewAlignmentCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file DefaultOperatorNewAlignmentCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::cert::DefaultOperatorNewAlignmentCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 23 of file DefaultOperatorNewAlignmentCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::cert::DefaultOperatorNewAlignmentCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 25 of file DefaultOperatorNewAlignmentCheck.h.

◆ registerMatchers()

void clang::tidy::cert::DefaultOperatorNewAlignmentCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 18 of file DefaultOperatorNewAlignmentCheck.cpp.


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