-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Dealing with headers that use #error #47225
Comments
assign core |
New categories assigned: core @Dr15Jones,@makortel,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks |
cms-bot internal usage |
A new Issue was created by @Dr15Jones. @Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
@makortel and I had a quick discussion on this issue and came up with two possible ideas
|
@smuzaffar your thoughts on this would be very appreciated. |
@Dr15Jones , instead of keeping a hard coded list of headers to ignore, can we just ignore any header which generates |
Seems reasonable to me. |
@smuzaffar Do |
No. scram just tries to compile a header and if compiler generates any error then scram treats it as failure. So |
cms-sw/cms-bot#2427 fixes bot code to not report headers which explicitly use |
+core I guess we can close this issue |
This issue is fully signed and ready to be closed. |
@cmsbuild, please close |
When doing code migrations, it is useful to allow headers which are not supposed to be used (or possible not used directly) to use the c pre-processor directive
#error
. The difficulty is our header file consistency check reports these errors. These errors are intentional so should not cause a failure of the header file consistency (in fact, it would be even better if the header did NOT report an error that it caused a failure in the test).We should determine a way to keep these cases from causing the header consistency from reporting a problem.
The text was updated successfully, but these errors were encountered: