================
@@ -283,7 +283,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const
Expr *E) {
return ClassifyMemberExpr(Ctx, cast<MemberExpr>(E));
case Expr::UnaryOperatorClass:
- switch (cast<UnaryOperator>(E)->getOpcode()) {
+ switch (auto UnaryOp = cast<UnaryOperator>(E)->getOpcode()) {
----------------
Fznamznon wrote:
That is so untypical for the codebase, can we just reuse `
cast<UnaryOperator>(E)` that is happening in the corresponding case?
https://github.com/llvm/llvm-project/pull/218270
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits