clang-tools 22.0.0git
|
Finds cases where an integer is added to or subracted from the result of a memory allocation function instead of its argument. More...
#include <MisplacedPointerArithmeticInAllocCheck.h>
Public Member Functions | |
MisplacedPointerArithmeticInAllocCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds cases where an integer is added to or subracted from the result of a memory allocation function instead of its argument.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/misplaced-pointer-arithmetic-in-alloc.html
Definition at line 21 of file MisplacedPointerArithmeticInAllocCheck.h.
|
inline |
Definition at line 23 of file MisplacedPointerArithmeticInAllocCheck.h.
|
override |
Definition at line 60 of file MisplacedPointerArithmeticInAllocCheck.cpp.
|
override |
Definition at line 18 of file MisplacedPointerArithmeticInAllocCheck.cpp.