[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 05:38:29 PDT 2023
PiotrZSL added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp:274-276
+ if (isa<ArrayType>(InitType)) {
+ return;
+ }
----------------
instead of ignoring array types, better would be just not provide FixItHints for them, so WRN would stil be emited.
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