[PATCH] D101239: [clang-tidy] Enable the use of IgnoreArray flag in pro-type-member-init rule
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat May 8 10:45:19 PDT 2021
njames93 added a comment.
Whats the expected behaviour of sugar types. Can tests be added that demonstrate the behaviour.
I'd argue these cases shouldn't be warned on if `IgnoreArrays` is enabled and If that behaviour isn't observed currently it should be addressed.
typedef int TypedefArray[4];
using UsingArray = int[4];
struct HasArrayMember {
HasArrayMember() {}
UsingArray U; // Don't warn on this?
TypedefArray T; // Or this?
int Number; // Do warn this.
};
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101239/new/
https://reviews.llvm.org/D101239
More information about the cfe-commits
mailing list