Ruby 4.1.0dev (2026-11-18 revision 9de06831e37534f8a163e598cc0c6903c7687430)
lifetimebound.hpp File Reference

(9de06831e37534f8a163e598cc0c6903c7687430)

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().