[PATCH] D117306: [clang-tidy] Add new check 'shared-ptr-array-mismatch'.
Balázs Kéri via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 18 03:22:42 PST 2022
balazske added a comment.
Possible improvement: Add the check for `reset` too.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize-make-shared.cpp:48
void basic() {
+ std::shared_ptr<int[]> Pt1(new int[22]);
+
----------------
This change was not intentional (should be removed).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117306/new/
https://reviews.llvm.org/D117306
More information about the cfe-commits
mailing list