[PATCH] D136036: [Clang] Add __has_builtin_constexpr support

Evgeny Shulgin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 16 04:34:57 PDT 2022


Izaron created this revision.
Izaron added reviewers: rsmith, aaron.ballman, cor3ntin, philnik, yaxunl, tra, cjdb.
Herald added a project: All.
Izaron requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136036

Files:
  clang/include/clang/Basic/Builtins.def
  clang/include/clang/Basic/Builtins.h
  clang/include/clang/Lex/Preprocessor.h
  clang/lib/AST/ExprConstant.cpp
  clang/lib/Lex/PPMacroExpansion.cpp
  clang/test/Preprocessor/feature_tests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136036.468062.patch
Type: text/x-patch
Size: 37175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221016/401e6b45/attachment-0001.bin>


More information about the cfe-commits mailing list