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

Mark de Wever via All-commits all-commits at lists.llvm.org
Sun Apr 6 06:35:31 PDT 2025


  Branch: refs/heads/users/mordante/ftm/is_implemented
  Home:   https://github.com/llvm/llvm-project
  Commit: 72954e170f2c91c10d4dd4702db981a7b8c756fc
      https://github.com/llvm/llvm-project/commit/72954e170f2c91c10d4dd4702db981a7b8c756fc
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2025-04-06 (Sun, 06 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.



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