[PATCH] D48845: [Sema] Add fixit for unused lambda captures

Benjamin Kramer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 3 14:36:53 PDT 2018


bkramer added inline comments.


================
Comment at: test/FixIt/fixit-unused-lambda-capture.cpp:31
+  // CHECK: [=,&i] { return i; };
+}
----------------
This needs tests for:

* capture initializers `[c = foo()] {};`
* Capturing this `[this] {};`
* Capturing *this `[*this] {};`
* VLA capture `int a; int c[a]; [&c] {};`


Repository:
  rC Clang

https://reviews.llvm.org/D48845





More information about the cfe-commits mailing list