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

Include debug.h in all .cc files #1428

Open
caclark opened this issue Jul 8, 2024 · 1 comment
Open

Include debug.h in all .cc files #1428

caclark opened this issue Jul 8, 2024 · 1 comment
Labels

Comments

@caclark
Copy link
Collaborator

caclark commented Jul 8, 2024

At sometime during the code cleanup, #include debug.h has been removed from the source file if there are no explicit debug_[1-4]() calls.

I debug by throwing large numbers of debug_0("some text") commands all over the code.

In some cases I now need to include an additional include statement.

Is there any way I can shortcut this? Is there a better solution?

@qarkai
Copy link
Contributor

qarkai commented Jul 9, 2024

Is there any way I can shortcut this?

IWYU has always_keep pragma.

Although I believe that temporary code like cstdio/printf(), iostream/cout should be removed after debugging.

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

No branches or pull requests

2 participants