[all-commits] [llvm/llvm-project] e3cf70: [libc++] Introduce __debug_db_insert_c()

philnik777 via All-commits all-commits at lists.llvm.org
Tue Jan 11 14:12:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3cf70502cae1b29ece72a0d6ef28352ca2319fa
      https://github.com/llvm/llvm-project/commit/e3cf70502cae1b29ece72a0d6ef28352ca2319fa
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M libcxx/include/__debug
    M libcxx/include/list
    M libcxx/include/string
    M libcxx/include/unordered_map
    M libcxx/include/unordered_set
    M libcxx/include/vector

  Log Message:
  -----------
  [libc++] Introduce __debug_db_insert_c()

There are a lot of
```
#if _LIBCPP_DEBUG_LEVEL == 2
    __get_db()->__insert_c(this);
#endif
```

This patch introduces `__debug_db_insert_c()` to put the `#if` in one central place.

Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D116947




More information about the All-commits mailing list