This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +31
-28
lines changed
Expand file tree Collapse file tree 8 files changed +31
-28
lines changed Original file line number Diff line number Diff line change 1+ tools :
2+ ClangFormat :
3+ enable : True
4+ include :
5+ match :
6+ - coreneuron/.*\.((cu)|(h)|([chi]pp))$
7+ CMakeFormat :
8+ enable : True
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ spconfig.*
1111.clang-tidy
1212.cmake-format.yaml
1313.pre-commit-config.yaml
14+ .bbp-project-venv /
Original file line number Diff line number Diff line change 44# See top-level LICENSE file for details.
55# =============================================================================
66
7- find_program (SPHINX_EXECUTABLE
8- NAMES sphinx-build
9- DOC "/path/to/sphinx-build" )
7+ find_program (
8+ SPHINX_EXECUTABLE
9+ NAMES sphinx-build
10+ DOC "/path/to/sphinx-build" )
1011
1112include (FindPackageHandleStandardArgs)
1213
13- find_package_handle_standard_args(Sphinx
14- "Failed to find sphinx-build executable"
15- SPHINX_EXECUTABLE)
14+ find_package_handle_standard_args(Sphinx "Failed to find sphinx-build executable" SPHINX_EXECUTABLE)
Original file line number Diff line number Diff line change 44# See top-level LICENSE file for details.
55# =============================================================================
66
7+ # ~~~
78# Findlikwid
89# -------------
910#
2627# likwid_FOUND - set to true if the library is found
2728# likwid_INCLUDE - list of required include directories
2829# likwid_LIBRARIES - list of required library directories
30+ # ~~~
2931
3032find_path (likwid_INCLUDE_DIRS "likwid.h" HINTS "${LIKWID_DIR} /include" )
3133find_library (likwid_LIBRARIES likwid HINTS "${LIKWID_DIR} /lib" )
3234
3335# Checks 'REQUIRED', 'QUIET' and versions.
3436include (FindPackageHandleStandardArgs)
3537
36- find_package_handle_standard_args(likwid
37- REQUIRED_VARS likwid_INCLUDE_DIRS likwid_LIBRARIES)
38+ find_package_handle_standard_args(likwid REQUIRED_VARS likwid_INCLUDE_DIRS likwid_LIBRARIES)
Original file line number Diff line number Diff line change 44# See top-level LICENSE file for details.
55# =============================================================================
66
7+ # ~~~
78# Findnmodl
89# -------------
910#
2627# nmodl_FOUND - set to true if the library is found
2728# nmodl_INCLUDE - list of required include directories
2829# nmodl_BINARY - the nmodl binary
29-
30+ # ~~~
3031
3132# UNIX paths are standard, no need to write.
32- find_program (nmodl_BINARY NAMES nmodl${CMAKE_EXECUTABLE_SUFFIX}
33- HINTS "${CORENRN_NMODL_DIR} /bin" QUIET )
33+ find_program (
34+ nmodl_BINARY
35+ NAMES nmodl${CMAKE_EXECUTABLE_SUFFIX}
36+ HINTS "${CORENRN_NMODL_DIR} /bin" QUIET )
3437
3538find_path (nmodl_INCLUDE "nmodl/fast_math.ispc" HINTS "${CORENRN_NMODL_DIR} /include" )
3639find_path (nmodl_PYTHONPATH "nmodl/__init__.py" HINTS "${CORENRN_NMODL_DIR} /lib" )
3740
3841# Checks 'REQUIRED', 'QUIET' and versions.
3942include (FindPackageHandleStandardArgs)
4043
41- find_package_handle_standard_args(nmodl
44+ find_package_handle_standard_args(
45+ nmodl
4246 FOUND_VAR nmodl_FOUND
4347 REQUIRED_VARS nmodl_BINARY nmodl_INCLUDE nmodl_PYTHONPATH)
44-
Original file line number Diff line number Diff line change 44# See top-level LICENSE file for details.
55# =============================================================================
66
7+ # ~~~
78# Findreportinglib
89# -------------
910#
2627# reportinglib_FOUND - set to true if the library is found
2728# reportinglib_INCLUDE_DIRS - list of required include directories
2829# reportinglib_LIBRARIES - list of libraries to be linked
30+ # ~~~
2931
3032# UNIX paths are standard, no need to write.
3133find_path (reportinglib_INCLUDE_DIR reportinglib/Report.h)
3234find_library (reportinglib_LIBRARY reportinglib)
3335get_filename_component (reportinglib_LIB_DIR ${reportinglib_LIBRARY} DIRECTORY )
34- find_program (reportinglib_somaDump somaDump ${reportinglib_LIB_DIR} /../bin)
36+ find_program (reportinglib_somaDump somaDump ${reportinglib_LIB_DIR} /../bin)
3537
3638# Checks 'REQUIRED', 'QUIET' and versions.
3739include (FindPackageHandleStandardArgs)
3840
39- find_package_handle_standard_args(reportinglib
41+ find_package_handle_standard_args(
42+ reportinglib
4043 FOUND_VAR reportinglib_FOUND
4144 REQUIRED_VARS reportinglib_INCLUDE_DIR reportinglib_LIBRARY reportinglib_LIB_DIR)
42-
Original file line number Diff line number Diff line change @@ -85,17 +85,6 @@ list(APPEND CMAKE_MODULE_PATH ${CORENEURON_PROJECT_SOURCE_DIR}/CMake
8585# =============================================================================
8686set (CODING_CONV_PREFIX "CORENRN" )
8787set (CORENRN_3RDPARTY_DIR "external" )
88- # Adds .cu with respect to the current default in hpc-coding-conventions, and drops various patterns
89- # that don't match anything in CoreNEURON.
90- set (CORENRN_ClangFormat_FILES_RE
91- "^.*\\\\ .cu$$" "^.*\\\\ .h$$" "^.*\\\\ .[chi]pp$$"
92- CACHE STRING "List of regular expressions matching C/C++ filenames" FORCE)
93- set (CORENRN_ClangFormat_EXCLUDES_RE
94- ""
95- CACHE STRING "list of regular expressions to exclude C/C++ files from formatting" FORCE)
96- set (CORENRN_CMakeFormat_EXCLUDES_RE
97- "CMake/packages/.*$$"
98- CACHE STRING "list of regular expressions to exclude CMake files from formatting" FORCE)
9988include (AddHpcCodingConvSubmodule)
10089add_subdirectory (CMake/hpc-coding-conventions/cpp)
10190
You can’t perform that action at this time.
0 commit comments