Apply clang-tidy11 to correlationfunctions
[alexxy/gromacs.git] / src / gromacs / correlationfunctions / autocorr.cpp
index 8d827a5f1e5699e6b0fd3a14b83d4c8ac8a04ab0..680b3f56611eab7095ce4dc3d8a668f00534ba81 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
  * Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team.
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,2019,2020,2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -78,9 +78,11 @@ typedef struct
 } t_acf;
 
 /*! \brief Global variable set true if initialization routines are called. */
+// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
 static gmx_bool bACFinit = FALSE;
 
 /*! \brief Data structure for storing command line variables. */
+// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
 static t_acf acf;
 
 enum
@@ -719,6 +721,7 @@ void low_do_autocorr(const char*             fn,
 }
 
 /*! \brief Legend for selecting Legendre polynomials. */
+// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
 static const char* Leg[] = { nullptr, "0", "1", "2", "3", nullptr };
 
 t_pargs* add_acf_pargs(int* npargs, t_pargs* pa)