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 88a243e commit 8fa2edcCopy full SHA for 8fa2edc
clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp
@@ -388,7 +388,7 @@ void UseStructuredBindingCheck::check(const MatchFinder::MatchResult &Result) {
388
389
const std::optional<TransferType> PairCaptureType =
390
getTransferType(*Result.Context, PairVar->getType(), InitE->getType());
391
- std::optional<TransferType> FirstVarCaptureType =
+ const std::optional<TransferType> FirstVarCaptureType =
392
getTransferType(*Result.Context, FirstVar->getType(),
393
*Result.Nodes.getNodeAs<QualType>(FirstTypeName));
394
std::optional<TransferType> SecondVarCaptureType =
0 commit comments