We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8919fdb commit 88a243eCopy full SHA for 88a243e
clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp
@@ -386,7 +386,7 @@ void UseStructuredBindingCheck::check(const MatchFinder::MatchResult &Result) {
386
!Res.empty())
387
InitE = Res[0].getNodeAs<Expr>("init_expr");
388
389
- std::optional<TransferType> PairCaptureType =
+ const std::optional<TransferType> PairCaptureType =
390
getTransferType(*Result.Context, PairVar->getType(), InitE->getType());
391
std::optional<TransferType> FirstVarCaptureType =
392
getTransferType(*Result.Context, FirstVar->getType(),
0 commit comments