File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -92,19 +92,15 @@ void MissingStdForwardCheck::registerMatchers(MatchFinder *Finder) {
92
92
declRefExpr (to (equalsBoundNode (" param" ))))));
93
93
auto RefToParm = capturesVar (
94
94
varDecl (anyOf (hasSameNameAsBoundNode (" param" ), RefToParmImplicit)));
95
- auto HasRefToParm = hasAnyCapture (RefToParm);
96
95
97
96
auto CaptureInRef =
98
97
allOf (hasCaptureDefaultKind (LambdaCaptureDefault::LCD_ByRef),
99
98
unless (hasAnyCapture (
100
99
capturesVar (varDecl (hasSameNameAsBoundNode (" param" ))))));
101
- auto CaptureInCopy = allOf (
102
- hasCaptureDefaultKind (LambdaCaptureDefault::LCD_ByCopy), HasRefToParm);
103
100
auto CaptureByRefExplicit = hasAnyCapture (
104
101
allOf (hasCaptureKind (LambdaCaptureKind::LCK_ByRef), RefToParm));
105
102
106
- auto CapturedInBody =
107
- lambdaExpr (anyOf (CaptureInRef, CaptureInCopy, CaptureByRefExplicit));
103
+ auto CapturedInBody = lambdaExpr (anyOf (CaptureInRef, CaptureByRefExplicit));
108
104
auto CapturedInCaptureList = hasAnyCapture (capturesVar (
109
105
varDecl (hasInitializer (ignoringParenImpCasts (equalsBoundNode (" call" ))))));
110
106
You can’t perform that action at this time.
0 commit comments