]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix clang-tidy complaints
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 8 Oct 2018 02:45:11 +0000 (04:45 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 8 Oct 2018 02:47:36 +0000 (04:47 +0200)
examples/step-16/step-16.cc
include/deal.II/lac/cuda_kernels.h
include/deal.II/lac/cuda_vector.h
include/deal.II/matrix_free/cuda_hanging_nodes_internal.h

index c6cc1c80beda21a1c5eef0b9ff17015a9b61606b..295793eba9f10c94a7ba1a533a0735bbb10b53b8 100644 (file)
@@ -380,7 +380,7 @@ namespace Step16
   {
     MappingQ1<dim> mapping;
 
-    typedef decltype(dof_handler.begin_active()) Iterator;
+    using Iterator = decltype(this->dof_handler.begin_active());
 
     auto cell_worker = [&](const Iterator &  cell,
                            ScratchData<dim> &scratch_data,
@@ -449,7 +449,7 @@ namespace Step16
         boundary_constraints[level].close();
       }
 
-    typedef decltype(dof_handler.begin_mg()) Iterator;
+    using Iterator = decltype(this->dof_handler.begin_mg());
 
     auto cell_worker = [&](const Iterator &  cell,
                            ScratchData<dim> &scratch_data,
index 9c64b4e887741fbb4a2dab77e1b1a4f43d6523da..4059cd8a06fd79211fd3fa5a0a7e3ac63543c9b8 100644 (file)
@@ -39,7 +39,7 @@ namespace LinearAlgebra
     {
       using ::dealii::CUDAWrappers::block_size;
       using ::dealii::CUDAWrappers::chunk_size;
-      typedef types::global_dof_index size_type;
+      using size_type = types::global_dof_index;
 
       /**
        * Multiply each entry of @p val of size @p N by @p a.
index 78ee5856680d5030bb36574ef99efa77f3212072..6822da92bcfc8c23c1f42b822822ca82aea00fb4 100644 (file)
@@ -70,7 +70,7 @@ namespace LinearAlgebra
       /**
        * Move constructor.
        */
-      Vector(Vector<Number> &&) = default;
+      Vector(Vector<Number> &&) noexcept = default;
 
       /**
        * Constructor. Set dimension to @p n and initialize all elements with
@@ -94,7 +94,7 @@ namespace LinearAlgebra
        * Move assignment operator.
        */
       Vector &
-      operator=(Vector<Number> &&v) = default;
+      operator=(Vector<Number> &&v) noexcept = default;
 
       /**
        * Swap the contents of this vector and the other vector @p v. One could do
index 17e50cab200b15b6a7fc5f831bfac922e2f73d5b..75a2696808832bceb31ba56b563ed6f40dd2289a 100644 (file)
@@ -88,10 +88,10 @@ namespace CUDAWrappers
       void
       transpose_subface_index(unsigned int &subface) const;
 
-      typedef typename DoFHandler<dim>::cell_iterator cell_iterator;
-      typedef
-        typename DoFHandler<dim>::active_cell_iterator active_cell_iterator;
-      const unsigned int                               n_raw_lines;
+      using cell_iterator = typename DoFHandler<dim>::cell_iterator;
+      using active_cell_iterator =
+        typename DoFHandler<dim>::active_cell_iterator;
+      const unsigned int n_raw_lines;
       std::vector<std::vector<std::pair<cell_iterator, unsigned int>>>
                                        line_to_cells;
       const std::vector<unsigned int> &lexicographic_mapping;

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.