[all-commits] [llvm/llvm-project] 955ece: [libc++] Add checks for misused hardening macros (...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Jul 31 12:18:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 955ece4fa53e5309dd38795efd6a357ddf52963b
      https://github.com/llvm/llvm-project/commit/955ece4fa53e5309dd38795efd6a357ddf52963b
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2025-07-31 (Thu, 31 Jul 2025)

  Changed paths:
    M libcxx/include/__config

  Log Message:
  -----------
  [libc++] Add checks for misused hardening macros (#150669)

Libc++ hardening went through several iterations, sometimes within a
single release. However, some folks in the wild have picked up these
macros that were either public at some point or that were used
temporarily on `main`, and unfortunately those are now ignored.

This can lead to some users thinking they enable hardening when in
reality they don't, which is a pretty big deal. This patch simply checks
various old hardening-related macros and ensures that they are not set,
which will catch such misuse.



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