clang-tools 22.0.0git
|
Finds usages of realloc where the return value is assigned to the same variable as passed to the first argument. More...
#include <SuspiciousReallocUsageCheck.h>
Public Member Functions | |
SuspiciousReallocUsageCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds usages of realloc where the return value is assigned to the same variable as passed to the first argument.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/suspicious-realloc-usage.html
Definition at line 21 of file SuspiciousReallocUsageCheck.h.
|
inline |
Definition at line 23 of file SuspiciousReallocUsageCheck.h.
|
override |
Definition at line 124 of file SuspiciousReallocUsageCheck.cpp.
|
override |
Definition at line 106 of file SuspiciousReallocUsageCheck.cpp.