-
Notifications
You must be signed in to change notification settings - Fork 80
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
-U
incorrectly undefines source-level define
#387
Comments
|
From https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Preprocessor-Options.html:
So built-in defines needs to be handled differently. Might be outside the scope of this issue though. |
Built-in do not need to be handled differently in my opinion. Your initial understanding is correct - i.e. manual What the docs you specify says is that the compiler have some builtin definitions(not defined in the header files!), so their way of being disabled manually is by the But for the user definitions, they can only come either from So in conclusion, the mental model is that the order of definitions, from top to bottom, is:
|
We do. simplecpp and Cppcheck both provide different built-in defines which are currently not treated as such. With this change Since we could (and we actually do) provide more built-in defines externally this needs to be reflected in the Coincidentally I need those changes anyways to address some other define-related issues. |
The text was updated successfully, but these errors were encountered: