[clang] [Clang] Introduce __builtin_is_modifiable_lvalue() (PR #132524)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 21 23:20:52 PDT 2025


================
@@ -964,6 +964,13 @@ def IsConstantEvaluated : LangBuiltin<"CXX_LANG"> {
   let Prototype = "bool()";
 }
 
+def IsLValue : Builtin {
+  let Spellings = ["__builtin_is_modifiable_lvalue"];
+  let Attributes = [NoThrow, CustomTypeChecking, UnevaluatedArguments,
+                    Constexpr];
----------------
tbaederr wrote:

There is no constexpr implementation in this patch.

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


More information about the cfe-commits mailing list