Vendor plf_colony/plf_list verbatim under src/third-party/plf/

- Add upstream plf_colony v5.10 and plf_list v1.60 verbatim
- Add upstream zLib LICENSE
- Replace src/colony.h with thin cata::colony alias wrapper
- Replace src/list.h with thin cata::list alias wrapper
- Drop colony|list path from .clang-tidy header exclude regex
- Suppress Win32 test-exe abort dialog via _set_abort_behavior
This commit is contained in:
dumb-kevin
2026-05-15 21:23:57 +04:00
parent eecfa9ad1f
commit 661b45d89c
9 changed files with 7548 additions and 5985 deletions
-1
View File
@@ -140,7 +140,6 @@ Checks: [
WarningsAsErrors: '*'
HeaderFilterRegex: '(src|test|tools).*'
ExcludeHeaderFilterRegex: '.*src/(colony|list)\.h$'
FormatStyle: none
CheckOptions:
- key: cata-large-inline-function.MaxStatements
+4 -3515
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -5,6 +5,7 @@
#include <cstddef>
#include <functional>
#include <list>
#include <memory>
#include "colony.h"
#include "coords_fwd.h"
+4 -2468
View File
File diff suppressed because it is too large Load Diff
+19
View File
@@ -0,0 +1,19 @@
zlib License
(C) 2019 mattreecebentley
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
+4082
View File
File diff suppressed because it is too large Load Diff
+3431
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -42,7 +42,6 @@
#include "item_group.h"
#include "item_location.h"
#include "itype.h"
#include "list.h"
#include "map.h"
#include "map_helpers.h"
#include "mapdata.h"
+7
View File
@@ -325,6 +325,13 @@ TEST_CASE( "noop_test", "[.]" )
// NOLINTNEXTLINE(bugprone-exception-escape): test runner intentionally lets exceptions propagate
int main( int argc, const char *argv[] )
{
#ifdef _WIN32
// Suppress the "Microsoft Visual C++ Runtime Library" abort dialog so that
// a raw assert() in any third-party header (e.g. plf colony/list, flatbuffers)
// cannot hang headless CI test runs. The Cataclysm test vcxproj does not
// define NDEBUG for Release, so asserts are live in CI binaries.
_set_abort_behavior( 0, _CALL_REPORTFAULT | _WRITE_ABORT_MSG );
#endif
cata::init_allocator();
#if defined(_MSC_VER)
bool supports_color = _isatty( _fileno( stdout ) );