Landing: 104eb528c1c5

Project / Subsystem

gcc / c++/reflection

Date

2026-05-09

Author

Jason Merrill

Commit

104eb528c1c53f2e9de7e1c50a6d2840ef4be6fe

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/reflection
patch_id
commit_hash
104eb528c1c53f2e9de7e1c50a6d2840ef4be6fe
source_type
github
headline
C++/reflection: Add null_reflection_p
tldr
Introduces a null_reflection_p function to check for null reflection objects, improving code readability.
author
Jason Merrill
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • reflection
  • API
discussion_id_link
bugzilla_pr
date
2026-05-09T00:00:00.000Z

This commit introduces the null_reflection_p function to check for null reflection objects in the C++ reflection implementation. This function provides a more concise and readable way to perform this check, improving code maintainability. The new function is used in splice and dump_expr to simplify the code.