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

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 15 05:17:42 PDT 2018


aaron.ballman accepted this revision.
aaron.ballman added a comment.

Aside from a small nit in the comments, LGTM.



================
Comment at: include/clang/Sema/Sema.h:5608
+  /// diagnostic is emitted.
+  bool DiagnoseUnusedLambdaCapture(const SourceRange CaptureRange,
+                                   const sema::Capture &From);
----------------
No need to mark the SourceRange const, unless you intended to pass it by reference.


Repository:
  rC Clang

https://reviews.llvm.org/D48845





More information about the cfe-commits mailing list