[clang] [clang] Add preliminary lifetimebound support to APINotes (PR #114830)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 11:21:10 PST 2024


================
@@ -444,6 +454,16 @@ class ParamInfo : public VariableInfo {
     NoEscape = Value.value_or(false);
   }
 
+  std::optional<bool> isLifetimebound() const {
+    if (!LifetimeboundSpecified)
+      return std::nullopt;
+    return Lifetimebound;
----------------
compnerd wrote:

```suggestion
    return LifetimeboundSpecified ? Lifetimebound : std::nullopt;
```

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


More information about the cfe-commits mailing list