1
0
Fork 0
cuberite-2a/src
peterbell10 13144a08e4
Enable some more clang-tidy linter checks (#4738)
* 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-05-14 22:15:35 +00:00
..
Bindings Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
BlockEntities Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Blocks Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Entities Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Generating Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
HTTP Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Items Update submodules (#4727) 2020-05-09 15:51:15 +01:00
Mobs Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Noise Enable C++17 in build 2020-05-09 20:37:16 +01:00
OSSupport Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Protocol Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Resources WebAdmin improvements (#4433) 2019-12-28 02:15:12 +02:00
Simulator Cleanup some workarounds and warnings (#4735) 2020-05-10 16:16:49 +00:00
UI Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
WorldStorage Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
mbedTLS++ Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
AllocationPool.h Cleanup unneeded globals (#4736) 2020-05-10 16:16:38 +00:00
BiomeDef.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
BiomeDef.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
BlockArea.cpp Enable C++17 in build 2020-05-09 20:37:16 +01:00
BlockArea.h Manage block entity lifetime with unique_ptr (#4080) 2020-04-03 23:23:38 +02:00
BlockInServerPluginInterface.h Refactored block-to-pickup conversion. (#4417) 2019-10-16 10:06:34 +02:00
BlockInfo.cpp Change stained clay hardness value 2020-04-10 13:07:16 +00:00
BlockInfo.h Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) 2020-04-03 08:57:01 +02:00
BlockState.cpp Add ProtocolBlockTypePalette (#4391) 2019-09-22 22:57:54 +02:00
BlockState.h Add ProtocolBlockTypePalette (#4391) 2019-09-22 22:57:54 +02:00
BlockTracer.h Use Vector3 for cLineBlockTracer and cBlockTracer (#4715) 2020-05-08 10:04:07 +01:00
BlockType.cpp Cleanup some workarounds and warnings (#4735) 2020-05-10 16:16:49 +00:00
BlockType.h Re-implement repeater locking 2020-04-18 16:51:29 +01:00
BlockTypePalette.cpp Update submodules (#4727) 2020-05-09 15:51:15 +01:00
BlockTypePalette.h BlockTypePalette: Load from TSV or original reports' JSON. 2019-12-28 22:43:35 +01:00
BlockTypeRegistry.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
BlockTypeRegistry.h Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
BoundingBox.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
BoundingBox.h cBoundingBox: Fix tolua warning (#4361) 2019-08-08 19:49:00 +01:00
BrewingRecipes.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
BrewingRecipes.h Minor cBrewingRecipes cleanup (#3731) 2017-05-28 20:08:23 +02:00
Broadcaster.cpp Improve entity position updates (#4701) 2020-05-04 08:10:47 +00:00
BuildInfo.h.cmake Added abilty to set build info 2014-09-10 16:07:00 +01:00
ByteBuffer.cpp Fix building with clang 8.0 (#4346) 2019-08-11 10:39:43 +01:00
ByteBuffer.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
CMakeLists.txt Cleanup some workarounds and warnings (#4735) 2020-05-10 16:16:49 +00:00
ChatColor.cpp Removed extended ASCII, and added a check against it. (#4642) 2020-04-12 09:24:30 +02:00
ChatColor.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CheckBasicStyle.lua Removed extended ASCII, and added a check against it. (#4642) 2020-04-12 09:24:30 +02:00
Chunk.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Chunk.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ChunkData.cpp Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) 2020-04-03 08:57:01 +02:00
ChunkData.h cChunk and cChunkData: Use vectors for block get and set functions (#4172) 2018-02-04 22:15:31 +00:00
ChunkDataCallback.h Limit the size of cListAllocationPool's free list 2019-02-20 09:07:44 +00:00
ChunkDef.h Vector3 in Handlers (#4680) 2020-04-21 22:19:22 +02:00
ChunkGeneratorThread.cpp ChunkGenerator: Changed to use cChunkCoords. 2019-09-08 20:21:49 +02:00
ChunkGeneratorThread.h Separated chunk generator from world / plugin interfaces. 2019-09-06 16:12:33 +02:00
ChunkMap.cpp Add cEntity::GetBoundingBox, and use where appropriate. (#4711) 2020-05-03 21:04:33 +01:00
ChunkMap.h More Vector3 in cBlockHandler (#4644) 2020-04-17 10:36:37 +01:00
ChunkSender.cpp Using Super. 2020-04-16 20:07:48 +00:00
ChunkSender.h Using Super. 2020-04-16 20:07:48 +00:00
ChunkStay.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkStay.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ClientHandle.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
ClientHandle.h Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Color.cpp Leather Armor can now be dyed. 2015-07-15 14:05:36 -06:00
Color.h Lua plugin cColor (#3833) 2017-07-12 12:30:43 +02:00
CommandOutput.cpp Update fmt to 6.2.0 (#4718) 2020-05-05 22:52:14 +01:00
CommandOutput.h Update fmt to 6.2.0 (#4718) 2020-05-05 22:52:14 +01:00
CompositeChat.cpp Update submodules (#4727) 2020-05-09 15:51:15 +01:00
CompositeChat.h Add two missing include guards 2020-05-04 13:58:43 +01:00
CraftingRecipes.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
CraftingRecipes.h Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) 2020-04-03 08:57:01 +02:00
Cuberite.vcxproj.user Added working directory for x64 builds (#4037) 2017-09-20 19:01:46 +01:00
Cuboid.cpp Added more clamping operations to cCuboid. 2019-08-10 12:25:06 +02:00
Cuboid.h Added a basic PalettedBlockArea implementation (#4377) 2019-08-28 08:29:02 +02:00
DeadlockDetect.cpp Using Super. 2020-04-16 20:07:48 +00:00
DeadlockDetect.h Cleanup unneeded globals (#4736) 2020-05-10 16:16:38 +00:00
Defines.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Defines.h Extended Vector3 (#4666) 2020-04-18 11:44:35 +02:00
EffectID.h Update tolua and export EffectID 2017-06-29 18:58:48 +02:00
Enchantments.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Enchantments.h Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Endianness.h Fixes compilation failures on MacOSX 10.10 2015-07-09 11:15:37 -06:00
FastRandom.cpp Cleanup some workarounds and warnings (#4735) 2020-05-10 16:16:49 +00:00
FastRandom.h Tentative fix for player-limit race condition (#3862) 2017-07-28 17:54:40 +01:00
ForEachChunkProvider.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
FunctionRef.h Stop cFunctionRef constructor from disabling default copy constructor. (#4173) 2018-07-24 22:30:05 +01:00
FurnaceRecipe.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
FurnaceRecipe.h Smelting Gives Experience (#4094) 2018-04-11 07:46:11 +01:00
Globals.cpp
Globals.h Cleanup unneeded globals (#4736) 2020-05-10 16:16:38 +00:00
IniFile.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
IniFile.h Using Super. 2020-04-16 20:07:48 +00:00
Inventory.cpp Replace buckets to the selected hotbar slot, rather than the first available. (#4580) 2020-04-02 12:42:15 +00:00
Inventory.h Replace buckets to the selected hotbar slot, rather than the first available. (#4580) 2020-04-02 12:42:15 +00:00
Item.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Item.h Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) 2020-04-03 08:57:01 +02:00
ItemGrid.cpp cItemGrid: Allocate storage lazily (#4083) 2018-01-21 18:45:13 +00:00
ItemGrid.h cItemGrid: Allocate storage lazily (#4083) 2018-01-21 18:45:13 +00:00
JsonUtils.cpp Update submodules (#4727) 2020-05-09 15:51:15 +01:00
JsonUtils.h Update submodules (#4727) 2020-05-09 15:51:15 +01:00
LazyArray.h Cleanup unneeded globals (#4736) 2020-05-10 16:16:38 +00:00
LightingThread.cpp Using Super. 2020-04-16 20:07:48 +00:00
LightingThread.h Using Super. 2020-04-16 20:07:48 +00:00
LineBlockTracer.cpp Use Vector3 for cLineBlockTracer and cBlockTracer (#4715) 2020-05-08 10:04:07 +01:00
LineBlockTracer.h Use Vector3 for cLineBlockTracer and cBlockTracer (#4715) 2020-05-08 10:04:07 +01:00
LinearInterpolation.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LinearInterpolation.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
LinearUpscale.h Fixed RasPi builds of unit tests. 2016-08-04 20:47:53 +02:00
Logger.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Logger.h Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
LoggerListeners.cpp Android build cleanup (#4734) 2020-05-10 16:18:28 +00:00
LoggerListeners.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
LoggerSimple.h Update fmt to 6.2.0 (#4718) 2020-05-05 22:52:14 +01:00
Map.cpp Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) 2020-04-03 08:57:01 +02:00
Map.h Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) 2020-04-03 08:57:01 +02:00
MapManager.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
MapManager.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Matrix4.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MemorySettingsRepository.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
MemorySettingsRepository.h Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
MobCensus.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
MobCensus.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MobFamilyCollecter.cpp Removed double includes (#3885) 2017-08-02 19:57:20 +01:00
MobFamilyCollecter.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MobProximityCounter.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
MobProximityCounter.h Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
MobSpawner.cpp Implement wither skeletons (#4563) 2020-04-04 13:44:17 +02:00
MobSpawner.h Moved growing from cWorld / cChunk to cBlockHandler descendants. 2019-10-28 10:45:43 +01:00
MonsterConfig.cpp Tweak attack ranges 2020-04-02 09:30:50 +02:00
MonsterConfig.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
NetherPortalScanner.cpp Correct world access in NetherPortalScanner 2020-04-19 21:43:14 +01:00
NetherPortalScanner.h MoveToWorld must always be provided a world 2020-04-18 19:51:30 +01:00
OpaqueWorld.h Broadcast refactor (#4264) 2018-07-24 22:30:49 +01:00
OverridesSettingsRepository.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
OverridesSettingsRepository.h Clang 5.0 fixes 2017-05-21 12:19:06 +02:00
PalettedBlockArea.cpp BlockTypePalette: Refactored for usage in both directions. 2019-12-28 22:43:35 +01:00
PalettedBlockArea.h Added a basic PalettedBlockArea implementation (#4377) 2019-08-28 08:29:02 +02:00
ProbabDistrib.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
ProbabDistrib.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
RCONServer.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
RCONServer.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
RankManager.cpp Update submodules (#4727) 2020-05-09 15:51:15 +01:00
RankManager.h Remove cRankManager migration code (#4714) 2020-05-05 21:20:07 +03:00
Root.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Root.h Pulled the BlockID and BlockInfo headers from Globals.h. (#4591) 2020-04-03 08:57:01 +02:00
Scoreboard.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Scoreboard.h Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Server.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Server.h Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
SetChunkData.cpp Manage block entity lifetime with unique_ptr (#4080) 2020-04-03 23:23:38 +02:00
SetChunkData.h Manage block entity lifetime with unique_ptr (#4080) 2020-04-03 23:23:38 +02:00
SettingsRepositoryInterface.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SpawnPrepare.cpp Separated chunk generator from world / plugin interfaces. 2019-09-06 16:12:33 +02:00
SpawnPrepare.h Potential spawn prepare fix (#3924) 2017-08-22 14:34:43 +02:00
Statistics.cpp Cleanup some workarounds and warnings (#4735) 2020-05-10 16:16:49 +00:00
Statistics.h CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Stopwatch.h BlockTypePalette: Load from TSV or original reports' JSON. 2019-12-28 22:43:35 +01:00
StringCompression.cpp Fixed type-casting-related warnings. 2016-08-24 22:26:53 +02:00
StringCompression.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
StringUtils.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
StringUtils.h Update fmt to 6.2.0 (#4718) 2020-05-05 22:52:14 +01:00
UUID.cpp Make offline UUIDs consistent with vanilla. (#4178) 2018-07-20 00:30:09 +01:00
UUID.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Vector3.h Cleanup some workarounds and warnings (#4735) 2020-05-10 16:16:49 +00:00
VoronoiMap.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
VoronoiMap.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
WebAdmin.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
WebAdmin.h Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
World.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
World.h Improve entity position updates (#4701) 2020-05-04 08:10:47 +00:00
XMLParser.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00
fmt.h Update fmt to 6.2.0 (#4718) 2020-05-05 22:52:14 +01:00
main.cpp Android build cleanup (#4734) 2020-05-10 16:18:28 +00:00