[clang-tidy] Ignore blank spaces between cast's ")" and its sub expr.
authorHaojian Wu <hokein@google.com>
Wed, 12 Jul 2017 16:38:59 +0000 (16:38 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 12 Jul 2017 16:38:59 +0000 (16:38 +0000)
commita9a1b403bcabdd72c4fc7b80df05042c0ebd3b95
treebc587b7aab0d9542289f6eda0ff8c9821dd24c26
parent6f92d2dd24b03e26496bf59fea108ee16c18d28f
[clang-tidy] Ignore blank spaces between cast's ")" and its sub expr.

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);`

Reviewers: alexfh

Reviewed By: alexfh

Subscribers: JDevlieghere, xazax.hun, cfe-commits

Differential Revision: https://reviews.llvm.org/D31700

llvm-svn: 307812
clang-tools-extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
clang-tools-extra/test/clang-tidy/google-readability-casting.cpp