Switch remaining main() functions and copyrite.c to C++.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 29 Jun 2013 04:59:18 +0000 (07:59 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 3 Jul 2013 17:51:16 +0000 (19:51 +0200)
commitba223d53491570a87820027ead0f4f726dfbab6c
treef3ee288a99af3c8eb6604995690913fd418b403b
parentff0af6b2523f0f9ed0b4d4cfca6588d312c9c641
Switch remaining main() functions and copyrite.c to C++.

Required to be able to use gmx::ProgramInfo from these (done in
separate commit), and simplifies the compilation of mdrun as well.

Resolved compiler/cppcheck/clang warnings that were present in these
files.  Some include file clean-up, motivated by the fact that force.h
causes warnings when included in C++ files, and fixing that requires
fixing #1294, where the solution is not yet decided on.

Change-Id: I69f4200c1c1783340d88381a6aca82151d1230cb
17 files changed:
src/gromacs/gmxana/gmx_pme_error.cpp [moved from src/gromacs/gmxana/gmx_pme_error.c with 96% similarity]
src/gromacs/gmxlib/copyrite.cpp [moved from src/gromacs/gmxlib/copyrite.c with 99% similarity]
src/gromacs/gmxlib/cuda_tools/copyrite_gpu.cu
src/gromacs/gmxpreprocess/topdirs.c
src/gromacs/legacyheaders/grompp.h
src/gromacs/legacyheaders/mdrun.h
src/gromacs/legacyheaders/update.h
src/gromacs/mdlib/shellfc.c
src/gromacs/utility/gitversion.h
src/ngmx/CMakeLists.txt
src/ngmx/g_xrama.cpp [moved from src/ngmx/g_xrama.c with 98% similarity]
src/ngmx/ngmx.cpp [moved from src/ngmx/ngmx.c with 99% similarity]
src/programs/main.cpp [deleted file]
src/programs/mdrun/CMakeLists.txt
src/programs/mdrun/mdrun.cpp [moved from src/programs/mdrun/mdrun.c with 98% similarity]
src/programs/mdrun/runner.c
tests/CppCheck.cmake