Repository navigation
Remove using-directives from common headers - #3324
Conversation
Remove using directives
|
Sorry, there were a few fixes needed. It should be ready for merging now. |
|
Regarding |
|
Hi @aalkin , ok. Are you fine with renaming in a separate PR? |
|
@vkucera yes, of course, let's not waste the approvals :) |
|
@ddobrigk @TimoWilken Is it fine for you to merge this without waiting for the remaining approvals? |
|
To avoid any conflicts, maybe we can manual-force-merge? @ktf or @pzhristov maybe? Thanks a lot! |
|
Error while checking build/O2Physics/o2 for 9805abf at 2023-08-16 17:53: Full log here. |
b6b7e6d
|
Merged this now. I have noticed two other quite bad practices, while reviewing this:
|
Using-directives should never appear in headers because they irreversibly pollute the global namespace wherever they are included and can lead to unexpected behaviour, such as name conflicts. See O2 CodingGuidelines.
In fact, the
evselnamespace was indeed defined ambiguously, once aso2::aod::evselinEventSelection.hand another time as justevselinEventSelectionParams.h. Maybe @ekryshen can comment whether this was intentional or not.@ddobrigk I think we should have a CI check that forbids
using namespacein header files. That would require fixing remaining occurrences in the PWG directories (which I did not do in this PR).