[PATCH] D90634: Implement Lambda Conversion Operators for All CCs for MSVC.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 14:35:22 PST 2020


rsmith added inline comments.


================
Comment at: clang/lib/Sema/SemaLambda.cpp:1285
+  /// that someone who intentionally places 'thiscall' on the lambda call
+  /// operator will still get that overload, since we don't have the a way of
+  /// detecting the attribute by the time we get here.
----------------



================
Comment at: clang/test/CodeGenCXX/lambda-conversion-op-cc.cpp:10
 void usage() {
   auto lambda = [](int i, float f, double d) CC { return i + f + d; };
 
----------------
Does lambda-to-function-pointer decay still work (eg, `+lambda` or `*lambda`)? It'd be good to test that, since it's a fairly common idiom.


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

https://reviews.llvm.org/D90634



More information about the cfe-commits mailing list