From f202377fb7f2b4426cdb82f4d550ebc456ab4d42 Mon Sep 17 00:00:00 2001 From: Gavin Ridley Date: Sat, 15 Apr 2023 12:50:30 -0400 Subject: [PATCH] add west const and enforce in clang format --- .clang-format | 1 + include/openmc/state_point.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 153f0e4a3..74975cc3c 100644 --- a/.clang-format +++ b/.clang-format @@ -84,6 +84,7 @@ PenaltyBreakTemplateDeclaration: 10 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 200 PointerAlignment: Left +QualifierAlignment: Left ReflowComments: true SortIncludes: true SortUsingDeclarations: true diff --git a/include/openmc/state_point.h b/include/openmc/state_point.h index db1ac2edb..95524f6b6 100644 --- a/include/openmc/state_point.h +++ b/include/openmc/state_point.h @@ -34,12 +34,12 @@ void load_state_point(); // can be created by calling calculate_parallel_index_vector on // source_bank.size() if such a vector is not already available. void write_source_point(const char* filename, gsl::span source_bank, - vector const& bank_index); + const vector& bank_index); // This appends a source bank specification to an HDF5 file // that's already open. It is used internally by write_source_point. void write_source_bank(hid_t group_id, gsl::span source_bank, - vector const& bank_index); + const vector& bank_index); void read_source_bank( hid_t group_id, vector& sites, bool distribute);