minetest/src
Loïc Blot d88c4e1822
LINT: add clang-tidy step (#6295)
* Implement new travis clang-tidy build step

* This step enable some rules and enforce one rule as error
* This permits to have some C++ quality rules based on clang & clang contributor guidelines

* Fix clang-tidy reported problems on push_back -> emplace_back
2018-04-01 23:57:55 +02:00
..
client Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
database Move files to subdirectories (#6599) 2017-11-08 23:56:20 +01:00
gui LINT: add clang-tidy step (#6295) 2018-04-01 23:57:55 +02:00
irrlicht_changes Forget to fix non freetype build in StaticText 2018-01-12 08:36:38 +01:00
mapgen Mgcarpathian: Mapgen loop optimisations. fabs() -> std::fabs() 2018-03-29 21:08:42 +01:00
network Add reasons to on_dieplayer and on_hpchange 2018-03-28 16:05:18 +01:00
script LINT: add clang-tidy step (#6295) 2018-04-01 23:57:55 +02:00
server Print the mod loading time (#7137) 2018-03-24 00:31:33 +01:00
threading Thread: fix a crash on Windows due to data race condition on Thread::m_start_finished_mutex (#6515) 2017-10-10 12:27:08 +02:00
unittest Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
util Revert "Add an active object step time budget #6721" 2018-01-12 23:47:39 -08:00
CMakeLists.txt macOS: don't require X11 libraries during compilation (#7149) 2018-03-26 17:43:59 +02:00
activeobject.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
ban.cpp Add unittests on ActiveObject and BanManager class (#6866) 2018-01-01 18:48:52 +01:00
ban.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
camera.cpp Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
camera.h Zoom: Set zoom FOV per-player using a player object property 2017-12-04 02:25:10 +00:00
chat.cpp GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI class 2018-01-05 20:59:30 +01:00
chat.h GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI class 2018-01-05 20:59:30 +01:00
chat_interface.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
chatmessage.h Travis: Update clang from 4.0 to 5.0 (#6467) 2017-10-09 11:32:06 +02:00
client.cpp Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
client.h Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
clientenvironment.cpp Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
clientenvironment.h Add formspec theming using prepended strings 2018-03-28 16:04:41 +01:00
clientiface.cpp Drop less performant Server::setBlockNotSent for ClientInterface::markBlockposAsNotSent 2018-03-09 23:27:26 +01:00
clientiface.h Drop less performant Server::setBlockNotSent for ClientInterface::markBlockposAsNotSent 2018-03-09 23:27:26 +01:00
clientmap.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
clientmap.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
clientmedia.cpp clientmap, clientmedia: code modernization 2017-08-17 08:26:52 +02:00
clientmedia.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
clientobject.cpp clientobject, clouds, collision, clientsimpleobject: code modernization (#6260) 2017-08-17 20:23:54 +02:00
clientobject.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
clientsimpleobject.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
cloudparams.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
clouds.cpp Modernize code: very last fixes (#6290) 2017-08-20 19:37:29 +02:00
clouds.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
cmake_config.h.in C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
cmake_config_githash.h.in C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
collision.cpp CollisionMoveSimple: Collide with 'ignore' nodes 2018-02-26 17:21:45 +00:00
collision.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
config.h Update version correctly again (#6462) 2017-09-26 20:30:42 +02:00
constants.h Customizeable max breath for players (#6411) 2017-09-15 12:18:47 +02:00
content_cao.cpp Optional alpha channel support for entities 2018-03-29 14:53:12 +01:00
content_cao.h Disable fall damage when "immortal" group set (#6946) 2018-01-23 19:28:21 +01:00
content_cso.cpp Modernize src/c* src/d* and src/e* files (#6263) 2017-08-17 23:02:50 +02:00
content_cso.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
content_mapblock.cpp Update mesh collector and move it to a separate file (#6904) 2018-03-22 20:59:49 +01:00
content_mapblock.h Fix node-nodebox lighting difference in direct sunlight (#7061) 2018-03-17 10:10:16 +01:00
content_mapnode.cpp Modernize src/c* src/d* and src/e* files (#6263) 2017-08-17 23:02:50 +02:00
content_mapnode.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
content_nodemeta.cpp C++11 patchset 9: move hardcoded init parameters to class definitions (part 1) (#5984) 2017-06-16 11:25:52 +02:00
content_nodemeta.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
content_sao.cpp Optional alpha channel support for entities 2018-03-29 14:53:12 +01:00
content_sao.h ObjectRef: Add add_velocity() (#3208) 2018-03-31 14:50:17 +02:00
convert_json.cpp Update JsonCPP to 1.8.3 (#6466) 2017-09-26 20:30:14 +02:00
convert_json.h Update JsonCPP to 1.8.3 (#6466) 2017-09-26 20:30:14 +02:00
craftdef.cpp Don't try to craft a non-existent item 2017-10-16 10:13:45 +02:00
craftdef.h Modernize src/c* src/d* and src/e* files (#6263) 2017-08-17 23:02:50 +02:00
daynightratio.h Modernize src/c* src/d* and src/e* files (#6263) 2017-08-17 23:02:50 +02:00
debug.cpp Remove DSTACK support (#6346) 2017-08-30 08:09:41 +02:00
debug.h Remove DSTACK support (#6346) 2017-08-30 08:09:41 +02:00
defaultsettings.cpp Fix missing warningstream (or similar problem) (#7034) 2018-03-04 17:34:36 +01:00
defaultsettings.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
emerge.cpp Generate Notifier: Clear events once after all 'on generated' functions 2018-03-03 22:59:49 +00:00
emerge.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
environment.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
environment.h Revert "Add an active object step time budget #6721" 2018-01-12 23:47:39 -08:00
event.h event.h: Fix import GCC warning caused by ce87310 2018-03-31 14:33:54 +02:00
exceptions.h Modernize source code: last part (#6285) 2017-08-20 13:30:50 +02:00
face_position_cache.cpp Modernize various files 2017-08-18 07:44:52 +02:00
face_position_cache.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
filecache.cpp Modernize various files 2017-08-18 07:44:52 +02:00
filecache.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
filesys.cpp Load files from subfolders in texturepacks 2017-11-17 19:23:08 +00:00
filesys.h Load files from subfolders in texturepacks 2017-11-17 19:23:08 +00:00
fontengine.cpp Fix issue Minetest crash when custom font path is not exist 2017-11-08 16:14:00 +01:00
fontengine.h Modernize various files 2017-08-18 07:44:52 +02:00
game.cpp Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
game.h GameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, Game::infotext to GameUI class 2018-01-05 20:59:30 +01:00
gamedef.h Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
gameparams.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
genericobject.cpp Fix animation frame_speed and blend loosing precision due to incorrec… (#6357) 2017-09-01 11:15:12 +02:00
genericobject.h Fix animation frame_speed and blend loosing precision due to incorrec… (#6357) 2017-09-01 11:15:12 +02:00
gettext.cpp Modernize various files 2017-08-18 07:44:52 +02:00
gettext.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
gettime.h Modernize source code: last part (#6285) 2017-08-20 13:30:50 +02:00
guiscalingfilter.cpp Modernize various files 2017-08-18 07:44:52 +02:00
guiscalingfilter.h Modernize various files (part 2) 2017-08-18 08:07:59 +02:00
httpfetch.cpp httpfetch: Enable gzip support 2017-11-04 22:19:27 +01:00
httpfetch.h Travis: Update clang from 4.0 to 5.0 (#6467) 2017-10-09 11:32:06 +02:00
hud.cpp [CSM] Add basic HUD manipulation. (#6067) 2018-01-20 14:09:58 +01:00
hud.h [CSM] Add basic HUD manipulation. (#6067) 2018-01-20 14:09:58 +01:00
imagefilters.cpp Modernize various files (part 2) 2017-08-18 08:07:59 +02:00
imagefilters.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
inventory.cpp Remove DSTACK support (#6346) 2017-08-30 08:09:41 +02:00
inventory.h Allow overriding tool capabilities through itemstack metadata 2017-10-29 11:57:38 +00:00
inventorymanager.cpp Remove DSTACK support (#6346) 2017-08-30 08:09:41 +02:00
inventorymanager.h Modernize various files (part 2) 2017-08-18 08:07:59 +02:00
irr_aabb3d.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
irr_v2d.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
irr_v3d.h Fix rounding error in g/set_node caused by truncation to float 2017-12-26 21:55:08 +00:00
irrlichttypes.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
irrlichttypes_bloated.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
irrlichttypes_extrabloated.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
itemdef.cpp Bump minimal protocol version to 36 (#6319) 2017-08-29 19:26:55 +02:00
itemdef.h Overlays for wield and inventory images (#6107) 2017-08-25 13:20:53 +02:00
itemgroup.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
itemstackmetadata.cpp Allow overriding tool capabilities through itemstack metadata 2017-10-29 11:57:38 +00:00
itemstackmetadata.h Allow overriding tool capabilities through itemstack metadata 2017-10-29 11:57:38 +00:00
keycode.cpp keycode.cpp: use std::unordered_map for keypress cache 2017-09-21 18:47:42 +02:00
keycode.h Modernize various files (src/k*, src/l*) 2017-08-18 08:21:01 +02:00
light.cpp Update light decoding table size (#6696) 2017-12-12 19:29:55 +01:00
light.h Cleanup in flat lighting (#7051) 2018-03-03 10:58:45 +01:00
localplayer.cpp Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
localplayer.h Slippery: Simplify, make more efficient (#7086) 2018-03-03 10:59:14 +01:00
log.cpp Fix missing warningstream (or similar problem) (#7034) 2018-03-04 17:34:36 +01:00
log.h Fix missing warningstream (or similar problem) (#7034) 2018-03-04 17:34:36 +01:00
main.cpp Fix missing warningstream (or similar problem) (#7034) 2018-03-04 17:34:36 +01:00
map.cpp Variable name fix + structure creation unrolling in lighting code 2018-03-09 23:27:26 +01:00
map.h SAO limits: Allow SAOs to exist outside the set 'mapgen limit' 2018-02-26 17:21:45 +00:00
map_settings_manager.cpp Move files to subdirectories (#6599) 2017-11-08 23:56:20 +01:00
map_settings_manager.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
mapblock.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
mapblock.h Remove unused light updating code 2018-02-04 03:16:45 +00:00
mapblock_mesh.cpp Update mesh collector and move it to a separate file (#6904) 2018-03-22 20:59:49 +01:00
mapblock_mesh.h Update mesh collector and move it to a separate file (#6904) 2018-03-22 20:59:49 +01:00
mapnode.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
mapnode.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
mapsector.cpp ServerMap saving: cleanups (#6274) 2017-08-19 11:29:46 +02:00
mapsector.h ServerMap saving: cleanups (#6274) 2017-08-19 11:29:46 +02:00
mesh.cpp Use Irrlicht's mesh cache for animated meshes. 2017-12-04 22:29:11 -08:00
mesh.h Use Irrlicht's mesh cache for animated meshes. 2017-12-04 22:29:11 -08:00
mesh_generator_thread.cpp Remove DSTACK support (#6346) 2017-08-30 08:09:41 +02:00
mesh_generator_thread.h Code modernization: src/m* (part 3) 2017-08-19 09:29:55 +02:00
metadata.cpp Code modernization: src/n*, src/o* (#6280) 2017-08-19 11:30:46 +02:00
metadata.h Code modernization: src/m* (part 3) 2017-08-19 09:29:55 +02:00
minimap.cpp Code modernization: src/m* (part 3) 2017-08-19 09:29:55 +02:00
minimap.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
modchannels.cpp Add session_t typedef + remove unused functions (#6470) 2017-09-27 19:47:36 +02:00
modchannels.h Add session_t typedef + remove unused functions (#6470) 2017-09-27 19:47:36 +02:00
modifiedstate.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
mods.cpp Load dependencies and description from mod.conf 2018-03-28 22:14:16 +01:00
mods.h Load dependencies and description from mod.conf 2018-03-28 22:14:16 +01:00
nameidmapping.cpp Code modernization: src/n*, src/o* (#6280) 2017-08-19 11:30:46 +02:00
nameidmapping.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
nodedef.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
nodedef.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
nodemetadata.cpp Code modernization: src/n*, src/o* (#6280) 2017-08-19 11:30:46 +02:00
nodemetadata.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
nodetimer.cpp Code modernization: src/n*, src/o* (#6280) 2017-08-19 11:30:46 +02:00
nodetimer.h Code modernization: src/n*, src/o* (#6280) 2017-08-19 11:30:46 +02:00
noise.cpp Code modernization: src/n*, src/o* (#6280) 2017-08-19 11:30:46 +02:00
noise.h Code modernization: src/n*, src/o* (#6280) 2017-08-19 11:30:46 +02:00
objdef.cpp Fix Windows build, clean up included headers 2015-05-22 20:37:59 +02:00
objdef.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
object_properties.cpp Optional alpha channel support for entities 2018-03-29 14:53:12 +01:00
object_properties.h Optional alpha channel support for entities 2018-03-29 14:53:12 +01:00
particles.cpp Real global textures (#6105) 2017-10-15 09:34:14 +02:00
particles.h [CSM] Add functions to create particles and particlespawners. (#6072) 2018-01-20 23:31:53 +01:00
pathfinder.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
pathfinder.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
player.cpp Minimap: Add new HUD flag for minimap radar mode 2017-08-20 23:58:15 +01:00
player.h Add formspec theming using prepended strings 2018-03-28 16:04:41 +01:00
porting.cpp Replace deprecated WINAPI GetVersionInfoEx (#6496) 2017-10-07 15:13:13 +02:00
porting.h Modernize code: very last fixes (#6290) 2017-08-20 19:37:29 +02:00
porting_android.cpp Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
porting_android.h Android build fixes for c++11 2018-03-11 16:56:27 +01:00
profiler.cpp Travis: Update clang from 4.0 to 5.0 (#6467) 2017-10-09 11:32:06 +02:00
profiler.h Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
quicktune.cpp Use C++11 mutexes only (remove compat code) (#5922) 2017-06-06 16:29:28 +02:00
quicktune.h Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
quicktune_shortcutter.h Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
raycast.cpp Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
raycast.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
reflowscan.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
reflowscan.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
remoteplayer.cpp Update JsonCPP to 1.8.3 (#6466) 2017-09-26 20:30:14 +02:00
remoteplayer.h Cleanup: drop Server::hudGetHotbarImage() 2018-03-08 23:00:17 +01:00
rollback.cpp Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
rollback.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
rollback_interface.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
rollback_interface.h Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
serialization.cpp compressZlib: don't use a SharedBuffer but a raw u8 * pointer 2017-07-27 07:56:48 +02:00
serialization.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
server.cpp Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
server.h Client eventmanager refactor (#7179) 2018-03-30 18:32:52 +02:00
serverenvironment.cpp ServerEnvironment::loadDefaultMeta: Loading default meta is only possible for ServerEnv itself 2018-03-16 08:52:42 +01:00
serverenvironment.h ServerEnvironment::loadDefaultMeta: Loading default meta is only possible for ServerEnv itself 2018-03-16 08:52:42 +01:00
serverlist.cpp Update JsonCPP to 1.8.3 (#6466) 2017-09-26 20:30:14 +02:00
serverlist.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
serverobject.cpp Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
serverobject.h Add reasons to on_dieplayer and on_hpchange 2018-03-28 16:05:18 +01:00
settings.cpp Fix issue Minetest crash when custom font path is not exist 2017-11-08 16:14:00 +01:00
settings.h Fix issue Minetest crash when custom font path is not exist 2017-11-08 16:14:00 +01:00
settings_translation_file.cpp Rewrite rendering engine (#6253) 2017-10-31 19:27:10 +01:00
shader.cpp Modernize code: very last fixes (#6290) 2017-08-20 19:37:29 +02:00
shader.h Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282) 2017-08-19 14:25:35 +02:00
sky.cpp Modernize source code: last part (#6285) 2017-08-20 13:30:50 +02:00
sky.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
sound.h Cleanup sound manager class (#7158) 2018-03-24 15:45:25 +01:00
staticobject.cpp ServerEnvironment & StaticObject cleanups 2018-03-09 23:27:26 +01:00
staticobject.h ServerEnvironment & StaticObject cleanups 2018-03-09 23:27:26 +01:00
subgame.cpp Move files to subdirectories (#6599) 2017-11-08 23:56:20 +01:00
subgame.h Modernize source code: last part (#6285) 2017-08-20 13:30:50 +02:00
terminal_chat_console.cpp Modernize source code: last part (#6285) 2017-08-20 13:30:50 +02:00
terminal_chat_console.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
tileanimation.cpp Bump minimal protocol version to 36 (#6319) 2017-08-29 19:26:55 +02:00
tileanimation.h Bump minimal protocol version to 36 (#6319) 2017-08-29 19:26:55 +02:00
tool.cpp Tool.cpp/.h, lua_api/l_util.cpp: Tidy up code and remove dead code 2018-01-03 04:01:15 +00:00
tool.h Tool.cpp/.h, lua_api/l_util.cpp: Tidy up code and remove dead code 2018-01-03 04:01:15 +00:00
translation.cpp Add '@n' escape sequences and some documentation on translated strings. 2017-08-26 09:43:08 +02:00
translation.h Add clientside translations. 2017-08-24 17:54:10 +02:00
version.cpp Update version correctly again (#6462) 2017-09-26 20:30:42 +02:00
version.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
voxel.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
voxel.h VoxelArea: add_{x,y,z,p} must be static 2018-03-09 23:27:26 +01:00
voxelalgorithms.cpp Fix typo in lighting code since bcdb3d5 2018-03-10 09:37:43 +01:00
voxelalgorithms.h Remove unused light updating code 2018-02-04 03:16:45 +00:00
wieldmesh.cpp Update mesh collector and move it to a separate file (#6904) 2018-03-22 20:59:49 +01:00
wieldmesh.h Real global textures (#6105) 2017-10-15 09:34:14 +02:00