[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
Mon Jan 17 01:21:06 PST 2022
balazske added a comment.
I am not sure if it is correct to have replacement (fixit) for a part of the cases only. It is not possible to make a fixit for every use. In a case like `shared_ptr<int> p1{new int}, p2{new int[10]};` the type can not be changed without other changes. For this reason the replacement is offered only for single-variable declarations.
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