]> granicus.if.org Git - clang/commit
Improve formatting of function types.
authorDaniel Jasper <djasper@google.com>
Wed, 15 May 2013 07:51:51 +0000 (07:51 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 15 May 2013 07:51:51 +0000 (07:51 +0000)
commita8fda85af8ddc91366b5522aee3a78a1fed206f7
treefbdba1f9740dbb216460347ddda635a76e21235f
parent7247c88d1e41514a41085f83ebf03dd5220e054a
Improve formatting of function types.

The function type detection in r181438 and r181764 detected function
types too eagerly. This led to inconsistent formatting of inline
assembly and (together with r181687) to an incorrect formatting of calls
in macros.

Before: #define DEREF_AND_CALL_F(parameter) f (*parameter)
After:  #define DEREF_AND_CALL_F(parameter) f(*parameter)

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