Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 4cf453f

Browse files
author
Nicolas Cornu
authored
Update hpc-coding-convention (#794)
1 parent d0cf550 commit 4cf453f

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ set(CORENRN_ClangFormat_FILES_RE
5959
"^.*\\\\.cu$$" "^.*\\\\.[chi]pp$$"
6060
CACHE STRING "List of regular expressions matching C/C++ filenames" FORCE)
6161
set(CORENRN_ClangFormat_EXCLUDES_RE
62-
"${CORENRN_PROJECT_SOURCE_DIR}/external/.*$$"
62+
""
6363
CACHE STRING "list of regular expressions to exclude C/C++ files from formatting" FORCE)
6464
set(CORENRN_CMakeFormat_EXCLUDES_RE
65-
"${CORENRN_PROJECT_SOURCE_DIR}/external/.*$$" ".*/CMake/packages/.*$$"
65+
"CMake/packages/.*$$"
6666
CACHE STRING "list of regular expressions to exclude CMake files from formatting" FORCE)
6767
include(AddHpcCodingConvSubmodule)
6868
add_subdirectory(CMake/hpc-coding-conventions/cpp)

coreneuron/mechanism/mech/enginemech.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ extern bool corenrn_embedded;
5858
extern int corenrn_embedded_nthread;
5959

6060
/// parse arguments from neuron and prepare new one for coreneuron
61-
char* prepare_args(int& argc,
62-
char**& argv,
63-
int use_mpi,
64-
const char* mpi_lib,
65-
const char* nrn_arg);
61+
char* prepare_args(int& argc, char**& argv, int use_mpi, const char* mpi_lib, const char* nrn_arg);
6662

6763
/// initialize standard mechanisms from coreneuron
6864
void mk_mech_init(int argc, char** argv);

tests/unit/queueing/test_header.hpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@
1212
#include <boost/mpl/list.hpp>
1313
#include "coreneuron/nrniv/sptbinq.h"
1414

15-
template<container C>
16-
struct data{
17-
static const container cont = C;
15+
template <container C>
16+
struct data {
17+
static const container cont = C;
1818
};
1919

20-
typedef boost::mpl::list<
21-
data<queueing::spltree>,
22-
data<queueing::pq_que>
23-
> full_test_types;
20+
using full_test_types = boost::mpl::list<data<queueing::spltree>, data<queueing::pq_que>>;
2421

2522
#endif

0 commit comments

Comments
 (0)