]> granicus.if.org Git - clang/commit
Improve clang-format's c-style cast detection.
authorDaniel Jasper <djasper@google.com>
Fri, 31 May 2013 16:14:28 +0000 (16:14 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 31 May 2013 16:14:28 +0000 (16:14 +0000)
commitb8b4295b4ee161bfb76ff7b0ec1007bfd959553b
tree323065357b331a6b1aa6a58b1e71c1e62747c32f
parent85b03eb9fe91e94f03ed68a63d6edfab19f9fc9d
Improve clang-format's c-style cast detection.

Before:
  x[(uint8) y];
  x = (uint8) y;
  void f() { x = (uint8) y; }
  #define AA(X) sizeof(((X *) NULL)->a)

After:
  x[(uint8)y];
  x = (uint8)y;
  void f() { x = (uint8)y; }
  #define AA(X) sizeof(((X *)NULL)->a)

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