[PATCH] D133119: [clang-tidy] Add checker 'bugprone-suspicious-realloc-usage'.
Balázs Kéri via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 19 09:04:37 PDT 2022
balazske added reviewers: steakhal, martong.
balazske added a comment.
Herald added a subscriber: rnkovacs.
I see that there are problems to solve with this patch. If a global variable is used at `realloc` or the pointer is a function parameter, it may have aliases that are not checkable. In the function code it is possible to detect aliasing. If all these cases are eliminated probably not much is left that is detected by the check, but we can test it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133119/new/
https://reviews.llvm.org/D133119
More information about the cfe-commits
mailing list