Please review the changes for parsing of clause 'linear'.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
With some improvement to the warning message, LGTM.
include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
6931 | The comment on the code that generates the warning says, // Warn about zero linear step (it would be probably better specified as // making corresponding variables 'const'). and I think that would make a better warning than what you have here. The "probably it is not necessary" language I think is likely going to be confusing (because the user will wonder under what circumstances such a construct might be needed). How about, "zero linear step (%0 should probably be const)" |
The comment on the code that generates the warning says,
and I think that would make a better warning than what you have here. The "probably it is not necessary" language I think is likely going to be confusing (because the user will wonder under what circumstances such a construct might be needed).
How about, "zero linear step (%0 should probably be const)"