Skip to content

Question Clang(d): Is there a way to activate __cpp_consteval as experimental flag? #53906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Febbe opened this issue Feb 17, 2022 · 1 comment
Labels
clangd consteval C++20 consteval question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Comments

@Febbe
Copy link
Contributor

Febbe commented Feb 17, 2022

When using clangd in combination with an msvc compiler and its STL - impl, it is not possible to use some features which require __cpp_consteval, even it is already (partially) supported.

Therefore I would like to have the ability to activate some experimental features like __cpp_consteval.
If this is not possible, it might be usefull to add such an option to increase feedback for new features from some bleeding edge devs like me.

@EugeneZelenko EugeneZelenko added clangd question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead! and removed new issue labels Feb 17, 2022
@usx95 usx95 added the consteval C++20 consteval label Aug 20, 2022
@royjacobson
Copy link
Contributor

I don't recommend actually doing it, but it's possible to just add -D__cpp_consteval=201811 to the command line of clang/d until it is mature enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clangd consteval C++20 consteval question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Projects
Status: Done
Development

No branches or pull requests

4 participants