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

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 6 08:09:55 PDT 2023


erichkeane added a comment.

1 suggestion, else LGTM.



================
Comment at: clang/lib/Sema/SemaLambda.cpp:2263
+        LocalInstantiationScope &Scope)
+    : FunctionScope(SemasRef) {
+  if (!isLambdaCallOperator(FD)) {
----------------
Wonder if `LambdaScopeForCallOperatorInstantiationRAII` should just inherit from `FunctionScopeRAII? Am I missing why not?


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