[all-commits] [llvm/llvm-project] e35b01: [clang] Build argument string for clang::warn_unus...

zebullax via All-commits all-commits at lists.llvm.org
Mon Jul 14 06:54:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e35b01da11ade0f89c0dafb8e723af3ae8be5c01
      https://github.com/llvm/llvm-project/commit/e35b01da11ade0f89c0dafb8e723af3ae8be5c01
  Author: zebullax <zebullax at gmail.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/SemaCXX/warn-unused-result.cpp

  Log Message:
  -----------
  [clang] Build argument string for clang::warn_unused_result (#148090)

Preserve the argument-clause for `warn-unused-result` when under clang::
scope.
We are not touching gnu:: scope for now as it's an error for GCC to have
that string. Personally I think it would be ok to relax it here too as
we are not introducing breakage to currently passing code, but feedback
is to go slowly about it.



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