Skip to content

Conversation

@pap1rana
Copy link

@pap1rana pap1rana commented Jun 1, 2022

I saw that you are developing with std=c++11, and using nullptr is recommended.
I excuted cmake

cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. 

with extra flag for -DCMAKE_EXPORT_COMPILE_COMMANDS=ON clang-tidy purpose.
From build directory executed:

run-clang-tidy -checks='modernize-use-nullptr'

modernize-use-nullptr
After that i ran same command with -f to auto apply fixes:
diffs
After that i built everything again, ran app with no problems:
ApplyfixTestingProg
I even have executed solvespace-testsuite:
TestPassed

@ruevs
Copy link
Member

ruevs commented Jun 1, 2022

@pap1rana thank you for the contribution. While nullptr is the correct thing to use since C++11 SolveSpace is from 2008 and thus uses NULL in most places.

Globally replacing NULL with nullptr at this point simply introduces "noise" in the GIT log by changing all files in a single commit. Therefore I can not accept your pull request. Just in case - @phkahler if you do not agree with me just re-open it.

I hope you are not discouraged by this. We always welcome new contributors and I would love to see future contributions from you.

@ruevs ruevs closed this Jun 1, 2022
@phkahler
Copy link
Member

phkahler commented Jun 1, 2022

@ruevs I agree. OTOH we should probably make a list of big changes like that, and do them all in a row? For example, I opened #1210 which is just renaming. Another issue is that such changes may also cause existing WIP patches and branches to not automatically merge any more. OTOH there may never be a "good" time to do this. So no for now.

@pap1rana
Copy link
Author

pap1rana commented Jun 1, 2022

I agree with you, this should be done as part of big changes list.

@kk6mrp
Copy link

kk6mrp commented Jun 1, 2022

You can ignore commits with Git Blame like here: https://akrabat.com/ignoring-revisions-with-git-blame/

It is only applied on a user by user basis though.

@rpavlik
Copy link
Contributor

rpavlik commented Jun 30, 2022

Github now has support for the git blame ignore file.

@kk6mrp
Copy link

kk6mrp commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants