summaryrefslogtreecommitdiffstats
path: root/src/Generating/PieceStructuresGen.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removed all Printf-family functions from StringUtils.Mattes D2023-05-161-3/+3
| | | | | Replaced them with fmt::format calls, including changes to the format strings. Also changed the format strings to use FMT_STRING, so that the format is checked compile-time against the arguments. Also fixed code-style violations already present in the code.
* shared_ptr -> unique_ptr in generatorsTiger Wang2021-03-181-11/+6
|
* Remove debug output on PieceStructuresGen.cpp (#4984)12xx122020-10-121-21/+19
| | | | | | - Remove debug output on PieceStructuresGen.cpp - Removed Stopwatch import Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Using Super.Mattes D2020-04-161-1/+2
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-2/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Add the fmt library (#4065)peterbell102018-01-031-1/+1
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Gen: Moved PiecePool into a separate file.Mattes D2017-05-041-56/+109
| | | | Also rewritten the PieceGenerator to use std::unique_ptr.
* PieceStructures generator: Fixed wrong merge conflict resolution.Mattes D2015-12-171-1/+1
| | | | | Also improved reporting messages. Ref.: http://forum.mc-server.org/showthread.php?tid=2256
* Added PieceStructures generator.Mattes D2015-12-011-0/+129