Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce scope for temporary variables.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 6 May 2022 08:17:57 +0000 (10:17 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 6 May 2022 08:32:07 +0000 (10:32 +0200)
commita493dab29fff80a4d222c18c3057c811b8b06d3f
tree77d4183e3d11cce733668aceec53213d9024d7f4
parent8f7ec2e4b08cd2b27aa34b2c9fec2af0ad79d53a
Reduce scope for temporary variables.

Use the init-statement to declare variables inside the if statement (sonar).
33 files changed:
examples/cpp/dag-scheduling/s4u-dag-scheduling.cpp
examples/cpp/trace-host-user-variables/s4u-trace-host-user-variables.cpp
examples/cpp/trace-masterworkers/s4u-trace-masterworkers.cpp
examples/smpi/ampi_test/ampi_test.cpp
examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp
src/instr/instr_config.cpp
src/kernel/lmm/bmf.cpp
src/kernel/resource/Model.cpp
src/kernel/resource/VirtualMachineImpl.cpp
src/kernel/routing/NetZoneImpl.cpp
src/mc/api/State.cpp
src/mc/inspect/mc_dwarf.cpp
src/mc/inspect/mc_unw_vmread.cpp
src/mc/mc_record.cpp
src/mc/remote/RemoteProcess.cpp
src/plugins/file_system/s4u_FileSystem.cpp
src/smpi/bindings/smpi_f77.cpp
src/smpi/bindings/smpi_f77_comm.cpp
src/smpi/include/smpi_keyvals.hpp
src/smpi/internals/instr_smpi.cpp
src/smpi/internals/smpi_global.cpp
src/smpi/internals/smpi_host.cpp
src/smpi/internals/smpi_utils.cpp
src/smpi/mpi/smpi_f2c.cpp
src/smpi/mpi/smpi_file.cpp
src/smpi/mpi/smpi_info.cpp
src/smpi/mpi/smpi_request.cpp
src/surf/network_ib.cpp
src/surf/network_ns3.cpp
src/surf/surf_interface.cpp
src/xbt/dynar.cpp
src/xbt/log.cpp
teshsuite/models/cloud-sharing/cloud-sharing.cpp