[all-commits] [llvm/llvm-project] 16bd92: [libc++][hardening] Add a greppable prefix to asse...

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Tue Aug 5 01:57:23 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 16bd92cdca5e0f29e109898e53bd71c31ce7593b
      https://github.com/llvm/llvm-project/commit/16bd92cdca5e0f29e109898e53bd71c31ce7593b
  Author: Konstantin Varlamov <varconsteq at gmail.com>
  Date:   2025-08-05 (Tue, 05 Aug 2025)

  Changed paths:
    M libcxx/include/__assert
    M libcxx/test/support/check_assertion.h

  Log Message:
  -----------
  [libc++][hardening] Add a greppable prefix to assertion messages. (#150560)

The current assertion failure messages produced by Hardening are not
very grep-friendly (the common part is rarther generic and requires
wildcards to match). While it's possible to use `__FILE__` for grepping,
it's easier and more straighforward to simply add a libc++-specific
prefix; this is especially important for the planned `observe` mode that
might produce many assertion failure messages over the course of the
program's execution that later need to be filtered and examined.

(cherry picked from commit 4ef92469ab341ac1bee39a9413ffaa845e307414)



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