[all-commits] [llvm/llvm-project] 86946e: [clang] Add test for CWG1822

Vlad Serebrennikov via All-commits all-commits at lists.llvm.org
Tue Apr 11 01:08:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86946ebb796c4ccde85b34aa52964e9aadabc692
      https://github.com/llvm/llvm-project/commit/86946ebb796c4ccde85b34aa52964e9aadabc692
  Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
  Date:   2023-04-11 (Tue, 11 Apr 2023)

  Changed paths:
    M clang/test/CXX/drs/dr18xx.cpp
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [clang] Add test for CWG1822

[[https://wg21.link/p1787 | P1787]]: CWG1822 is resolved by specifying that the body of a lambda remains in the surrounding (function parameter) scope.
Wording: A parameter-declaration-clause P introduces a function parameter scope that includes P. <...> If P is associated with a lambda-declarator, its scope extends to the end of the compound-statement in the lambda-expression. ([basic.scope.param])

Reviewed By: #clang-language-wg, shafik

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




More information about the All-commits mailing list