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 8fa2edc commit 2c98065Copy full SHA for 2c98065
clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp
@@ -391,7 +391,7 @@ void UseStructuredBindingCheck::check(const MatchFinder::MatchResult &Result) {
391
const std::optional<TransferType> FirstVarCaptureType =
392
getTransferType(*Result.Context, FirstVar->getType(),
393
*Result.Nodes.getNodeAs<QualType>(FirstTypeName));
394
- std::optional<TransferType> SecondVarCaptureType =
+ const std::optional<TransferType> SecondVarCaptureType =
395
getTransferType(*Result.Context, SecondVar->getType(),
396
*Result.Nodes.getNodeAs<QualType>(SecondTypeName));
397
if (!PairCaptureType || !FirstVarCaptureType || !SecondVarCaptureType ||
0 commit comments