[all-commits] [llvm/llvm-project] 3cdc1c: [Clang] Add `-funstable` flag to enable unstable a...

Egor Zhdan via All-commits all-commits at lists.llvm.org
Tue Mar 1 04:35:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cdc1c155b40897a17d7fd61092d2f6fd21fb7ef
      https://github.com/llvm/llvm-project/commit/3cdc1c155b40897a17d7fd61092d2f6fd21fb7ef
  Author: Egor Zhdan <e_zhdan at apple.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M clang/include/clang/Basic/Features.def
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/unstable-flag.cpp
    A clang/test/Lexer/has_feature_cxx_unstable.cpp

  Log Message:
  -----------
  [Clang] Add `-funstable` flag to enable unstable and experimental features

This new flag enables `__has_feature(cxx_unstable)` that would replace libc++ macros for individual unstable/experimental features, e.g. `_LIBCPP_HAS_NO_INCOMPLETE_RANGES` or `_LIBCPP_HAS_NO_INCOMPLETE_FORMAT`.

This would make it easier and more convenient to opt-in into all libc++ unstable features at once.

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




More information about the All-commits mailing list