diff options
author | Martin Probst <martin@probst.io> | 2017-03-16 10:21:35 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2017-03-16 10:21:35 +0000 |
commit | 976270eae62d60b2e834bcd635fd7a322d0f4d17 (patch) | |
tree | 845cb07998ba1ec9978a70266c105408e1b3abf7 /unittests/Format/FormatTest.cpp | |
parent | f54b40f9cf6133a18e02b6fbb396476066b15a5e (diff) |
[clang-format] disable adding extra space after MSVC '__super' keyword
clang-format treats MSVC `__super` keyword like all other keywords adding
a single space after. This change disables this behavior for `__super`.
Patch originally by jutocz (thanks!).
Differential Revision: https://reviews.llvm.org/D30932
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 674c3b500c..6a250eb8cf 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -9977,6 +9977,10 @@ TEST_F(FormatTest, ArrayAsTemplateType) { format("auto a = unique_ptr < Foo < Bar>[10]> ;", Spaces)); } +TEST_F(FormatTest, NoSpaceAfterSuper) { + verifyFormat("__super::FooBar();"); +} + TEST(FormatStyle, GetStyleOfFile) { vfs::InMemoryFileSystem FS; // Test 1: format file in the same directory. |