Landing: be5ddcfb4174

Project / Subsystem

gcc / testsuite

Date

2026-04-29

Author

Jakub Jelinek

Commit

be5ddcfb41747926851964dcfda161725c557e3f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
commit_hash
be5ddcfb41747926851964dcfda161725c557e3f
source_type
github
headline
testsuite: Diagnose non-uglified names even in requires exprs
tldr
The GCC testsuite now checks for non-uglified names in requires expressions, lambda parameters, and captures, enhancing code obfuscation capabilities.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • plugin
  • uglification
  • C++
discussion_id_link
bugzilla_pr
date
2026-04-29T00:00:00.000Z

This commit extends the GCC testsuite and the uglification plugin to diagnose non-uglified names within requires expressions, lambda parameters and captures. The plugin now walks REQUIRES_EXPR_PARMS of REQUIRES_EXPR and also traverses TEMPLATE_PARMS_CONSTRAINTS and DECL_INITIAL of CONCEPT_DECL to identify non-uglified names. New test cases are added to verify that the plugin correctly identifies non-uglified names in these contexts. This change improves the effectiveness of code obfuscation by ensuring that names are consistently uglified throughout the code.