[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:24:47 PST 2022
balazske added a comment.
Is there a fast way to find single-variable field declaration?
class A {
shared_ptr<int> F1{new int}, F2{new int[10]};
};
The `FieldDecl` does not contain information like `DeclStmt::isSingleDecl`. The only way looks like to check the source locations.
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