add west const and enforce in clang format

This commit is contained in:
Gavin Ridley 2023-04-15 12:50:30 -04:00
parent e1102b6408
commit f202377fb7
2 changed files with 3 additions and 2 deletions

View file

@ -84,6 +84,7 @@ PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000 PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200 PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left PointerAlignment: Left
QualifierAlignment: Left
ReflowComments: true ReflowComments: true
SortIncludes: true SortIncludes: true
SortUsingDeclarations: true SortUsingDeclarations: true

View file

@ -34,12 +34,12 @@ void load_state_point();
// can be created by calling calculate_parallel_index_vector on // can be created by calling calculate_parallel_index_vector on
// source_bank.size() if such a vector is not already available. // source_bank.size() if such a vector is not already available.
void write_source_point(const char* filename, gsl::span<SourceSite> source_bank, void write_source_point(const char* filename, gsl::span<SourceSite> source_bank,
vector<int64_t> const& bank_index); const vector<int64_t>& bank_index);
// This appends a source bank specification to an HDF5 file // This appends a source bank specification to an HDF5 file
// that's already open. It is used internally by write_source_point. // that's already open. It is used internally by write_source_point.
void write_source_bank(hid_t group_id, gsl::span<SourceSite> source_bank, void write_source_bank(hid_t group_id, gsl::span<SourceSite> source_bank,
vector<int64_t> const& bank_index); const vector<int64_t>& bank_index);
void read_source_bank( void read_source_bank(
hid_t group_id, vector<SourceSite>& sites, bool distribute); hid_t group_id, vector<SourceSite>& sites, bool distribute);