Skip to content

Commit bfdf3bb

Browse files
authored
Merge branch 'main' into photontiming_geant4
2 parents 9535b89 + 32a20ff commit bfdf3bb

329 files changed

Lines changed: 1927 additions & 16966 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
BasedOnStyle: Microsoft
2+
AlignConsecutiveDeclarations:
3+
Enabled: true
4+
AcrossEmptyLines: false
5+
AcrossComments: false
6+
AlignFunctionDeclarations: false
7+
AllowShortLoopsOnASingleLine: true
8+
BreakConstructorInitializers: AfterColon
9+
BreakTemplateDeclarations: MultiLine
10+
ColumnLimit: 0
11+
PackConstructorInitializers: Never
12+
PointerAlignment: Left

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"ghcr.io/bnlnpps/eic-opticks:base"
1313
]
1414
},
15+
"features": {
16+
"./features/llvm": {}
17+
},
1518
"remoteEnv": {
1619
"CODEX_HOME": "${containerWorkspaceFolder}/.codex"
1720
},
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "LLVM Toolchain",
3+
"id": "llvm",
4+
"version": "1.0.0",
5+
"description": "Installs LLVM toolchain packages (clang-format, clangd, clang-tidy) from the official LLVM APT repository",
6+
"options": {
7+
"version": {
8+
"type": "string",
9+
"default": "latest",
10+
"description": "LLVM version to install, e.g. 18, 20, 23, or latest."
11+
}
12+
},
13+
"installsAfter": [
14+
"ghcr.io/devcontainers/features/common-utils"
15+
]
16+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
# Devcontainer feature option:
5+
# "version" in devcontainer-feature.json becomes VERSION here.
6+
LLVM_REQUESTED_VERSION="${VERSION:-latest}"
7+
8+
. /etc/os-release
9+
10+
apt-get update -y
11+
apt-get install -y --no-install-recommends \
12+
ca-certificates \
13+
gnupg \
14+
wget
15+
16+
install -d -m 0755 /etc/apt/keyrings
17+
18+
wget -qO /etc/apt/keyrings/apt.llvm.org.asc https://apt.llvm.org/llvm-snapshot.gpg.key
19+
20+
# Use the generic apt.llvm.org suite.
21+
cat > /etc/apt/sources.list.d/llvm.list <<EOF
22+
deb [signed-by=/etc/apt/keyrings/apt.llvm.org.asc] https://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME} main
23+
EOF
24+
25+
apt-get update -y
26+
27+
if [ "${LLVM_REQUESTED_VERSION}" = "latest" ] || [ -z "${LLVM_REQUESTED_VERSION}" ]; then
28+
LLVM_VERSION="$(
29+
apt-cache search '^clang-format-[0-9]+$' \
30+
| awk '{print $1}' \
31+
| sed 's/^clang-format-//' \
32+
| sort -V \
33+
| tail -n 1
34+
)"
35+
36+
if [ -z "${LLVM_VERSION}" ]; then
37+
echo "ERROR: Could not determine latest available LLVM version." >&2
38+
exit 1
39+
fi
40+
else
41+
LLVM_VERSION="${LLVM_REQUESTED_VERSION}"
42+
fi
43+
44+
echo "Using LLVM version: ${LLVM_VERSION}"
45+
46+
apt-get install -y --no-install-recommends \
47+
clang-format-${LLVM_VERSION} \
48+
clangd-${LLVM_VERSION} \
49+
clang-tidy-${LLVM_VERSION}
50+
51+
ln -sf /usr/bin/clang-format-${LLVM_VERSION} /usr/local/bin/clang-format
52+
ln -sf /usr/bin/clangd-${LLVM_VERSION} /usr/local/bin/clangd
53+
ln -sf /usr/bin/clang-tidy-${LLVM_VERSION} /usr/local/bin/clang-tidy
54+
55+
apt-get clean
56+
rm -rf /var/lib/apt/lists/*

.github/workflows/build-pull-request.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ jobs:
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
with:
32-
style: microsoft
32+
style: file
3333
ignore: include/argparse
3434
lines-changed-only: true
3535
thread-comments: update
36-
format-review: true
36+
format-review: false
3737
tidy-checks: '-*'
38+
tidy-review: false
39+
step-summary: true
40+
file-annotations: true
3841

3942
- name: Fail fast?!
4043
if: steps.linter.outputs.checks-failed != 0

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
1111
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type")
1212
endif()
1313

14-
project(eic-opticks VERSION 0.3.0 LANGUAGES CXX CUDA)
14+
project(eic-opticks VERSION 0.5.0 LANGUAGES CXX CUDA)
1515

1616
set(CMAKE_CXX_STANDARD 17)
1717
set(CMAKE_CXX_STANDARD_REQUIRED ON)

CSG/CSGCopyTest.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ export CSGCopy=INFO
77
#export DUMP_NPS=7
88
#export DUMP_RIDX=6
99

10-
lldb__ CSGCopyTest $*
11-
10+
gdb__ CSGCopyTest $*
1211

CSG/CSGGenstep.cc

Lines changed: 0 additions & 238 deletions
This file was deleted.

0 commit comments

Comments
 (0)