[PATCH] D139541: Fix parameter name in Sema::addInitCapture to ByRef.
Jens Massberg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 7 07:22:44 PST 2022
massberg created this revision.
massberg added a reviewer: ilya-biryukov.
Herald added a project: All.
massberg requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Rename parameter in Sema::addInitCapture as proposed in review of Sema::addInitCapture. Sorry, that I have missed the comment there!
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139541
Files:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaLambda.cpp
Index: clang/lib/Sema/SemaLambda.cpp
===================================================================
--- clang/lib/Sema/SemaLambda.cpp
+++ clang/lib/Sema/SemaLambda.cpp
@@ -887,10 +887,9 @@
return NewVD;
}
-void Sema::addInitCapture(LambdaScopeInfo *LSI, VarDecl *Var,
- bool isReferenceType) {
+void Sema::addInitCapture(LambdaScopeInfo *LSI, VarDecl *Var, bool ByRef) {
assert(Var->isInitCapture() && "init capture flag should be set");
- LSI->addCapture(Var, /*isBlock*/ false, isReferenceType,
+ LSI->addCapture(Var, /*isBlock*/ false, ByRef,
/*isNested*/ false, Var->getLocation(), SourceLocation(),
Var->getType(), /*Invalid*/ false);
}
Index: clang/include/clang/Sema/Sema.h
===================================================================
--- clang/include/clang/Sema/Sema.h
+++ clang/include/clang/Sema/Sema.h
@@ -7097,8 +7097,7 @@
unsigned InitStyle, Expr *Init);
/// Add an init-capture to a lambda scope.
- void addInitCapture(sema::LambdaScopeInfo *LSI, VarDecl *Var,
- bool isReferenceType);
+ void addInitCapture(sema::LambdaScopeInfo *LSI, VarDecl *Var, bool ByRef);
/// Note that we have finished the explicit captures for the
/// given lambda.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139541.480905.patch
Type: text/x-patch
Size: 1323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221207/74d7c005/attachment-0001.bin>
More information about the cfe-commits
mailing list