diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-01-07 16:14:28 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-01-07 16:14:28 +0000 |
commit | d0af4b46741560cf2e52d819e1f3a2506a1e7a3c (patch) | |
tree | 63af738fd173d19be4a7b5a249d1372051f90ac5 /lib/Format/Format.cpp | |
parent | 4a293a2edaf1b24cbc810c162a4a6a76713d8471 (diff) |
Formatter: Don't put spaces betwen @ and objc keywords.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index c20c459675..8faa93cdc7 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -946,6 +946,8 @@ private: (Left.isNot(tok::identifier) && Left.isNot(tok::kw_sizeof) && Left.isNot(tok::kw_typeof) && Left.isNot(tok::kw_alignof)); } + if (Left.is(tok::at) && Right.getObjCKeywordID() != tok::objc_not_keyword) + return false; return true; } |