Landing: 9baa2bec9e0e
Project / Subsystem
gcc / testsuite
Date
2026-04-29
Author
Jakub Jelinek
Commit
9baa2bec9e0ef6f8098216777c9ada1425617d43
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- testsuite
- patch_id
- —
- commit_hash
- 9baa2bec9e0ef6f8098216777c9ada1425617d43
- source_type
- github
- headline
- testsuite: Add C++ plugin to check for libstdc++ header uglification
- tldr
- A new GCC plugin checks for proper name uglification in libstdc++ headers, improving code obfuscation.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testsuite
- • plugin
- • libstdc++
- • uglification
- • obfuscation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-29T00:00:00.000Z
This commit introduces a new plugin to the GCC testsuite that checks for proper name uglification (obfuscation) in libstdc++ headers. The plugin identifies non-obfuscated function parameter names, automatic variable names, template arguments, and requires arguments, while making exceptions for names that appear as function/template names in the std namespace. A set of test cases is also added to verify the plugin’s functionality across different C++ standards. This change enhances code obfuscation.