Enable clang tidy/warnings for tests
commit5a130006c2de2b194a61afbeca8f4b955c2bf622
authorRoland Schulz <roland.schulz@intel.com>
Wed, 18 Jul 2018 01:39:01 +0000 (17 18:39 -0700)
committerMark Abraham <mark.j.abraham@gmail.com>
Sat, 18 Aug 2018 00:07:38 +0000 (18 02:07 +0200)
tree68107b3ee18cc4928ea25f917c2688e278843dec
parent5de3b1b1f98e9da5d8d5c47f7f8026e01a772791
Enable clang tidy/warnings for tests

Also move check configuration into .clang-tidy file to allow
running clang-tidy seperately from the build to apply automatic
fixes.

Also relaxes some scalar tests. Commit b9057925955f changed contants
and relaxed SIMD tests without also relaxing scalar tests.

Change-Id: Ia895e219502b665db7ca0effaa03af3d3d380256
82 files changed:
docs/dev-manual/tools.rst
src/.clang-tidy
src/CMakeLists.txt
src/external/.clang-tidy [new file with mode: 0644]
src/external/googletest/googlemock/include/gmock/gmock-spec-builders.h
src/gromacs/CMakeLists.txt
src/gromacs/analysisdata/tests/datatest.h
src/gromacs/awh/tests/bias.cpp
src/gromacs/awh/tests/biasstate.cpp
src/gromacs/awh/tests/grid.cpp
src/gromacs/commandline/tests/cmdlinehelpmodule.cpp
src/gromacs/commandline/tests/cmdlineprogramcontext.cpp
src/gromacs/compat/tests/make_unique.cpp
src/gromacs/correlationfunctions/tests/autocorr.cpp
src/gromacs/correlationfunctions/tests/expfit.cpp
src/gromacs/ewald/tests/pmebsplinetest.cpp
src/gromacs/ewald/tests/pmegathertest.cpp
src/gromacs/ewald/tests/pmesolvetest.cpp
src/gromacs/ewald/tests/pmesplinespreadtest.cpp
src/gromacs/ewald/tests/pmetestcommon.cpp
src/gromacs/ewald/tests/testhardwarecontexts.cpp
src/gromacs/fileio/tests/readinp.cpp
src/gromacs/fileio/tests/tngio.cpp
src/gromacs/gmxpreprocess/tests/genconf.cpp
src/gromacs/gmxpreprocess/tests/readir.cpp
src/gromacs/gmxpreprocess/tests/solvate.cpp
src/gromacs/linearalgebra/.clang-tidy [new file with mode: 0644]
src/gromacs/math/tests/functions.cpp
src/gromacs/math/tests/vectypes.cpp
src/gromacs/mdlib/nbnxn_kernels/.clang-tidy [deleted file]
src/gromacs/mdlib/tests/mdebin.cpp
src/gromacs/mdrunutility/tests/threadaffinitytest.cpp
src/gromacs/options/tests/treesupport.cpp
src/gromacs/random/tests/exponentialdistribution.cpp
src/gromacs/random/tests/gammadistribution.cpp
src/gromacs/random/tests/normaldistribution.cpp
src/gromacs/random/tests/tabulatednormaldistribution.cpp
src/gromacs/random/tests/threefry.cpp
src/gromacs/random/tests/uniformintdistribution.cpp
src/gromacs/random/tests/uniformrealdistribution.cpp
src/gromacs/selection/parser_internal.h
src/gromacs/selection/tests/nbsearch.cpp
src/gromacs/selection/tests/poscalc.cpp
src/gromacs/selection/tests/toputils.cpp
src/gromacs/simd/tests/CMakeLists.txt
src/gromacs/simd/tests/base.cpp
src/gromacs/simd/tests/base.h
src/gromacs/simd/tests/data.cpp [deleted file]
src/gromacs/simd/tests/data.h
src/gromacs/simd/tests/scalar.cpp
src/gromacs/simd/tests/simd.h
src/gromacs/simd/tests/simd4.h
src/gromacs/simd/tests/simd4_math.cpp
src/gromacs/simd/tests/simd_math.cpp
src/gromacs/tables/tests/splinetable.cpp
src/gromacs/trajectoryanalysis/tests/surfacearea.cpp
src/gromacs/utility/bitmask.h
src/gromacs/utility/tests/alignedallocator-impl.h
src/gromacs/utility/tests/arrayref.cpp
src/gromacs/utility/tests/bitmask.h
src/gromacs/utility/tests/mutex.cpp
src/programs/mdrun/mdrun.cpp
src/programs/mdrun/tests/energyreader.cpp
src/programs/mdrun/tests/initialconstraints.cpp
src/programs/mdrun/tests/moduletest.cpp
src/programs/mdrun/tests/multisimtest.cpp
src/programs/mdrun/tests/rerun.cpp
src/programs/mdrun/tests/tabulated_bonded_interactions.cpp
src/programs/mdrun/tests/tpitest.cpp
src/testutils/TestMacros.cmake
src/testutils/cmdlinetest.cpp
src/testutils/cmdlinetest.h
src/testutils/conftest.cpp
src/testutils/interactivetest.cpp
src/testutils/refdata-checkers.h
src/testutils/refdata-impl.h
src/testutils/refdata.cpp
src/testutils/refdata.h
src/testutils/testasserts.cpp
src/testutils/testasserts.h
src/testutils/testinit.cpp
src/testutils/testoptions.h