[all-commits] [llvm/llvm-project] 28c3bf: [Clang][Parser] Add a warning to ambiguous uses of...

Younan Zhang via All-commits all-commits at lists.llvm.org
Thu Dec 12 23:51:05 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28c3bf5c6dad0974f9f15b58afd0935c0c6cb3e4
      https://github.com/llvm/llvm-project/commit/28c3bf5c6dad0974f9f15b58afd0935c0c6cb3e4
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2024-12-13 (Fri, 13 Dec 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p13.cpp
    M clang/test/Parser/cxx0x-decl.cpp
    M clang/test/Parser/cxx2c-pack-indexing.cpp
    M clang/test/SemaCXX/cxx2c-pack-indexing-ext-diags.cpp

  Log Message:
  -----------
  [Clang][Parser] Add a warning to ambiguous uses of T...[N] types (#116332)

`void f(T... [N])` is no longer treated as a function with a parameter
of pack expansion type after the implementation of the pack indexing
feature. This patch introduces a warning to clarify such cases while
maintaining it as a pack indexing type in all language modes.

Closes https://github.com/llvm/llvm-project/issues/115222



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list