Ruby 4.1.0dev (2026-11-17 revision ebdf919795c0983696023691177045014435551c)
lifetimebound.hpp File Reference

(ebdf919795c0983696023691177045014435551c)

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.

Referenced by prism::comments(), prism::constant(), prism::errors(), prism::magic_comments(), prism::make_parser(), prism::node_range::node_range(), prism::slice(), prism::view(), prism::view(), and prism::warnings().