[PATCH] D159126: [Clang] Add captures to the instantiation scope of lambda call operators

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 6 08:15:34 PDT 2023


cor3ntin added inline comments.


================
Comment at: clang/lib/Sema/SemaLambda.cpp:2263
+        LocalInstantiationScope &Scope)
+    : FunctionScope(SemasRef) {
+  if (!isLambdaCallOperator(FD)) {
----------------
erichkeane wrote:
> Wonder if `LambdaScopeForCallOperatorInstantiationRAII` should just inherit from `FunctionScopeRAII? Am I missing why not?
I suppose it could yes. I think it would have to be protected so that `disable` is not misused 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159126/new/

https://reviews.llvm.org/D159126



More information about the cfe-commits mailing list