Details
- Reviewers
rjmccall steven_wu aaron.ballman - Commits
- rG5c62152275c0: [Sema] Split of versions of -Wimplicit-{float,int}-conversion for Objective-C…
rL372183: [Sema] Split of versions of -Wimplicit-{float,int}-conversion for Objective-C…
rC372183: [Sema] Split of versions of -Wimplicit-{float,int}-conversion for Objective-C…
Diff Detail
Event Timeline
Mostly LGTM but a few nits.
clang/include/clang/Basic/DiagnosticGroups.td | ||
---|---|---|
65 | This makes me wish that all shells would support autocomplete of program options. :-D | |
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
3312 | Can you put single quotes around BOOL since it's a type name? Same below. | |
clang/lib/AST/Expr.cpp | ||
191 | const auto * ? | |
clang/test/SemaObjC/signed-char-bool-conversion.m | ||
4 | Can you add a test verifying the fix-it behaviors (with and without parens)? |
Address review comments.
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
3312 | Sure, this also needs to be fixed for warn_impcast_constant_value_to_objc_bool and warn_tautological_compare_objc_bool, I'll do that separately. | |
clang/test/SemaObjC/signed-char-bool-conversion.m | ||
4 | Sure, while testing this I noticed that we don't handle parens with OpaqueValueExprs properly, so I added a case. |
clang/test/Sema/objc-bool-constant-conversion-fixit.m | ||
---|---|---|
37 | Yeah, we produce the following for this: b = 1 ? (2 ? 3 ? YES : NO : 4 ? YES : NO) : 5 ? YES : NO; Not pretty, but not incorrect. |
This makes me wish that all shells would support autocomplete of program options. :-D