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

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 18 11:04:18 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;
----------------
NeKon69 wrote:

The most important thing to map is declaration, definitions are optional and do not really affect the analysis flow much.

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


More information about the llvm-commits mailing list