From 361ff1bc38e527960af5c0083f5f8e6bc8fe696b Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 8 Oct 2018 04:45:11 +0200 Subject: [PATCH] Fix clang-tidy complaints --- examples/step-16/step-16.cc | 4 ++-- include/deal.II/lac/cuda_kernels.h | 2 +- include/deal.II/lac/cuda_vector.h | 4 ++-- include/deal.II/matrix_free/cuda_hanging_nodes_internal.h | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/step-16/step-16.cc b/examples/step-16/step-16.cc index c6cc1c80be..295793eba9 100644 --- a/examples/step-16/step-16.cc +++ b/examples/step-16/step-16.cc @@ -380,7 +380,7 @@ namespace Step16 { MappingQ1 mapping; - typedef decltype(dof_handler.begin_active()) Iterator; + using Iterator = decltype(this->dof_handler.begin_active()); auto cell_worker = [&](const Iterator & cell, ScratchData &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 &scratch_data, diff --git a/include/deal.II/lac/cuda_kernels.h b/include/deal.II/lac/cuda_kernels.h index 9c64b4e887..4059cd8a06 100644 --- a/include/deal.II/lac/cuda_kernels.h +++ b/include/deal.II/lac/cuda_kernels.h @@ -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. diff --git a/include/deal.II/lac/cuda_vector.h b/include/deal.II/lac/cuda_vector.h index 78ee585668..6822da92bc 100644 --- a/include/deal.II/lac/cuda_vector.h +++ b/include/deal.II/lac/cuda_vector.h @@ -70,7 +70,7 @@ namespace LinearAlgebra /** * Move constructor. */ - Vector(Vector &&) = default; + Vector(Vector &&) 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 &&v) = default; + operator=(Vector &&v) noexcept = default; /** * Swap the contents of this vector and the other vector @p v. One could do diff --git a/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h b/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h index 17e50cab20..75a2696808 100644 --- a/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h +++ b/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h @@ -88,10 +88,10 @@ namespace CUDAWrappers void transpose_subface_index(unsigned int &subface) const; - typedef typename DoFHandler::cell_iterator cell_iterator; - typedef - typename DoFHandler::active_cell_iterator active_cell_iterator; - const unsigned int n_raw_lines; + using cell_iterator = typename DoFHandler::cell_iterator; + using active_cell_iterator = + typename DoFHandler::active_cell_iterator; + const unsigned int n_raw_lines; std::vector>> line_to_cells; const std::vector &lexicographic_mapping; -- 2.39.5