summaryrefslogtreecommitdiffstats
path: root/src/Generating/PieceStructuresGen.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-16Removed all Printf-family functions from StringUtils.Mattes D1-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.
2021-03-18shared_ptr -> unique_ptr in generatorsTiger Wang1-11/+6
2020-10-12Remove debug output on PieceStructuresGen.cpp (#4984)12xx121-21/+19
- Remove debug output on PieceStructuresGen.cpp - Removed Stopwatch import Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-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
2020-04-16Using Super.Mattes D1-1/+2
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-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.
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-2/+0
Add check for number of empty lines between functions and fix the corresponding failures
2018-01-03Add the fmt library (#4065)peterbell101-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.
2017-05-04Gen: Moved PiecePool into a separate file.Mattes D1-56/+109
Also rewritten the PieceGenerator to use std::unique_ptr.
2015-12-17PieceStructures generator: Fixed wrong merge conflict resolution.Mattes D1-1/+1
Also improved reporting messages. Ref.: http://forum.mc-server.org/showthread.php?tid=2256
2015-12-01Added PieceStructures generator.Mattes D1-0/+129