[all-commits] [llvm/llvm-project] cb559c: [Sema] Add some basic lambda capture fix-its

Nathan James via All-commits all-commits at lists.llvm.org
Thu Mar 11 05:46:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb559c8d5ebea60b07dec4654064ed775890b93b
      https://github.com/llvm/llvm-project/commit/cb559c8d5ebea60b07dec4654064ed775890b93b
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-03-11 (Thu, 11 Mar 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/CXX/drs/dr6xx.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.lambda/p2-generic-lambda-1y.cpp
    M clang/test/SemaCXX/cxx1y-generic-lambdas-capturing.cpp
    M clang/test/SemaCXX/cxx1y-generic-lambdas.cpp
    M clang/test/SemaCXX/cxx1y-init-captures.cpp
    M clang/test/SemaCXX/cxx1z-constexpr-lambdas.cpp
    M clang/test/SemaCXX/lambda-expressions.cpp
    M clang/test/SemaCXX/lambda-invalid-capture.cpp
    M clang/test/SemaObjCXX/capturing-flexible-array-in-block.mm

  Log Message:
  -----------
  [Sema] Add some basic lambda capture fix-its

Adds fix-its when users forget to explicitly capture variables or this in lambdas

Addresses https://github.com/clangd/clangd/issues/697

Reviewed By: kbobyrev

Differential Revision: https://reviews.llvm.org/D96975




More information about the All-commits mailing list