OSDN Git Service

[Fix] 意図したフォールスルーに [[fallthrough]] 属性を使用する
authorHabu <habu1010+github@gmail.com>
Tue, 15 Nov 2022 12:17:07 +0000 (21:17 +0900)
committerHabu <habu1010+github@gmail.com>
Tue, 15 Nov 2022 12:17:07 +0000 (21:17 +0900)
commita16ff3d3968c7d3d4d480ff1783987b3b799387e
tree7730632ff0f32ece443fce68f56f641e8bfa3ea7
parentf2e951f1c41e91f2e392a99b4048f8063ae6aa97
[Fix] 意図したフォールスルーに [[fallthrough]] 属性を使用する

switch-case 文において意図したフォールスルーを行っている箇所について、コメントの代わ
りに C++17 から追加された [[fallthrough]] 属性を使用する。
また、もともとフォールスルーコメント不要な箇所についてはコメントを削除する。
20 files changed:
src/autopick/autopick-finder.cpp
src/core/asking-player.cpp
src/flavor/flavor-util.cpp
src/info-reader/general-parser.cpp
src/inventory/floor-item-getter.cpp
src/inventory/item-getter.cpp
src/knowledge/knowledge-features.cpp
src/main-win.cpp
src/melee/melee-switcher.cpp
src/monster-attack/monster-attack-switcher.cpp
src/player-info/class-ability-info.cpp
src/player/player-status.cpp
src/racial/class-racial-switcher.cpp
src/racial/racial-switcher.cpp
src/room/rooms-builder.cpp
src/spell-kind/blood-curse.cpp
src/spell-kind/spells-random.cpp
src/store/service-checker.cpp
src/target/target-setter.cpp
src/term/gameterm.cpp