When an overloaded operator is called, its argument must be an
expression.
Before:
void f() { a.operator()(a *a); }
After:
void f() { a.operator()(a * a); }
Signed-off-by: Yilong Guo <yilong.guo@intel.com>
Differential D103678
[Format] Fix incorrect pointer/reference detection Nuullll on Jun 4 2021, 2:42 AM. Authored by
Details When an overloaded operator is called, its argument must be an Before: void f() { a.operator()(a *a); } After: void f() { a.operator()(a * a); } Signed-off-by: Yilong Guo <yilong.guo@intel.com>
Diff Detail Event Timeline
Comment Actions LGTM modulo nits.
Comment Actions Do you need some one to commit this? If yes please state name and email, some one will chime in to commit it. Comment Actions Yes, please someone help commit this. Name: Yilong Guo Thanks in advance! |
Do we need to worry about Prev ever being null? Does the assert ever fire? if not why have it in the first place?
We'll crash if it is, do we want to guard against that?