-
Notifications
You must be signed in to change notification settings - Fork 116
Refactor debug-warning rules #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## develop #293 +/- ##
============================================
- Coverage 85.92% 71.82% -14.10%
============================================
Files 23 22 -1
Lines 6081 5793 -288
============================================
- Hits 5225 4161 -1064
- Misses 856 1632 +776
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
It's perfectly no problem. My aim was to make it a stand alone routine. I should do like you wrote. We can migrate the copyright. |
Thanks for the clarification. I should leave that commit to you. You can simply pull my branch and push directly to it. |
If it is who I wrote, I think it can be removed. |
Sorry for bothering you. How can I do it concretely? |
It goes all the way back to "First commit on github" 10 year ago:
No problem at all: Assuming you push using ssh, otherwise change it to https
$ git remote add LecrisUT git@github.com:LecrisUT/spglib.git
$ git fetch LecrisUT
$ git checkout LecrisUT/debug-warnings
Edit to your heart's content
$ vi src/niggli.c
Then do the usual
$ git commit -s
Now just specify my remote instead of origin
$ git push LecrisUT |
Then, it's definitely me. Let's remove it. Spglib was born in Aachen more than 10 years ago. Thanks for your instruction about git. |
@LecrisUT, thanks for all of these improvements. |
Actually I was looking at the debug in the tests and I find the debug messages too spamy to be useful to navigate so I want to get your opinion about it (not for this PR). Have you used the breakpoint debugger in VSCode? Do you find it more useful than the manual printing? I find that the usage of all of the |
Of course I am happy to move to the modern world! |
When I started to learn C, google didn't exist. |
Great, just wanted to make sure if it's not part of a developer's active setup, and if it is, if they need some help setting up the IDE debugger to work around it. I will leave it to @lan496 to merge this one after he's caught up with the discussion. |
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
- Also do not propagate the definition flags Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
These are optimized out by the compiler, no need for #ifdef guards Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Atsushi Togo <atz.togo@gmail.com>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
PRIVATE
because they only affect the library compilation and notspglib.h
#ifdef
and macros as much as possible.niggli.c
and it said to be part of a different project, so I have to ask your approval for 32bae2b. Generally I avoid including code from project to project and then editing it, and when I do copy around and have full copyright, I tend to remove and migrate the copyright to avoid such confusions