diff --git a/.clang-tidy b/.clang-tidy index 4caf530aee..a142355fc4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -12,6 +12,12 @@ CheckOptions: - key: misc-include-cleaner.IgnoreHeaders value: 'petsc.*\.h;mpi\.h' + + - key: readability-qualified-auto.IgnoreAliasing + value: 'false' + + - key: readability-qualified-auto.AllowedTypes + value: 'MPI_Comm' --- Disabled checks and reasons: diff --git a/src/invert/laplacexy/impls/petsc/laplacexy-petsc.cxx b/src/invert/laplacexy/impls/petsc/laplacexy-petsc.cxx index a116d78475..04abecfe05 100644 --- a/src/invert/laplacexy/impls/petsc/laplacexy-petsc.cxx +++ b/src/invert/laplacexy/impls/petsc/laplacexy-petsc.cxx @@ -84,7 +84,7 @@ LaplaceXYpetsc::LaplaceXYpetsc(Mesh* m, Options* opt, const CELL_LOC loc) default_prefix = opt->name(); // Get MPI communicator - auto* comm = BoutComm::get(); + auto comm = BoutComm::get(); // Local size const int localN = localSize();