Ruby 4.1.0dev (2026-11-12 revision acc624e47b178e3514d848a949f8e25d4e49e175)
Macros
lifetimebound.hpp File Reference

(acc624e47b178e3514d848a949f8e25d4e49e175)

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.