Skip to content

Diagnostics clean-up#34

Merged
mingxwa merged 2 commits intongcpp:mainfrom
mingxwa:user/mingxwa/clean-up-diagnostics
May 9, 2026
Merged

Diagnostics clean-up#34
mingxwa merged 2 commits intongcpp:mainfrom
mingxwa:user/mingxwa/clean-up-diagnostics

Conversation

@mingxwa
Copy link
Copy Markdown
Collaborator

@mingxwa mingxwa commented May 4, 2026

Changes

  • Since we should always generate a hard error when entering the else branch of if constexpr (proxiable<P, F>), the returned bool doesn't make any difference. Removed a bunch of redundant verdict variables.
  • Renamed details::facade_traits::diagnose_proxiable() into diagnose_proxiable_noreturn().
  • Inlined details::refl_traits for simplicity and reduced diagnostic call stack for reflections.
  • Renamed details::refl_meta into reflection_meta to avoid name collision after simplicity.

As manually tested, the diagnostics work as expected. No functional changes.

Comment thread include/proxy/v4/proxy.h
Comment thread include/proxy/v4/proxy.h
@mingxwa mingxwa merged commit 70f13ad into ngcpp:main May 9, 2026
16 checks passed
@mingxwa mingxwa deleted the user/mingxwa/clean-up-diagnostics branch May 9, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants