[clang-tools-extra] [clang-tidy] fix incorrect hint for InitListExpr in prefer-member-initializer (PR #81560)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 13 07:32:13 PST 2024
================
@@ -216,6 +217,7 @@ void PreferMemberInitializerCheck::check(
else {
ReplaceRange = Init->getInit()->getSourceRange();
}
+ AddBracket = isa<InitListExpr>(Init->getInit());
----------------
5chmidti wrote:
This could be inside the else-branch right above, right?
https://github.com/llvm/llvm-project/pull/81560
More information about the cfe-commits
mailing list