You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Anonymous namespaces opening bracket removed after using -fix #19
I tried running run_O2CodeChecker.py with the -fix option on the ReadoutCard library (master branch).
This resulted in anonymous namespaces being broken by having their opening bracket removed.
For example, code like:
Thanks for this report. @ZdravkoD : Can you please take a look into this bug report?
Please note that the namespace check is development is progress. Please disable it for the moment. The only checks in production are the ones listed in the o2checkcode.sh recipe.
We might have to go to a real release model ... now that people are starting to use the checks -:)
@PascalBoeschoten Can you try running O2codecheck --list-checks --checks="alice*" and check if aliceO2-namespace-naming appears in the list? The command that you gave runs fine and finds namespace errors when I run it at ~/alice/sw/BUILD/O2-latest/O2/.
@PascalBoeschoten : Ok, I believe I know why this is: We recently needed to added filtering of the source path of the translation unit and we have probably put something with O2 ... not knowing that other repos want to use the tool as well. @ZdravkoD : We need to add configuration of the path from the outside.
@PascalBoeschoten : We now added a configuration possibility to let the tool know which repository it is checking. Can you please add a .clang-tidy file inside your project as mentioned in this commit 642b8f4 and provide the proper regular expression matching your source tree.
Activity
sawenzel commentedon Sep 14, 2017
Thanks for this report.
@ZdravkoD : Can you please take a look into this bug report?
Please note that the namespace check is development is progress. Please disable it for the moment. The only checks in production are the ones listed in the o2checkcode.sh recipe.
We might have to go to a real release model ... now that people are starting to use the checks -:)
sawenzel commentedon Sep 19, 2017
@PascalBoeschoten: I merged an improved namespace checker. Would you mind trying it out and seeing if the bug is solved?
PascalBoeschoten commentedon Sep 19, 2017
If I run
it doesn't seem to find/change anything, even though my namespace names are camelcase. But it also doesn't break anonymous namespaces anymore.
ZdravkoD commentedon Sep 19, 2017
@PascalBoeschoten Can you try running
O2codecheck --list-checks --checks="alice*"and check ifaliceO2-namespace-namingappears in the list? The command that you gave runs fine and finds namespace errors when I run it at~/alice/sw/BUILD/O2-latest/O2/.PascalBoeschoten commentedon Sep 19, 2017
It appears in the list.
The command I gave also lists only
aliceO2-namespace-namingas check (others are all disabled)sawenzel commentedon Sep 19, 2017
@PascalBoeschoten : Ok, I believe I know why this is: We recently needed to added filtering of the source path of the translation unit and we have probably put something with O2 ... not knowing that other repos want to use the tool as well. @ZdravkoD : We need to add configuration of the path from the outside.
sawenzel commentedon Sep 27, 2017
@PascalBoeschoten : We now added a configuration possibility to let the tool know which repository it is checking. Can you please add a .clang-tidy file inside your project as mentioned in this commit 642b8f4 and provide the proper regular expression matching your source tree.
Feedback is highly welcome.
sawenzel commentedon Sep 27, 2017
@PascalBoeschoten : see also AliceO2Group/AliceO2#583; I checked that this works for O2 and the namespace checks.
PascalBoeschoten commentedon Sep 27, 2017
So the file would contain something like this?
ZdravkoD commentedon Sep 27, 2017
@PascalBoeschoten : Yes, that should work if your files are located at a subfolder of
ReadoutCard.PascalBoeschoten commentedon Sep 29, 2017
Done