Loading .clang-tidy +2 −2 Original line number Diff line number Diff line Loading @@ -4,9 +4,9 @@ Checks : '-*, performance-*, google-*,-google-readability-todo,-google-build-using-namespace,-google-readability-namespace-comments,-google-runtime-references,-google-runtime-int, readability-*,-readability-named-parameter,-readability-inconsistent-declaration-parameter-name,-readability-avoid-const-params-in-decls,-readability-simplify-boolean-expr,-readability-redundant-declaration,-readability-else-after-return,-readability-magic-numbers,-readability-isolate-declaration,-readability-uppercase-literal-suffix,-readability-const-return-type,-readability-convert-member-functions-to-static,-readability-function-cognitive-complexity, llvm-*,-llvm-include-order,-llvm-header-guard,-llvm-namespace-comment,-llvm-qualified-auto, llvm-*,-llvm-include-order,-llvm-header-guard,-llvm-namespace-comment,-llvm-qualified-auto,-llvm-else-after-return, modernize-*,-modernize-raw-string-literal,-modernize-use-nodiscard,-modernize-use-trailing-return-type,-modernize-avoid-bind, cppcoreguidelines-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-owning-memory,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-non-private-member-variables-in-classes, cppcoreguidelines-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-owning-memory,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-avoid-non-const-global-variables, cert-*,-cert-err58-cpp,-cert-err34-c,-cert-msc51-cpp,-cert-msc32-c,-cert-dcl16-c,-cert-oop54-cpp, misc-*,-misc-noexcept-move-constructor,-misc-non-private-member-variables-in-classes, clang-analyzer-*,-clang-analyzer-alpha*,-clang-analyzer-core*,-clang-analyzer-cplusplus*,-clang-analyzer-optin*' Loading .gitlab/ci/codespell_ignored_words.txt +3 −1 Original line number Diff line number Diff line Loading @@ -2,5 +2,7 @@ # Put one word per line and sort alphabetically. asai hist yse skelton synopsys te yse cmake/AllpixMacros.cmake +0 −10 Original line number Diff line number Diff line Loading @@ -300,16 +300,6 @@ MACRO(ALLPIX_MODULE_REQUIRE_GEANT4_INTERFACE name) TARGET_LINK_LIBRARIES(${name} ${ALLPIX_GEANT4_INTERFACE}) ENDMACRO() # Macro to set up Eigen3:: targets MACRO(ALLPIX_SETUP_EIGEN_TARGETS) IF(NOT TARGET Eigen3::Eigen) ADD_LIBRARY(Eigen3::Eigen INTERFACE IMPORTED GLOBAL) SET_TARGET_PROPERTIES(Eigen3::Eigen PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${EIGEN3_INCLUDE_DIR}) ENDIF() ENDMACRO() # Macro to set up ROOT:: targets so that we can use the same code for root 6.8 and for root 6.10 and beyond # Inpsired by CMake build system of DD4Hep MACRO(ALLPIX_SETUP_ROOT_TARGETS) Loading cmake/clang-cpp-checks.cmake +8 −6 Original line number Diff line number Diff line Loading @@ -115,13 +115,15 @@ IF(CLANG_TIDY AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ADD_CUSTOM_TARGET( lint COMMAND ${RUN_CLANG_TIDY} -fix -format -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} COMMAND ${RUN_CLANG_TIDY} -clang-tidy-binary=${CLANG_TIDY} -fix -format -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} COMMENT "Auto fixing problems in all source files") ADD_CUSTOM_TARGET( check-lint COMMAND ${RUN_CLANG_TIDY} -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt ${RUN_CLANG_TIDY} -clang-tidy-binary=${CLANG_TIDY} -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt # WARNING: fix to stop with error if there are problems COMMAND ! grep -c ": error: " ${CMAKE_BINARY_DIR}/check_lint_file.txt > /dev/null COMMENT "Checking for problems in source files") Loading @@ -143,16 +145,16 @@ IF(CLANG_TIDY AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ADD_CUSTOM_TARGET( lint-diff COMMAND git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -path=${CMAKE_BINARY_DIR} -p1 -fix -j${NPROC} COMMAND git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -clang-tidy-binary=${CLANG_TIDY} -path=${CMAKE_BINARY_DIR} -p1 -fix -j${NPROC} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMENT "Auto fixing problems in differing source files") ADD_CUSTOM_TARGET( check-lint-diff COMMAND git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -path=${CMAKE_BINARY_DIR} -p1 -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -clang-tidy-binary=${CLANG_TIDY} -path=${CMAKE_BINARY_DIR} -p1 -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt # WARNING: fix to stop with error if there are problems COMMAND ! grep -c ": error: " ${CMAKE_BINARY_DIR}/check_lint_file.txt > /dev/null WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} Loading doc/usermanual/allpix-manual.tex +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ \usepackage{varwidth} \usepackage{tikz} \usepackage{relsize} \usepackage{mhchem} \urlstyle{same} \usepackage{longtable,booktabs} Loading Loading
.clang-tidy +2 −2 Original line number Diff line number Diff line Loading @@ -4,9 +4,9 @@ Checks : '-*, performance-*, google-*,-google-readability-todo,-google-build-using-namespace,-google-readability-namespace-comments,-google-runtime-references,-google-runtime-int, readability-*,-readability-named-parameter,-readability-inconsistent-declaration-parameter-name,-readability-avoid-const-params-in-decls,-readability-simplify-boolean-expr,-readability-redundant-declaration,-readability-else-after-return,-readability-magic-numbers,-readability-isolate-declaration,-readability-uppercase-literal-suffix,-readability-const-return-type,-readability-convert-member-functions-to-static,-readability-function-cognitive-complexity, llvm-*,-llvm-include-order,-llvm-header-guard,-llvm-namespace-comment,-llvm-qualified-auto, llvm-*,-llvm-include-order,-llvm-header-guard,-llvm-namespace-comment,-llvm-qualified-auto,-llvm-else-after-return, modernize-*,-modernize-raw-string-literal,-modernize-use-nodiscard,-modernize-use-trailing-return-type,-modernize-avoid-bind, cppcoreguidelines-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-owning-memory,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-non-private-member-variables-in-classes, cppcoreguidelines-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-owning-memory,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-avoid-non-const-global-variables, cert-*,-cert-err58-cpp,-cert-err34-c,-cert-msc51-cpp,-cert-msc32-c,-cert-dcl16-c,-cert-oop54-cpp, misc-*,-misc-noexcept-move-constructor,-misc-non-private-member-variables-in-classes, clang-analyzer-*,-clang-analyzer-alpha*,-clang-analyzer-core*,-clang-analyzer-cplusplus*,-clang-analyzer-optin*' Loading
.gitlab/ci/codespell_ignored_words.txt +3 −1 Original line number Diff line number Diff line Loading @@ -2,5 +2,7 @@ # Put one word per line and sort alphabetically. asai hist yse skelton synopsys te yse
cmake/AllpixMacros.cmake +0 −10 Original line number Diff line number Diff line Loading @@ -300,16 +300,6 @@ MACRO(ALLPIX_MODULE_REQUIRE_GEANT4_INTERFACE name) TARGET_LINK_LIBRARIES(${name} ${ALLPIX_GEANT4_INTERFACE}) ENDMACRO() # Macro to set up Eigen3:: targets MACRO(ALLPIX_SETUP_EIGEN_TARGETS) IF(NOT TARGET Eigen3::Eigen) ADD_LIBRARY(Eigen3::Eigen INTERFACE IMPORTED GLOBAL) SET_TARGET_PROPERTIES(Eigen3::Eigen PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${EIGEN3_INCLUDE_DIR}) ENDIF() ENDMACRO() # Macro to set up ROOT:: targets so that we can use the same code for root 6.8 and for root 6.10 and beyond # Inpsired by CMake build system of DD4Hep MACRO(ALLPIX_SETUP_ROOT_TARGETS) Loading
cmake/clang-cpp-checks.cmake +8 −6 Original line number Diff line number Diff line Loading @@ -115,13 +115,15 @@ IF(CLANG_TIDY AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ADD_CUSTOM_TARGET( lint COMMAND ${RUN_CLANG_TIDY} -fix -format -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} COMMAND ${RUN_CLANG_TIDY} -clang-tidy-binary=${CLANG_TIDY} -fix -format -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} COMMENT "Auto fixing problems in all source files") ADD_CUSTOM_TARGET( check-lint COMMAND ${RUN_CLANG_TIDY} -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt ${RUN_CLANG_TIDY} -clang-tidy-binary=${CLANG_TIDY} -header-filter=${CMAKE_SOURCE_DIR} -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt # WARNING: fix to stop with error if there are problems COMMAND ! grep -c ": error: " ${CMAKE_BINARY_DIR}/check_lint_file.txt > /dev/null COMMENT "Checking for problems in source files") Loading @@ -143,16 +145,16 @@ IF(CLANG_TIDY AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ADD_CUSTOM_TARGET( lint-diff COMMAND git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -path=${CMAKE_BINARY_DIR} -p1 -fix -j${NPROC} COMMAND git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -clang-tidy-binary=${CLANG_TIDY} -path=${CMAKE_BINARY_DIR} -p1 -fix -j${NPROC} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMENT "Auto fixing problems in differing source files") ADD_CUSTOM_TARGET( check-lint-diff COMMAND git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -path=${CMAKE_BINARY_DIR} -p1 -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt git diff --unified=0 origin/${TARGET_BRANCH}... | ${CLANG_TIDY_DIFF} -clang-tidy-binary=${CLANG_TIDY} -path=${CMAKE_BINARY_DIR} -p1 -j${NPROC} | tee ${CMAKE_BINARY_DIR}/check_lint_file.txt # WARNING: fix to stop with error if there are problems COMMAND ! grep -c ": error: " ${CMAKE_BINARY_DIR}/check_lint_file.txt > /dev/null WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} Loading
doc/usermanual/allpix-manual.tex +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ \usepackage{varwidth} \usepackage{tikz} \usepackage{relsize} \usepackage{mhchem} \urlstyle{same} \usepackage{longtable,booktabs} Loading