Fix include guards in generated headers to use filename-based macros


The model-header.mustache and api-header.mustache templates were using
{{classname}}_H for include guards. When a model or api name is a
reserved word, classname may have an escaping prefix (e.g. r_signals)
while the actual file is signals.h, making the guard inconsistent with
the filename.

Replace with
{{#lambda.uppercase}}{{{classFilename}}}{{/lambda.uppercase}}_H
so that the guard is always derived from the actual filename on disk
and make it uppercase (e.g. SIGNALS_H for signals.h).

Task-number: QTBUG-145708
Pick-to: 6.11
Change-Id: Iaab3c633fe5c0bbc0158eeb9f6a592b2f97239bc
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commitc954beb124b771c621ffeb770617975d2569b3db
parent2d0ed3ad61ae2b680128ab7351477446c73ed701
authorRym Bouabid <rym.bouabid@qt.io>
committerRym Bouabid <rym.bouabid@qt.io>
commit timeTue, 28 Apr 2026 07:52:14 +0000