This patch creates a group that will ignore unsupported optimizations and give the user a warning. This patch includes -finline-limit as one of those ignored flags.
Details
Diff Detail
Event Timeline
This seems like the right direction, feel free to commit with some minor fixes.
| include/clang/Basic/DiagnosticDriverKinds.td | ||
|---|---|---|
| 122 | None of our diagnostics start with a leading capital letter, so I would try to be consistent with that. | |
| include/clang/Driver/Options.td | ||
| 92 | wrap before the " | |
| 1567 | this looks like a good candidate for the group, I'm sure there's more | |
| lib/Driver/Tools.cpp | ||
| 3132 | needs wrapping | |
Thanks for the feedback. I will make those changes. I just have one
question:
this looks like a good candidate for the group, I'm sure >there's more
Should I replace all clang_ignored_f_Group?
If so can I remove that group?
If not how do I know which ones to change?
Not everything in clang_ignored_f_Group is an optimization flag, so no, I'd
leave the rest of them alone. I believe -ivopts is an optimization flag,
so it would be appropriate to put in this group.
Please add quote '%0'