[all-commits] [llvm/llvm-project] 2d4f28: [clang] Add `__has_extension ()` for C++11 features

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Mon Jul 3 07:16:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d4f2890823fa3edc6ae563edec4dacad1989564
      https://github.com/llvm/llvm-project/commit/2d4f2890823fa3edc6ae563edec4dacad1989564
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Features.def
    M clang/test/Lexer/has_extension_cxx.cpp

  Log Message:
  -----------
  [clang] Add `__has_extension ()` for C++11 features

Add `__has_extension (cxx_defaulted_functions)` and
`__has_extension (cxx_default_function_template_args)` since they are
accepted in C++98 mode as extensions.

Fixes https://github.com/llvm/llvm-project/issues/61758

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list