Skip to content

Commit f202377

Browse files
committed
add west const and enforce in clang format
1 parent e1102b6 commit f202377

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ PenaltyBreakTemplateDeclaration: 10
8484
PenaltyExcessCharacter: 1000000
8585
PenaltyReturnTypeOnItsOwnLine: 200
8686
PointerAlignment: Left
87+
QualifierAlignment: Left
8788
ReflowComments: true
8889
SortIncludes: true
8990
SortUsingDeclarations: true

include/openmc/state_point.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ void load_state_point();
3434
// can be created by calling calculate_parallel_index_vector on
3535
// source_bank.size() if such a vector is not already available.
3636
void write_source_point(const char* filename, gsl::span<SourceSite> source_bank,
37-
vector<int64_t> const& bank_index);
37+
const vector<int64_t>& bank_index);
3838

3939
// This appends a source bank specification to an HDF5 file
4040
// that's already open. It is used internally by write_source_point.
4141
void write_source_bank(hid_t group_id, gsl::span<SourceSite> source_bank,
42-
vector<int64_t> const& bank_index);
42+
const vector<int64_t>& bank_index);
4343

4444
void read_source_bank(
4545
hid_t group_id, vector<SourceSite>& sites, bool distribute);

0 commit comments

Comments
 (0)