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

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 17 04:12:54 PDT 2018


malcolm.parsons added inline comments.


================
Comment at: lib/Sema/SemaLambda.cpp:1567
+            if (!CurHasPreviousCapture && !IsLast) {
+              // If there are no captures preceding this capture, remove the
+              // following comma.
----------------
In clang-tidy checks, removal of commas is handled automatically by `format::cleanupAroundReplacements()`.
Is that not the case in clang?


Repository:
  rC Clang

https://reviews.llvm.org/D48845





More information about the cfe-commits mailing list