File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,14 @@ static bool pointedUnqualifiedTypesAreEqual(QualType T1, QualType T2) {
58
58
}
59
59
60
60
static clang::CharSourceRange getReplaceRange (const ExplicitCastExpr *Expr) {
61
- if (const auto *CastExpr = dyn_cast<CStyleCastExpr>(Expr)) {
61
+ if (const auto *CastExpr = dyn_cast<CStyleCastExpr>(Expr))
62
62
return CharSourceRange::getCharRange (
63
63
CastExpr->getLParenLoc (),
64
64
CastExpr->getSubExprAsWritten ()->getBeginLoc ());
65
- }
66
- if (const auto *CastExpr = dyn_cast<CXXFunctionalCastExpr>(Expr)) {
65
+ if (const auto *CastExpr = dyn_cast<CXXFunctionalCastExpr>(Expr))
67
66
return CharSourceRange::getCharRange (CastExpr->getBeginLoc (),
68
67
CastExpr->getLParenLoc ());
69
- } else
70
- llvm_unreachable (" Unsupported CastExpr" );
68
+ llvm_unreachable (" Unsupported CastExpr" );
71
69
}
72
70
73
71
static StringRef getDestTypeString (const SourceManager &SM,
Original file line number Diff line number Diff line change @@ -375,8 +375,8 @@ static std::optional<ContainerCall> getContainerExpr(const Expr *Call) {
375
375
return ContainerCall{TheCall->getArg (0 ),
376
376
TheCall->getDirectCallee ()->getName (), false ,
377
377
CallKind};
378
-
379
- } else if (const auto *TheCall = dyn_cast_or_null<CallExpr>(Dug)) {
378
+ }
379
+ if (const auto *TheCall = dyn_cast_or_null<CallExpr>(Dug)) {
380
380
if (TheCall->getNumArgs () != 1 )
381
381
return std::nullopt;
382
382
You can’t perform that action at this time.
0 commit comments