[all-commits] [llvm/llvm-project] 9e014d: [Clang] Fixed missing sentinel attribute diagnosti...

Tony Guillot via All-commits all-commits at lists.llvm.org
Mon Jul 13 06:15:27 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e014de2d3cc674b548e321013bfe42e6f5485ab
      https://github.com/llvm/llvm-project/commit/9e014de2d3cc674b548e321013bfe42e6f5485ab
  Author: Tony Guillot <tony.guillot at protonmail.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.md
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaCXX/attr-sentinel.cpp

  Log Message:
  -----------
  [Clang] Fixed missing sentinel attribute diagnostic discrepancy with explicit object parameters (#208842)

When using the sentinel attribute on a variadic function with an
explicit object parameter, the missing sentinel attribute diagnostic
takes into account the explicit object parameter as an argument. It was
diagnosing `missing sentinel in function call` instead of `not enough
variable arguments in '%0' declaration to fit a sentinel`, compared to
other similar variadic functions.

Fixes #200007



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