10 Commits

Author SHA1 Message Date
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
de7f8bb6d9 Include what you use
Applied IWYU recommendations (mostly).

I deviated on libraries, it always wanted me to include the inner headers
for SDL, ffmpeg, etc. but the definitions were normally expected to be
exported by a top level header. wxWidgets was particularly problematic
since it wanted me to use the gtk specific includes instead of the
generic ones.

I do not intend to add include-what-you-use to the CI/CD pipelines at
this time but some pragmas were added to the code to make it report
somewhat cleaner.
2025-05-07 20:10:00 -04:00
Toby Lane
e0baf02417 Codespell changes 2023-11-14 14:12:24 +00:00
Alberth289346
073ec51da9 Add cli function for decoding RNC files. (#2191)
Co-authored-by: Alberth289346 <alberth289346@gmail.com>
Co-authored-by: Stephen E. Baker <baker.stephen.e@gmail.com>
2022-07-03 16:40:15 -04:00
Toby Lane
ce3b418d16 Update whereami 2022-04-27 17:38:19 +01:00
yangfl
84410a86e1 Search more locations for interpreter
Currently Corsix-TH only uses hardcoded CORSIX_TH_INTERPRETER_PATH if no
--interpreter option passed. Search more locations (including the working
directory and the program directory where corsix-th exists) for
CORSIX_TH_INTERPRETER_NAME (i.e. CorsixTH.lua).

Partially address #1569 so the working directory does not have to be the
program directory.
2021-07-11 12:22:44 +08:00
Stephen E. Baker
ec0f91f686 Use earlier cmake syntax
add_library and add_executable require a source argument before CMake
3.11
2020-12-28 16:58:54 -05:00
Stephen E. Baker
1bd26ae51c Fix #1627 by using static linking for libRnc 2020-06-01 20:27:00 -04:00
Stephen E. Baker
b11a728217 Use C++ 14 for RncLib 2020-01-26 11:50:52 -05:00
Stephen E. Baker
365af5035d Convert common source into libraries 2020-01-20 14:11:30 -05:00