]> granicus.if.org Git - clang/commit
Added some heuristics to identify c style casting
authorDinesh Dwivedi <dinesh.d@samsung.com>
Mon, 5 May 2014 13:14:35 +0000 (13:14 +0000)
committerDinesh Dwivedi <dinesh.d@samsung.com>
Mon, 5 May 2014 13:14:35 +0000 (13:14 +0000)
commitf58cd1f9682be8b31d3f3c9b0ee8e48a01d88082
tree6cf1e3ac0161096f6556f7d53ea45545fb7640db
parent01d8eaed85652249c02298215cf3a9e49a1eb16a
Added some heuristics to identify c style casting

Before:
void f() { my_int a = (my_int) * b; }
void f() { return P ? (my_int) * P : (my_int)0; }

After:
void f() { my_int a = (my_int)*b; }
void f() { return P ? (my_int)*P : (my_int)0; }

Differential Revision: http://reviews.llvm.org/D3576

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207964 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp