]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use range-based for loops in source/non_matching 7575/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 9 Jan 2019 10:07:20 +0000 (11:07 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 9 Jan 2019 22:29:20 +0000 (23:29 +0100)
contrib/utilities/run_clang_tidy.sh
source/non_matching/immersed_surface_quadrature.cc

index 06d1bb66ee8996329e0931814677b1dbbf1ce241..ebf6f8e5f2babbe735550fc5c90855f3122a1d2c 100755 (executable)
@@ -68,4 +68,4 @@ CC=clang CXX=clang++ cmake "$ARGS" "$SRC" || (echo "cmake failed!"; false) || ex
 
 cmake --build . --target expand_all_instantiations || (echo "make expand_all_instantiations failed!"; false) || exit 3
 
-run-clang-tidy.py -p . -checks="$CHECKS" -quiet -header-filter="$SRC/include/*"
+run-clang-tidy.py -p . -checks="$CHECKS" -quiet -header-filter="$SRC/include/*" -fix
index 99ec807ef4ea142ddcca410064e3920e9a52c653..12e83b5976b6e2fc1dc87095cd856e88f2c2a07c 100644 (file)
@@ -28,7 +28,7 @@ namespace NonMatching
   {
     AssertDimension(weights.size(), points.size());
     AssertDimension(normals.size(), points.size());
-    for (auto normal : normals)
+    for (const auto &normal : normals)
       {
         (void)normal;
         Assert(std::abs(normal.norm() - 1.0) < 1e-9,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.