[PATCH] D134475: [Clang] Add support for [[msvc::constexpr]] C++11 attribute

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 5 06:56:48 PDT 2023


erichkeane added a subscriber: tbaeder.
erichkeane added a comment.

In D134475#4393035 <https://reviews.llvm.org/D134475#4393035>, @RIscRIpt wrote:

> Added diagnostics for [[msvc::constexpr]] virtual
>
> Regarding [[msvc::constexpr]] constructors, unfortunatelly I cannot find a reasonable way to support it.
>
> During development I found out about Clang's experimental Constant Interpreter (`-fexperimental-new-constant-interpreter`),
> I suppose it would be much easier to implement complete support for `[[msvc::constexpr]]` there.
> I am not aware about policy regarding constant evaulation/interpreter:
> do you approve new constant evaluation features in the current (AST-based) approach without extending the experimental one?
> Because I'd rather tacke with experimental Constant Interpreter in a follow-up (if I ever find time for this).

Currently the experimental evaluator isn't required to get patches committed.  It is mostly the labor-of-love of @tbaeder and is still in the beginning stages of development.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134475/new/

https://reviews.llvm.org/D134475



More information about the cfe-commits mailing list