- Replace src/third-party/plf/{colony,list}.h with upstream verbatim
- Add cata:: index<->iterator free helpers (plf removed members)
- Rename plf-facing get_iterator_from_pointer to get_iterator
- Switch deallocating clear() calls to reset() in map and item_wakeup
- Drop const from local map_stack in pickup autopickup
- Migrate colony_test and list_test for reshape, splice, ADL friends
- Add IWYU mapping for plf::void_cast in list.h and colony.h
* Convert integer parsing test to use normal TEST_CASEs
* Rename test name too similar to another
* Test to enforce normalized test names
* Normalize TEST_CASE names (scripted)
Use the new clang-tidy check to expunge all the static declarations in
headers. Sometimes the 'static' can be simply be removed. Other times
it is replaced by inline.
Catch2 provides a customization point for converting our types to
strings by specializing the StringMaker template.
We have some specializations in stringmaker.h, but this feature was only
working intermittently. I finally figured out that was due to an ODR
violation. The test files that didn't include stringmaker.h were
compiling a different specialization than the ones that did.
Re-jig the test includes so that any file including catch.hpp also
includes stringmaker.h, thereby ensuring that the custom
specializations are used everywhere and there is no ODR violation.
I achieved this by adding a new cata_catch.h header and making all
existing headers include catch.hpp via the new header.
* Enable clang-tidy readability-isolate-declaration
Enable this clang-tidy check and apply the changes it suggests.
Perform some minor refactoring on the result to move some declarations
to first use.
* Refactor some point code
These changes were suggested by clang-tidy as a result of the earlier
tweaks to isolate declarations.
* 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++
* Enable bugprone-use-after-move
Enable this clang-tidy check and deal with associated warnings.
Mostly these were suppressions for things in the tests that are
specifically testing move constructor semantics, but one case was a
genuine latent bug.
* Fix mismatched declaration name
This error seems to have crept into master.
* Add IWYU pragma: keep
* Run IWYU and astyle
* Run IWYU a second time
* Prevent #include <cxxabi.h>
Unclear why IWYU thinks this is needed. It isn't, and it causes
problems on Visual Studio.
- colony basics (simple insertion/erasure/iterator testing)
- insert and erase
- range erase
- sort
- insertion methods
- perfect forwarding
- emplace
- group size and capacity
- splice
Delete `group_size_sum()` from colony as it is only needed for debugging