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

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 12:31:15 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;
----------------
Xazax-hun wrote:

Ugh, sorry. I forgot about this comment. I will incorporate this into a follow up PR. Thanks a lot for the review! 

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


More information about the cfe-commits mailing list