[all-commits] [llvm/llvm-project] 1d75c5: Fix detection of __datasizeof with Clang. (#94174)

Eric via All-commits all-commits at lists.llvm.org
Wed Jun 5 15:30:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d75c59ace2c9fc4e9a94907748d9555cd4a7d14
      https://github.com/llvm/llvm-project/commit/1d75c59ace2c9fc4e9a94907748d9555cd4a7d14
  Author: Eric <eric at efcs.ca>
  Date:   2024-06-05 (Wed, 05 Jun 2024)

  Changed paths:
    M libcxx/include/__type_traits/datasizeof.h

  Log Message:
  -----------
  Fix detection of __datasizeof with Clang. (#94174)

The `__has_extension` builtin macro is the same as __has_feature when
-pedantic-errors is specified, which means we don't get the right
information about __datasizeof being available.

Using __has_keyword (really !__is_identifier) will tell the truth
even when -pedantic-errors is specified.

This means we always have __datasizeof under Clang



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