[all-commits] [llvm/llvm-project] 02a28e: [Clang] Update feature test macros for Clang 18 (#...

cor3ntin via All-commits all-commits at lists.llvm.org
Mon Jan 22 12:19:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02a28ee8d981b2a8416c50e41c74cb21e73b8340
      https://github.com/llvm/llvm-project/commit/02a28ee8d981b2a8416c50e41c74cb21e73b8340
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2024-01-22 (Mon, 22 Jan 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Features.def
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/test/Lexer/cxx-features.cpp
    M clang/test/Lexer/has_extension_cxx.cpp

  Log Message:
  -----------
  [Clang] Update feature test macros for Clang 18 (#78991)

* Set `__cpp_auto_cast`, as per
https://github.com/cplusplus/CWG/issues/281
* Support `__has_extension(cxx_generalized_nttp)` in C++20 as the
feature isn't stable enough for a feature test macro
* Support `__has_extension(cxx_explicit_this_parameter)` in c++23 as the
feature isn't stable enough for a feature test macro




More information about the All-commits mailing list