diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-05-08 21:53:33 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-05-08 21:53:33 +0000 |
commit | 50f8a53856ccfd07b70f1722863957f22db187f3 (patch) | |
tree | c2e46fea033f5d6fa075bc222d9dbcd9107916f3 /unittests | |
parent | 2b94fa799b95d9af755b02445ee659038d113966 (diff) |
Missed formatting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/ADT/StringMapTest.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/unittests/ADT/StringMapTest.cpp b/unittests/ADT/StringMapTest.cpp index be166b15a90..b90c77b1c15 100644 --- a/unittests/ADT/StringMapTest.cpp +++ b/unittests/ADT/StringMapTest.cpp @@ -221,17 +221,18 @@ TEST_F(StringMapTest, NonDefaultConstructable) { struct MoveOnly { int i; MoveOnly(int i) : i(i) {} - MoveOnly(MoveOnly&&) = default; - MoveOnly(const MoveOnly&) = delete; - MoveOnly &operator=(MoveOnly&&) = default; - MoveOnly &operator=(const MoveOnly&) = delete; + MoveOnly(MoveOnly &&) = default; + MoveOnly(const MoveOnly &) = delete; + MoveOnly &operator=(MoveOnly &&) = default; + MoveOnly &operator=(const MoveOnly &) = delete; }; TEST_F(StringMapTest, MoveOnlyKey) { StringMap<MoveOnly> t; t.GetOrCreateValue("Test", MoveOnly(42)); StringRef Key = "Test"; - StringMapEntry<MoveOnly>::Create(Key.begin(), Key.end(), MoveOnly(42))->Destroy(); + StringMapEntry<MoveOnly>::Create(Key.begin(), Key.end(), MoveOnly(42)) + ->Destroy(); } TEST_F(StringMapTest, MoveConstruct) { @@ -259,24 +260,23 @@ TEST_F(StringMapTest, MoveAssignment) { struct Countable { int &InstanceCount; int Number; - Countable(int Number, int &InstanceCount) :InstanceCount(InstanceCount), Number(Number) { + Countable(int Number, int &InstanceCount) + : InstanceCount(InstanceCount), Number(Number) { ++InstanceCount; } Countable(Countable &&C) : InstanceCount(C.InstanceCount), Number(C.Number) { ++InstanceCount; C.Number = -1; } - Countable(const Countable &C) : InstanceCount(C.InstanceCount), Number(C.Number) { + Countable(const Countable &C) + : InstanceCount(C.InstanceCount), Number(C.Number) { ++InstanceCount; } Countable &operator=(Countable C) { Number = C.Number; return *this; } - ~Countable() { - --InstanceCount; - } - + ~Countable() { --InstanceCount; } }; TEST_F(StringMapTest, MoveDtor) { |