[all-commits] [llvm/llvm-project] 890f11: [Clang] Realize generic lambda call operators are ...

cor3ntin via All-commits all-commits at lists.llvm.org
Fri Sep 1 23:06:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 890f11d60feffed4207afa58229da7bfaaff276e
      https://github.com/llvm/llvm-project/commit/890f11d60feffed4207afa58229da7bfaaff276e
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2023-09-02 (Sat, 02 Sep 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaLambda.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/test/SemaCXX/cxx2a-template-lambdas.cpp

  Log Message:
  -----------
  [Clang] Realize generic lambda call operators are dependent sooner

When parsing a trailing return type / noexcept / constraint
of a generic lambda, we need to know that we are in a dependent
context. We currently don't because we only create a TemplateDecl
for the call operator one its fully parsed.

This patch attach a template decl to the call operator as soon
as the parameter declaration clause is parsed - the point at which
we  have collected all template parameters

Fixes #64689

Reviewed By: erichkeane

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




More information about the All-commits mailing list