Ruby 4.1.0dev (2026-10-21 revision 536dc6f98b72e6999a84bb6373562c43cb1ddf8a)
Macros
lifetimebound.hpp File Reference

(536dc6f98b72e6999a84bb6373562c43cb1ddf8a)

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRISM_LIFETIMEBOUND   [[clang::lifetimebound]]
 Mark a parameter that the return value points into, so that the compiler warns if a temporary is passed and the return value outlives it.
 

Macro Definition Documentation

◆ PRISM_LIFETIMEBOUND

#define PRISM_LIFETIMEBOUND   [[clang::lifetimebound]]

Mark a parameter that the return value points into, so that the compiler warns if a temporary is passed and the return value outlives it.

If it is placed after the qualifiers of a member function, it marks the object instead.

Definition at line 15 of file lifetimebound.hpp.