-
Notifications
You must be signed in to change notification settings - Fork 60
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
Remove unnecessary null pointer checks #19
Comments
you are perfectly right. However, not all compilers for all platforms support that. Did you measure a huge bottleneck from those IFs? |
Would you like to point any tools out which are not compliant to the C++ standard according to the linked implementation detail? 💭 Would you become interested to use a development tool like “clang-tidy” for corresponding source code adjustments? |
Probably old compilers.
This aspect will be considered in the future. Probably when moving to smart pointers. |
💭 I would find it helpful if redundant pointer checks could be deleted before occasionally. |
Not now. |
🔮 Do you need any configuration checks for incompliant tools (by the software build system)? |
No, thank you. |
🔮 In which time range do you plan to work more with smart pointers? |
Why? |
💭 Smart pointers can also help to get rid of redundant pointer checks, can't they? |
done |
See also (for example): |
could you be more specific, please? |
👀 You adjusted several source code places (according to a requested transformation pattern) on 2024-08-22. |
An extra null pointer check is not needed in functions like the following.
The text was updated successfully, but these errors were encountered: