[all-commits] [llvm/llvm-project] eb37d3: [libc++] Future-proof generate_feature_test_macro_...

Quuxplusone via All-commits all-commits at lists.llvm.org
Thu Mar 18 10:36:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb37d3546cd0c6e67798496634c45e501f7806f1
      https://github.com/llvm/llvm-project/commit/eb37d3546cd0c6e67798496634c45e501f7806f1
  Author: Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
  Date:   2021-03-18 (Thu, 18 Mar 2021)

  Changed paths:
    M libcxx/utils/generate_feature_test_macro_components.py

  Log Message:
  -----------
  [libc++] Future-proof generate_feature_test_macro_components.py against long names.

`__cpp_lib_default_template_type_for_algorithm_values` is 52 characters long,
which is enough to reduce the multiplier to less-than-zero, producing an empty
string between the name of the macro and its numeric value. Ensure there's
always a space between the name of the macro and its value.

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




More information about the All-commits mailing list