Add clang-tidy check for overflow in constructing energy quantity from int #73616
Annotations
10 errors and 1 warning
run clang-tidy:
src/magic_spell_effect.cpp#L1149
constructing a energy quantity from 'const int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/magic.cpp#L2191
constructing a energy quantity from 'int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/item.cpp#L10643
constructing a energy quantity from 'const int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/item.cpp#L10788
constructing a energy quantity from 'int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/item.cpp#L10820
constructing a energy quantity from 'int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/item.cpp#L10848
constructing a energy quantity from 'int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/vehicle.cpp#L4846
constructing a energy quantity from 'int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/item_contents.cpp#L1233
constructing a energy quantity from 'int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/monster.cpp#L2904
constructing a energy quantity from 'const int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
run clang-tidy:
src/explosion.cpp#L754
constructing a energy quantity from 'int' potentially overflows inside 'from_kilojoule' in multiplying with conversion factor [cata-unit-overflow,-warnings-as-errors]
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading