KeyWorksRW / wxUiEditor

RAD tool used to create and maintain wxWidgets UI elements.
Apache License 2.0
63 stars 7 forks source link

Fix Clang format problems with generated headers that have user supplied closing brace #1332

Closed Randalphwa closed 9 months ago

Randalphwa commented 9 months ago

This PR changes how a new header file is written if the user sets the no_closing_brace property to true. The new file will no longer have a // clang_format on line within the comment block, placing it after the block instead. In addition, a default }; will be added at the end of the file.

Closes #1201

Note that this PR has no impact on existing generated code, other than allowing the user to move the // clang_format on line so that it is no longer within the comment block. Theoretically, we could write a special case to look for the old style, but I doubt there are enough people using this feature to make it worthwhile.