clang-format: Correctly detect casts to qualified types.
authorDaniel Jasper <djasper@google.com>
Tue, 19 May 2015 11:18:39 +0000 (11:18 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 19 May 2015 11:18:39 +0000 (11:18 +0000)
commitf5e5ee6d69d974b4f643a9f5291354b3a8850229
tree949d3fd4d82bccaf225b0625b1585bef8bdcbc38
parentd90d6fb53a38ca33b75adaedd5f93480336cb55a
clang-format: Correctly detect casts to qualified types.

Before:
  ns::E f() { return (ns::E) - 1; }

After:
  ns::E f() { return (ns::E)-1; }

This fixes llvm.org/PR23503.

llvm-svn: 237684
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp