summaryrefslogtreecommitdiff
path: root/tools/llvm-size
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2015-11-04 22:32:32 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2015-11-04 22:32:32 +0000
commit4e036ff575c54e01aea7f8028d282974480b071e (patch)
tree88b10c6605effbdb8176308168401f15f6789fa6 /tools/llvm-size
parent32968f1f6e71a3a98645bcc13d0cd901fa717617 (diff)
Fix some Clang-tidy modernize warnings, other minor fixes.
Fixed warnings are: modernize-use-override, modernize-use-nullptr and modernize-redundant-void-arg. Differential revision: http://reviews.llvm.org/D14312 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-size')
-rw-r--r--tools/llvm-size/llvm-size.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-size/llvm-size.cpp b/tools/llvm-size/llvm-size.cpp
index de2b0450523..bb299884f25 100644
--- a/tools/llvm-size/llvm-size.cpp
+++ b/tools/llvm-size/llvm-size.cpp
@@ -1,4 +1,4 @@
-//===-- llvm-size.cpp - Print the size of each object section -------------===//
+//===-- llvm-size.cpp - Print the size of each object section ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -30,6 +30,7 @@
#include <algorithm>
#include <string>
#include <system_error>
+
using namespace llvm;
using namespace object;
@@ -98,7 +99,7 @@ static size_t getNumLengthAsString(uint64_t num) {
}
/// @brief Return the printing format for the Radix.
-static const char *getRadixFmt(void) {
+static const char *getRadixFmt() {
switch (Radix) {
case octal:
return PRIo64;