[clang] [Clang][C++23] Implement P1774R8: Portable assumptions (PR #81014)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 7 10:51:28 PST 2024


Sirraide wrote:

> Also note, we need to update the feature-test-macro/has_attribute-expr here.

I’ve already added a check for `__has_cpp_attribute` to one of the tests. `__has_attribute(assume)` already evaluates to `1` even without this pr, likely because of `clang::assume`, but I can add a test for that as well. I’m also not aware of a feature test macro for `assume`? AFAIK it’s just `__has_cpp_attribute`.

https://github.com/llvm/llvm-project/pull/81014


More information about the cfe-commits mailing list