The first FIXME introduced here will be addressed in another patch
(https://reviews.llvm.org/D43248).
Details
- Reviewers
aaron.ballman
Diff Detail
Event Timeline
In general, I think the idea is reasonable, but in practice I'm worried about the attributes with custom parsing. Sometimes the parsing requires those extra bits and I'm not certain of how best to address that.
test/Misc/ast-print-objectivec.m | ||
---|---|---|
52 ↗ | (On Diff #135836) | This fix is incorrect in this case -- the attribute doesn't parse without the extra commas. |
test/Misc/ast-print-objectivec.m | ||
---|---|---|
52 ↗ | (On Diff #135836) | Sorry, I should have researched that one. It is straight-forward to make it treat an argument as provided based on its argument type. Will look into it soon. |
Aaron: Because the last two arguments for objc_bridge_related must be delimited with commas, this revision takes the view that they are not optional but are permitted to be the empty string.
The test suite behaves as expected. Are there any untested attributes that might be broken by this patch? Hopefully they can be addressed in a similar manner.
test/Sema/attr-print.c | ||
---|---|---|
12 | There's already one in Misc/ast-print-objectivec.m, but I can add one here too if that's helpful. |
test/Sema/attr-print.c | ||
---|---|---|
12 | Nope, not necessary -- it's already got the coverage I was hoping for. Thank you! |
LGTM! I can commit on your behalf, or, if you plan to continue submitting patches, you can ask for commit privileges (http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access) and commit yourself. Either way works for me.
I'll definitely pursue commit privileges. If you don't mind committing anything you accept today, that would be great. Thanks for your help!
Please add a test showing that objc_bridge_related isn't mangled by -ast-print.