clang-tools 22.0.0git
|
Flags all kinds of pointer arithmetic that have result of pointer type, i.e. More...
#include <ProBoundsPointerArithmeticCheck.h>
Public Member Functions | |
ProBoundsPointerArithmeticCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | storeOptions (ClangTidyOptions::OptionMap &Opts) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Flags all kinds of pointer arithmetic that have result of pointer type, i.e.
+, -, +=, -=, ++, –. In addition, the [] operator on pointers (not on arrays) is flagged.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-bounds-pointer-arithmetic.html
Definition at line 22 of file ProBoundsPointerArithmeticCheck.h.
clang::tidy::cppcoreguidelines::ProBoundsPointerArithmeticCheck::ProBoundsPointerArithmeticCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 17 of file ProBoundsPointerArithmeticCheck.cpp.
|
override |
Definition at line 65 of file ProBoundsPointerArithmeticCheck.cpp.
|
inlineoverride |
Definition at line 25 of file ProBoundsPointerArithmeticCheck.h.
|
override |
Definition at line 29 of file ProBoundsPointerArithmeticCheck.cpp.
|
override |
Definition at line 23 of file ProBoundsPointerArithmeticCheck.cpp.