Details
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
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Mostly LGTM but a few nits.
clang/include/clang/Basic/DiagnosticGroups.td | ||
---|---|---|
65 ↗ | (On Diff #220120) | This makes me wish that all shells would support autocomplete of program options. :-D |
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
3312 ↗ | (On Diff #220120) | Can you put single quotes around BOOL since it's a type name? Same below. |
clang/lib/AST/Expr.cpp | ||
191 ↗ | (On Diff #220120) | const auto * ? |
clang/test/SemaObjC/signed-char-bool-conversion.m | ||
3 ↗ | (On Diff #220120) | Can you add a test verifying the fix-it behaviors (with and without parens)? |
Comment Actions
Address review comments.
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
3312 ↗ | (On Diff #220120) | 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 | ||
3 ↗ | (On Diff #220120) | 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 ↗ | (On Diff #220534) | Yeah, we produce the following for this: b = 1 ? (2 ? 3 ? YES : NO : 4 ? YES : NO) : 5 ? YES : NO; Not pretty, but not incorrect. |