[all-commits] [llvm/llvm-project] 8b5f60: [Clang] [Parser] Improve diagnostic for `friend co...

Sirraide via All-commits all-commits at lists.llvm.org
Thu Aug 22 14:34:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b5f606612de30ece5e113517decacca0d8ccb35
      https://github.com/llvm/llvm-project/commit/8b5f606612de30ece5e113517decacca0d8ccb35
  Author: Sirraide <aeternalmail at gmail.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Parse/ParseDeclCXX.cpp
    A clang/test/Parser/friend-concept.cpp

  Log Message:
  -----------
  [Clang] [Parser] Improve diagnostic for `friend concept` (#105121)

Diagnose this early after parsing declaration specifiers; this allows us
to issue a better diagnostic. This also checks for `concept friend` and
concept declarations w/o a template-head because it’s easiest to do that
at the same time.

Fixes #45182.



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