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

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Thu Jul 31 02:52:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ef92469ab341ac1bee39a9413ffaa845e307414
      https://github.com/llvm/llvm-project/commit/4ef92469ab341ac1bee39a9413ffaa845e307414
  Author: Konstantin Varlamov <varconsteq at gmail.com>
  Date:   2025-07-31 (Thu, 31 Jul 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.



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