[llvm] [ADT] Add `[[clang::lifetimebound]]` annotations to Twine.h (PR #210474)

Benedek Kaibas via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 19 14:39:52 PDT 2026


================
@@ -424,7 +431,8 @@ class Twine {
   /// @name String Operations
   /// @{
 
-  Twine concat(const Twine &Suffix) const;
+  Twine
+  concat(const Twine &Suffix LLVM_LIFETIME_BOUND) const LLVM_LIFETIME_BOUND;
----------------
benedekaibas wrote:

I do not think we should annotate the definition, at least not for now.

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


More information about the llvm-commits mailing list