10 Commits

Author SHA1 Message Date
Stephen E. Baker
af7056e0c9 Enforce bugprone-assignment-in-if-condition 2025-05-11 17:58:08 -04:00
Stephen E. Baker
2759362606 Eliminate odd int to pointer conversion for sound indexes in lua 2025-05-10 23:43:31 -04:00
Stephen E. Baker
920cd3bb7e Eliminate endl usage
Reenable -performance-avoid-endl clang-tidy check.
2025-05-10 22:57:03 -04:00
Stephen E. Baker
e3c7ea7ce9 Bump clang-format and clang-tidy for linux pipeline
Use version 20 which is the current latest.

Fix bug clang-tidy found if reading the save file fails.
Format code per clang-format-20

I surpressed all new warnings in clang-tidy but we will probably want to
enable and fix some of them.

run-clang-tidy is used instead of calling clang-tidy directly in order
to automatically pull all source files.
2025-05-10 21:14:56 -04:00
Stephen E. Baker
0a822322bc Add performance checks to clang-tidy
Fix all identified performance issues.
2020-01-11 14:40:06 -05:00
Stephen E. Baker
ef8f7ef1c4 Add override and throw-catch checks and fixes 2020-01-11 13:29:07 -05:00
Stephen E. Baker
f5d0ca22f9 Add more clang-tidy checks
* Enables bugprone- checks.
* Enables a couple more modernize checks.

Most of the changes are avoiding implicit narrowing conversions.
There was a bug caught and fixed fixed with the string comparison in iso_fs.

bugprone-suspicious-enum-usage was disabled due to a large number of
false positives with wxWidgets.
2020-01-11 12:40:46 -05:00
Stephen E. Baker
08fb05d30c Add check for nullptr use
Replace 0/NULL with nullptr
2020-01-08 21:01:58 -05:00
Stephen E. Baker
01f3e93600 Set HeaderFilterRegex for clang-tidy
Limit to header files in our source.
2020-01-08 11:22:08 -05:00
Stephen E. Baker
afcd6eae24 Add clang-tidy definition 2019-12-28 20:33:06 -05:00