Use clang-tidy to clean up the codebase
Bug #1731034 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I found another cleanup tool: http://
I'll attach a script with instructions.
This is generating a lot or warnings, it's probably best if we run this one check at a time. Some of the checks also have a -fix option to fix stuff automatically.
Related branches
lp:~widelands-dev/widelands/clang-tidy
- Widelands Developers: Pending requested
-
Diff: 346 lines (+342/-0)1 file modifiedutils/run-clang-tidy.py (+342/-0)
lp:~widelands-dev/widelands/clang-tidy-round1
- SirVer: Approve
-
Diff: 748 lines (+83/-82)36 files modifiedsrc/ai/defaultai.cc (+1/-2)
src/economy/expedition_bootstrap.cc (+1/-1)
src/economy/flag.cc (+1/-1)
src/economy/portdock.cc (+4/-4)
src/economy/test/test_routing.cc (+1/-1)
src/editor/editorinteractive.cc (+6/-3)
src/game_io/game_interactive_player_packet.cc (+10/-8)
src/game_io/game_preload_packet.cc (+1/-1)
src/graphic/animation.cc (+1/-1)
src/graphic/font_handler1.cc (+1/-1)
src/graphic/image_io.cc (+1/-1)
src/graphic/text/bidi.cc (+3/-7)
src/graphic/text/rendered_text.cc (+2/-2)
src/graphic/text/rt_render.cc (+9/-9)
src/graphic/text/sdl_ttf_font.cc (+1/-1)
src/graphic/text/test/render_richtext.cc (+1/-1)
src/io/filesystem/zip_filesystem.cc (+2/-2)
src/logic/editor_game_base.cc (+0/-1)
src/logic/map_objects/immovable.cc (+1/-1)
src/logic/map_objects/tribes/production_program.cc (+2/-2)
src/logic/map_objects/tribes/trainingsite.cc (+4/-4)
src/logic/map_objects/tribes/worker_descr.cc (+1/-1)
src/network/gamehost.cc (+1/-1)
src/network/network_lan_promotion.cc (+1/-1)
src/scripting/lua_map.cc (+1/-1)
src/third_party/eris/eris.c (+1/-1)
src/third_party/eris/lauxlib.c (+2/-2)
src/third_party/eris/loslib.c (+1/-1)
src/third_party/eris/lstrlib.c (+1/-1)
src/third_party/eris/lua.c (+1/-1)
src/third_party/eris/lvm.c (+1/-1)
src/third_party/minizip/unzip.cc (+8/-8)
src/ui_basic/window.cc (+2/-2)
src/wui/attack_box.cc (+1/-1)
src/wui/chatoverlay.cc (+1/-1)
src/wui/plot_area.cc (+7/-5)
To post a comment you must log in.
That tool is written by some of the people in my office :).