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

This check flags all array to pointer decays. More...

#include <ProBoundsArrayToPointerDecayCheck.h>

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

Public Member Functions

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

This check flags all array to pointer decays.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-bounds-array-to-pointer-decay.html

Definition at line 20 of file ProBoundsArrayToPointerDecayCheck.h.

Constructor & Destructor Documentation

◆ ProBoundsArrayToPointerDecayCheck()

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

Definition at line 22 of file ProBoundsArrayToPointerDecayCheck.h.

Member Function Documentation

◆ check()

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

Definition at line 71 of file ProBoundsArrayToPointerDecayCheck.cpp.

◆ isLanguageVersionSupported()

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

Definition at line 24 of file ProBoundsArrayToPointerDecayCheck.h.

◆ registerMatchers()

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

Definition at line 50 of file ProBoundsArrayToPointerDecayCheck.cpp.


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