We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If there's a #define in a file, but the macro is not used anywhere, we should delete it.
#define
With the preprocessor, this will become common:
#define PRETTIER 1 #ifdef PRETTIER ... #endif
The preprocessor can evaluate and remove the #ifdef line, but it doesn't know if the macro should be preserved or not.
#ifdef
The text was updated successfully, but these errors were encountered:
Gotta implement actual replacement of tokens in the code... Then the #define can always be deleted.
Sorry, something went wrong.
We don't want to remove all defines, just the ones that are not used.
Evaluating and removing defines could yield a smaller output.
Or in many cases, larger...
In any case, inlining the defines is an independent feature request.
No branches or pull requests
If there's a
#define
in a file, but the macro is not used anywhere, we should delete it.With the preprocessor, this will become common:
The preprocessor can evaluate and remove the
#ifdef
line, but it doesn't know if the macro should be preserved or not.The text was updated successfully, but these errors were encountered: