Commit Graph

18 Commits

Author SHA1 Message Date
Binrui Dong 9fdb7ef59c Run IWYU
* Change _ctype.h and __locale to cctype and clocale

* Change _wctype.h to cwctype in game.cpp

* Change __functional_base to functional

* Remove libcxx internal headers

* Remove UNIX system headers

* Fix clang-tidy error with -nostdinc++
2021-02-06 00:18:41 -05:00
Ivan Zaitsev 6c4a9ebf6b Add RLE compression for json ser/deser of colony<item> (#46837)
* add RLE compression for json ser/deser of colony<item>

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-19 13:45:22 +03:00
Qrox 493f6d4e83 Display multi-line error messages with github action 2020-12-31 15:01:53 +08:00
KorGgenT 37222e361e Refactor spell_type to use a shape enum for spell aoe 2020-10-05 01:19:13 -04:00
Qrox ed8a24fe82 Add more translation deserialization unit test cases 2020-10-01 12:23:27 +08:00
Curtis Merrill fef97d9058 refactor push/pull effects to be more general (#44441)
* refactor push/pull effects to be more general

* take two passes to move fields
2020-09-30 13:33:36 +03:00
ZhilkinSerg 62f4df63d6 Merge pull request #44278 from Qrox/json-error-caret
Properly handle escape sequence and unicode sequence when generating json text style error message
2020-09-24 09:34:49 +03:00
Qrox d8cb67907f Fix incorrect stream position after translation text style check debug message, and incorrect rewind logic 2020-09-21 23:10:31 +08:00
Qrox fa1323434b Fix crash in StringLiteralIterator.cpp and suppress text style check in json_test.cpp 2020-09-20 14:44:27 +08:00
Qrox ac4082f530 Add unit test for json string reading, error/debugmsg when reading string, and debugmsg when reading translatable string 2020-09-20 10:07:51 +08:00
KorGgenT 89e3dcfea8 update avoid_serializing_default_values to use const std::string 2020-09-17 18:46:56 -04:00
KorGgenT 171b31ebb1 write tests for spell_type::serialize 2020-09-17 18:46:56 -04:00
Curtis Merrill e1277a9f38 don't write default values in json: implementation (#44059) 2020-09-08 18:20:12 -07:00
Fris0uman 98f32ab0a3 Replace some body_part with bodypart_id (#42677) 2020-08-16 16:16:05 +03:00
Kevin Granade c5ccf0c2c7 IWYU for tests (#42806) 2020-08-09 09:46:57 +03:00
Kevin Granade 6d1841ac67 Precompiled Catch2 header (#42453)
* Hoist catch.hpp include to the top of files

* Precompile the catch header in tests
2020-07-29 01:28:26 +03:00
John Bytheway e189957ff2 Run IWYU 20200408 (#39364)
* Helper script to run IWYU

* Run IWYU

* Update deprecated headers

* Run IWYU again

* Re-suppress cxxabi.h

This pragma got accidentally removed because it was deemed to be a
comment attached to a #include.

* Remove extra SDL header includes

* Fix ime.cpp headers

Some tweaks to help IWYU not break this file by messing with
platform-specific stuff not relevant on Linux.

* Update game.h

* Move new point.h includes inside #ifdef

* Re-add platform_win.h to mapsharing.cpp

* Apply suggestions from code review

Co-authored-by: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
2020-04-10 12:16:19 +03:00
John Bytheway 624b18306f Tests for STL container serialization 2019-09-01 14:33:26 -04:00