Skip to content
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

Modernize NULL. #2513

Open
1uc opened this issue Sep 19, 2023 · 1 comment
Open

Modernize NULL. #2513

1uc opened this issue Sep 19, 2023 · 1 comment

Comments

@1uc
Copy link
Collaborator

1uc commented Sep 19, 2023

With the introduction of generic_data_handle a NULL "pointer" will stop behaving as if it where a pointer, in certain circumstances (Context: in C++ it's defined as 0 not (void*) 0 as in C). This means that occasionally,

_pp = NULL;
_pp = nullptr;

could be two very different things.

The task would be the very mechanical process of replacing every NULL with nullptr.

@pramodk
Copy link
Member

pramodk commented Sep 19, 2023

Just to mention from Slack discussion: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-nullptr.html

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

No branches or pull requests

2 participants