aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/AlignOfTest.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2016-01-26 18:48:36 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2016-01-26 18:48:36 +0000
commit6ac3f739ca4cd90b41388cc50070a6bca85b6842 (patch)
treec6439c11ed75e6552c6b7f4a0c7ff84cfa29ce8e /llvm/unittests/Support/AlignOfTest.cpp
parent3d0c46d489400c7a4fd1c06e3150a0c8fc0cca37 (diff)
downloadllvm-6ac3f739ca4cd90b41388cc50070a6bca85b6842.zip
llvm-6ac3f739ca4cd90b41388cc50070a6bca85b6842.tar.gz
llvm-6ac3f739ca4cd90b41388cc50070a6bca85b6842.tar.bz2
Fix Clang-tidy modernize-use-nullptr and modernize-use-override warnings; other minor fixes.
Differential revision: reviews.llvm.org/D16568 llvm-svn: 258831
Diffstat (limited to 'llvm/unittests/Support/AlignOfTest.cpp')
-rw-r--r--llvm/unittests/Support/AlignOfTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/Support/AlignOfTest.cpp b/llvm/unittests/Support/AlignOfTest.cpp
index be208f7..393bfeb 100644
--- a/llvm/unittests/Support/AlignOfTest.cpp
+++ b/llvm/unittests/Support/AlignOfTest.cpp
@@ -1,4 +1,4 @@
-//=== - llvm/unittest/Support/AlignOfTest.cpp - Alignment utility tests ----===//
+//=== - llvm/unittest/Support/AlignOfTest.cpp - Alignment utility tests ---===//
//
// The LLVM Compiler Infrastructure
//
@@ -90,14 +90,14 @@ V7::~V7() {}
V8::~V8() {}
struct Abstract1 {
- virtual ~Abstract1() {}
+ virtual ~Abstract1() = default;
virtual void method() = 0;
char c;
};
struct Abstract2 : Abstract1 {
- virtual ~Abstract2() {}
+ ~Abstract2() override = default;
double d;
};
@@ -354,4 +354,4 @@ TEST(AlignOfTest, BasicAlignedArray) {
EXPECT_EQ(2u, sizeof(AlignedCharArray<2, 2>));
EXPECT_EQ(16u, sizeof(AlignedCharArray<2, 16>));
}
-}
+} // end anonymous namespace