Before the change:
auto i = (Enum) 5; => auto i = static_cast<Enum>( 5);
After the change:
auto i = (Enum) 5; => auto i = static_cast<Enum>(5);
Differential D31700
[clang-tidy] Ignore blank spaces between cast's ")" and its sub expr. hokein on Apr 4 2017, 11:55 PM. Authored by
Details Before the change: auto i = (Enum) 5; => auto i = static_cast<Enum>( 5); After the change: auto i = (Enum) 5; => auto i = static_cast<Enum>(5);
Diff Detail
Event TimelineComment Actions Sorry, missed your patch somehow. LG with one nit.
Comment Actions
I somewhat forgot this minor patch.
|
Why is this only done on non-parenthesized expressions? Will (int) (b) turn into static_cast<int> (b) as well?