[PATCH] D147844: Emit warning when implicit cast to bool happens in an conditional operator expression when used inside an overloaded shift operator expression
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 17 07:39:31 PDT 2023
aaron.ballman added a comment.
Thank you for working on this! The only thing I think is missing is a release note, though I did have a question on a change in the tests.
================
Comment at: clang/test/Sema/parentheses.cpp:34
public:
- operator int();
+ operator bool();
Stream &operator<<(int);
----------------
Is this change necessary? Alternatively, can we add this as an overload instead of changing the operator?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147844/new/
https://reviews.llvm.org/D147844
More information about the cfe-commits
mailing list