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

llvm-svn: 252087
This commit is contained in:
Eugene Zelenko
2015-11-04 22:32:32 +00:00
parent dd23974a5d
commit ffec81ca00
17 changed files with 82 additions and 89 deletions

View File

@@ -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;