PR #3590 has demonstrated the possibility of using headers to offload repetitive code like pragma start/end incantations we use to quiesce certain warnings (like when compilers both require all pre-known switch/case possibilities to be covered including a default, and that it would never be visited for an enum with all values listed explicitly).
This issue is a relatively low-hanging fruit about identifying pragma combos that are frequently used, and replacing such instances with header files to begin and end a block by a couple of dedicated include files per combo (not sure "header files" would be the right term if we #include them many times in the middle of C source code). This would significantly shorten actual codebase in some files and make it more readable and maintainable.
Kudos to @user01010111 for being the first to try this idea in practice!
PR #3590 has demonstrated the possibility of using headers to offload repetitive code like pragma start/end incantations we use to quiesce certain warnings (like when compilers both require all pre-known
switch/casepossibilities to be covered including adefault, and that it would never be visited for an enum with all values listed explicitly).This issue is a relatively low-hanging fruit about identifying pragma combos that are frequently used, and replacing such instances with header files to begin and end a block by a couple of dedicated include files per combo (not sure "header files" would be the right term if we
#includethem many times in the middle of C source code). This would significantly shorten actual codebase in some files and make it more readable and maintainable.Kudos to @user01010111 for being the first to try this idea in practice!