[PATCH] D152802: [clang-tidy] Fix crash in `modernize-use-default-member-init`
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 13 06:58:07 PDT 2023
PiotrZSL added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:273
+
+ const bool ValueInit = isa<ImplicitValueInitExpr>(InitExpression);
+ const bool CanAssign =
----------------
```const bool ValueInit = isa<ImplicitValueInitExpr>(InitExpression) && !isa<ArrayType>(InitType);```
This should do a trick.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152802/new/
https://reviews.llvm.org/D152802
More information about the cfe-commits
mailing list