[PATCH] D158433: [Clang] Do not change the type of captured vars when checking lambda constraints

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 10:42:01 PDT 2023


shafik added inline comments.


================
Comment at: clang/lib/Sema/SemaConcept.cpp:722
+        const_cast<CXXMethodDecl *>(cast<CXXMethodDecl>(FD)));
+    // Captures are not checked from within the lambda.
+    LSI->AfterParameterList = false;
----------------
This comment does not really explain to me the effect of `LSI->AfterParameterList = false;`


================
Comment at: clang/lib/Sema/SemaExpr.cpp:19754
+
+    // When evaluating some attributes (like enable_if) we might refer to a
+    // function parameter appertaining to the same declaration as that
----------------
Why move this block of code for?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158433



More information about the cfe-commits mailing list