[all-commits] [llvm/llvm-project] 9e87ca: [libc++][NFC] Comment cleanup for `<type_traits>` ...

A. Jiang via All-commits all-commits at lists.llvm.org
Sat Mar 8 19:17:46 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e87caff98cefcabfc13288229a4422e7f9edde4
      https://github.com/llvm/llvm-project/commit/9e87caff98cefcabfc13288229a4422e7f9edde4
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-03-09 (Sun, 09 Mar 2025)

  Changed paths:
    M libcxx/include/type_traits

  Log Message:
  -----------
  [libc++][NFC] Comment cleanup for `<type_traits>` (#130422)

- Aligns all version comments to line 65.
- Consistently uses `// since C++` instead of `// C++`, in lowercase as
used in most version comments.
- Consistently uses `class` to introduce type template parameters.
- Consistently uses `inline constexpr` for variable templates.
- Corrects the comment for `bool_constant` to `// since C++17` as it's a
C++17 feature.
- Changes the class-key of `result_of` to `struct`, which follows N4659
[depr.meta.types] and the actual usage in libc++.
- Adds missed `// since C++17` for `is_(nothrow_)invocable(_r)`.
- Moves the comments for `is_nothrow_convertible_v` to the part for
variable templates.
- Removes duplicated comments for `true_type` and `false_type`.



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