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);
Paths
| Differential D31700
[clang-tidy] Ignore blank spaces between cast's ")" and its sub expr. ClosedPublic Authored by hokein on Apr 4 2017, 11:55 PM.
Details Summary 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.
This revision is now accepted and ready to land.May 16 2017, 7:57 AM Comment Actions
I somewhat forgot this minor patch.
Closed by commit rL307812: [clang-tidy] Ignore blank spaces between cast's ")" and its sub expr. (authored by hokein). · Explain WhyJul 12 2017, 9:39 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 106242 clang-tools-extra/trunk/clang-tidy/google/AvoidCStyleCastsCheck.cpp
clang-tools-extra/trunk/test/clang-tidy/google-readability-casting.cpp
|