Replace all ConstArrayRef with ArrayRef<const T>
commit8dec71599f2ce6f5ce84ea954a73480cca20d84b
authorRoland Schulz <roland.schulz@intel.com>
Wed, 4 Oct 2017 06:48:49 +0000 (3 23:48 -0700)
committerBerk Hess <hess@kth.se>
Fri, 13 Oct 2017 07:18:39 +0000 (13 09:18 +0200)
tree778d9e922320752041a4b01fcf15c24ba53a058a
parent154e896f4b3b411bd28756c63f3f123f34b0aa5c
Replace all ConstArrayRef with ArrayRef<const T>

1) Remove the alias itself in arrayref.h.
2) All replacements done automatically using sed:
s#ConstArrayRef<const char \*>#ArrayRef<const char *const>#
s#ConstArrayRef<\(.*\)>#ArrayRef<const \1>#

This worked because "const char*" was the only pointer type used as
template argument.

Change-Id: I5eba895a5dc235b95d77670b4f258e423f64f3b8
47 files changed:
src/gromacs/analysisdata/dataframe.h
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/commandline/cmdlineoptionsmodule.cpp
src/gromacs/commandline/pargs.cpp
src/gromacs/commandline/tests/pargs.cpp
src/gromacs/ewald/tests/pmetestcommon.h
src/gromacs/gmxpreprocess/toppush.cpp
src/gromacs/mdlib/force.cpp
src/gromacs/mdlib/force.h
src/gromacs/mdlib/shellfc.cpp
src/gromacs/mdlib/sim_util.cpp
src/gromacs/onlinehelp/tests/helpwritercontext.cpp
src/gromacs/options/filenameoption.cpp
src/gromacs/options/filenameoptionmanager.cpp
src/gromacs/options/filenameoptionstorage.h
src/gromacs/options/optionstoragetemplate.h
src/gromacs/options/timeunitmanager.cpp
src/gromacs/selection/nbsearch.h
src/gromacs/selection/poscalc.cpp
src/gromacs/selection/selection.h
src/gromacs/selection/tests/nbsearch.cpp
src/gromacs/selection/tests/poscalc.cpp
src/gromacs/selection/tests/selectioncollection.cpp
src/gromacs/selection/tests/toputils.cpp
src/gromacs/simd/tests/simd_memory.cpp
src/gromacs/tables/cubicsplinetable.cpp
src/gromacs/tables/quadraticsplinetable.cpp
src/gromacs/tables/splineutil.cpp
src/gromacs/tables/splineutil.h
src/gromacs/tables/tableinput.h
src/gromacs/trajectoryanalysis/analysissettings.cpp
src/gromacs/trajectoryanalysis/modules/freevolume.cpp
src/gromacs/trajectoryanalysis/modules/sasa.cpp
src/gromacs/trajectoryanalysis/modules/select.cpp
src/gromacs/trajectoryanalysis/modules/surfacearea.cpp
src/gromacs/trajectoryanalysis/modules/surfacearea.h
src/gromacs/trajectoryanalysis/modules/unionfind.h
src/gromacs/trajectoryanalysis/tests/test_selection.cpp
src/gromacs/utility/arrayref.h
src/gromacs/utility/coolstuff.cpp
src/gromacs/utility/tests/arrayref.cpp
src/gromacs/utility/tests/stringutil.cpp
src/testutils/cmdlinetest.cpp
src/testutils/cmdlinetest.h
src/testutils/interactivetest.cpp
src/testutils/interactivetest.h