[all-commits] [llvm/llvm-project] 5b5676: [Clang] Add __has_constexpr_builtin support

Evgeny Shulgin via All-commits all-commits at lists.llvm.org
Fri Oct 21 04:23:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b567637e22bfa128514a5a9de7f3296423e8acd
      https://github.com/llvm/llvm-project/commit/5b567637e22bfa128514a5a9de7f3296423e8acd
  Author: Evgeny Shulgin <izaronplatz at gmail.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.def
    M clang/include/clang/Basic/Builtins.h
    M clang/include/clang/Lex/Preprocessor.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Lex/PPMacroExpansion.cpp
    M clang/test/Preprocessor/feature_tests.cpp

  Log Message:
  -----------
  [Clang] Add __has_constexpr_builtin support

The `__has_constexpr_builtin` macro can be used to check
whether the builtin in constant-evaluated by Clang frontend.

Reviewed By: aaron.ballman, shafik

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




More information about the All-commits mailing list