[all-commits] [llvm/llvm-project] 2acdac: [libc++] Adds is_implemented function for new ftm ...

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Apr 8 10:41:40 PDT 2025


  Branch: refs/heads/users/mordante/ftm/is_implemented
  Home:   https://github.com/llvm/llvm-project
  Commit: 2acdac5a8516d2015c6651746333f84604d8c458
      https://github.com/llvm/llvm-project/commit/2acdac5a8516d2015c6651746333f84604d8c458
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M libcxx/test/libcxx/feature_test_macro/implemented_ftms.sh.py
    A libcxx/test/libcxx/feature_test_macro/is_implemented.sh.py
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  [libc++] Adds is_implemented function for new ftm generator.

At the moment the ftm macro for __cpp_lib_to_chars will have the
following values:

standard_ftms: {
    "c++17": "201611L",
    "c++20": "201611L",
    "c++23": "201611L",
    "c++26": "201611L",
}

implemented_ftms: {
    "c++17": None,
}

This is an issue with the test whether the FTM is implemented it does:
  self.implemented_ftms[ftm][std] == self.standard_ftms[ftm][std]
This will fail in C++20 since implemented_ftms[ftm] does not have the
key c++20. This adds a new helper function and removes the None entries
when a FTM is not implemented.


  Commit: fa5cbcf8713aacbe230a9c4cfea6f3397e3c5eb0
      https://github.com/llvm/llvm-project/commit/fa5cbcf8713aacbe230a9c4cfea6f3397e3c5eb0
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  Update libcxx/utils/generate_feature_test_macro_components.py

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>


Compare: https://github.com/llvm/llvm-project/compare/14c5af3d814e...fa5cbcf8713a

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