[all-commits] [llvm/llvm-project] 6d9eb5: [clang-tidy] Add checker 'bugprone-suspicious-real...
Balázs Kéri via All-commits
all-commits at lists.llvm.org
Tue Oct 4 00:15:57 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6d9eb533291377979882ac9674431eddd1248445
https://github.com/llvm/llvm-project/commit/6d9eb533291377979882ac9674431eddd1248445
Author: Balázs Kéri <1.int32 at gmail.com>
Date: 2022-10-04 (Tue, 04 Oct 2022)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
M clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
A clang-tools-extra/clang-tidy/bugprone/SuspiciousReallocUsageCheck.cpp
A clang-tools-extra/clang-tidy/bugprone/SuspiciousReallocUsageCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/bugprone/suspicious-realloc-usage.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-realloc-usage.cpp
Log Message:
-----------
[clang-tidy] Add checker 'bugprone-suspicious-realloc-usage'.
Add a check to detect usages of `realloc` where the result is assigned
to the same variable (or field) as passed to the first argument.
Reviewed By: steakhal, martong
Differential Revision: https://reviews.llvm.org/D133119
More information about the All-commits
mailing list