================
@@ -194,15 +199,21 @@ void UseDefaultMemberInitCheck::storeOptions(
}
void UseDefaultMemberInitCheck::registerMatchers(MatchFinder *Finder) {
- auto InitBase =
- anyOf(stringLiteral(), characterLiteral(), integerLiteral(),
- unaryOperator(hasAnyOperatorName("+", "-"),
- hasUnaryOperand(integerLiteral())),
- floatLiteral(),
- unaryOperator(hasAnyOperatorName("+", "-"),
- hasUnaryOperand(floatLiteral())),
- cxxBoolLiteral(), cxxNullPtrLiteralExpr(), implicitValueInitExpr(),
- declRefExpr(to(enumConstantDecl())));
+
+ auto ExplicitCastExpr = castExpr(hasSourceExpression(anyOf(
+ unaryOperator(hasAnyOperatorName("+", "-"),
+ hasUnaryOperand(anyOf(integerLiteral(), floatLiteral()))),
+ integerLiteral(), floatLiteral(), characterLiteral())));
----------------
RiverDave wrote:
Amazing, will apply these suggestions soon
https://github.com/llvm/llvm-project/pull/129408
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits