LDMX-Software / TrigScint

1 stars 3 forks source link

Iss53 clang-patches #54

Closed EinarElen closed 1 year ago

EinarElen commented 1 year ago

This resolves #53 by switching from variable length arrays to either arrays with static length or a corresponding vector.

Should wait with merging until https://github.com/LDMX-Software/docker/issues/64 so we can confirm that it fixes what it tries to fix.

EinarElen commented 1 year ago

The docker PR isn't merged, but I've tested with the dev branch and TrigScint now compiles just fine without any issues :)

This PR does the following

EinarElen commented 1 year ago

Right, i was thinking the test/PR validation would be sufficient but if there's no checks for the TB code I'll give that part an extra review.

The changes should not change anything, but it's worth making sure

EinarElen commented 1 year ago

I forgot to tag @GNiramay as one of the reviewers here. I'm not sure who the 3rd reviewer here in the TS module usually is. Who would you suggest @bryngemark?

bryngemark commented 1 year ago

i would suggest bypassing a 3rd reviewer, i don't know who that would be (andrew has often had a hard time keeping up, you could pull in Lauren if you want to, otherwise i typically enlist tom) -- i'm not sure 3 reviewers is a good number when we are typically only 3 current TS developers in total.

EinarElen commented 1 year ago

That sounds reasonable to me, although I don't think that I can do the actual PR merge then (don't think I have permissions)

bryngemark commented 1 year ago

I do. Let's give @GNiramay another day to chime in first.

GNiramay commented 1 year ago

madeTrack and skipDn variables are new to me; but the new initialization of vector of Expo looks good to me.

EinarElen commented 1 year ago

I think they are leftover variables from development that are still around

bryngemark commented 1 year ago

kind of -- they are useful in other geometries than the commonly used one. but i haven't gotten round to introducing those to shared code. so i'd rather not clean it up. @GNiramay could you review and approve just so i know you're fine with these changes?

EinarElen commented 1 year ago

They are still in there just commented, I could add a comment referencing this issue if you want. Other than this, is this ready to be merged? I would like to be able to try some things with clang in our CI that depends on this being merged