commit | c66851d9ee5a796c9edf67a7cecf2e033f824362 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Wed Jun 16 09:55:13 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 22 22:51:39 2021 +0000 |
tree | aa397ce9c91be909d5d2014cf0dedf6f5a87c9b0 | |
parent | 5d694840afbd662cf0d6f637e7aa58285a35d7f1 [diff] |
pw_polyfill: Remove two language feature polyfills This change avoids polyfilling the constinit and constexpr keywords, which requires implicit polyfilling. Instead, this introduces a macro that is straightforward to use and portable. - Remove consteval and constinit language feature polyfills. - Provide PW_CONSTINIT macro that uses the constinit keyword or compiler attributes to guarantee constant initialization. - Update PW_CONSTEVAL so it always marks functions constexpr. Change-Id: I8b582b69a54717017bd30d4a33ae148f3a754095 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/50360 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Keir Mierle <keir@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
See our website: http://pigweed.dev