Skip to content

Commit

Permalink
Fixing warnings, updating gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatheny committed Dec 2, 2014
1 parent d383bb0 commit 5f1cf21
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion gtest
Submodule gtest updated 40 files
+4 −0 CHANGES
+19 −9 CMakeLists.txt
+1 −0 Makefile.am
+3 −3 README
+18 −3 cmake/internal_utils.cmake
+89 −53 include/gtest/gtest-printers.h
+71 −33 include/gtest/gtest.h
+86 −40 include/gtest/internal/gtest-internal.h
+39 −39 include/gtest/internal/gtest-param-util-generated.h
+5 −5 include/gtest/internal/gtest-param-util-generated.h.pump
+635 −110 include/gtest/internal/gtest-port.h
+8 −0 include/gtest/internal/gtest-tuple.h
+8 −0 include/gtest/internal/gtest-tuple.h.pump
+3 −3 samples/sample8_unittest.cc
+83 −0 scripts/common.py
+1 −1 scripts/gtest-config.in
+158 −0 scripts/release_docs.py
+5 −3 src/gtest-death-test.cc
+9 −4 src/gtest-filepath.cc
+1 −27 src/gtest-internal-inl.h
+393 −14 src/gtest-port.cc
+11 −1 src/gtest-printers.cc
+3 −3 src/gtest-test-part.cc
+15 −7 src/gtest-typed-test.cc
+382 −48 src/gtest.cc
+103 −48 test/gtest-death-test_test.cc
+3 −3 test/gtest-param-test_test.cc
+106 −36 test/gtest-port_test.cc
+125 −40 test/gtest-printers_test.cc
+21 −1 test/gtest-typed-test_test.cc
+2 −2 test/gtest-unittest-api_test.cc
+9 −15 test/gtest_break_on_failure_unittest.py
+18 −4 test/gtest_catch_exceptions_test.py
+2 −2 test/gtest_output_test.py
+5 −0 test/gtest_output_test_.cc
+17 −5 test/gtest_output_test_golden_lin.txt
+143 −0 test/gtest_premature_exit_test.cc
+18 −3 test/gtest_test_utils.py
+135 −34 test/gtest_unittest.cc
+54 −3 xcode/gtest.xcodeproj/project.pbxproj
2 changes: 1 addition & 1 deletion src/logging/level.cpp
Expand Up @@ -62,7 +62,7 @@ Level Level::fromValue(const uint32_t value)
if (it != valueMap.end()) {
return it->second;
} else {
throw range_error("No such level with value " + value);
throw range_error("No such level with value " + std::to_string(value));
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/logging/logger.cpp
Expand Up @@ -154,7 +154,7 @@ void Logger::trace(const string &msg)
{
log(Level::TRACE, msg);
}
void Logger::trace(Record record, const string &fmt, ...)
void Logger::trace(Record record, string fmt, ...)
{
LOG_WITH_VARARGS(Level::TRACE, record, fmt, this);
}
Expand All @@ -163,7 +163,7 @@ void Logger::debug(const string &msg)
{
log(Level::DEBUG, msg);
}
void Logger::debug(Record record, const string &fmt, ...)
void Logger::debug(Record record, string fmt, ...)
{
LOG_WITH_VARARGS(Level::DEBUG, record, fmt, this);
}
Expand All @@ -172,7 +172,7 @@ void Logger::info(const string &msg)
{
log(Level::INFO, msg);
}
void Logger::info(Record record, const string &fmt, ...)
void Logger::info(Record record, string fmt, ...)
{
LOG_WITH_VARARGS(Level::INFO, record, fmt, this);
}
Expand All @@ -181,7 +181,7 @@ void Logger::warning(const string &msg)
{
log(Level::WARNING, msg);
}
void Logger::warning(Record record, const string &fmt, ...)
void Logger::warning(Record record, string fmt, ...)
{
LOG_WITH_VARARGS(Level::WARNING, record, fmt, this);
}
Expand All @@ -190,7 +190,7 @@ void Logger::error(const string &msg)
{
log(Level::ERROR, msg);
}
void Logger::error(Record record, const string &fmt, ...)
void Logger::error(Record record, string fmt, ...)
{
LOG_WITH_VARARGS(Level::ERROR, record, fmt, this);
}
Expand All @@ -199,7 +199,7 @@ void Logger::fatal(const string &msg)
{
log(Level::FATAL, msg);
}
void Logger::fatal(Record record, const string &fmt, ...)
void Logger::fatal(Record record, string fmt, ...)
{
LOG_WITH_VARARGS(Level::FATAL, record, fmt, this);
}
Expand Down
12 changes: 6 additions & 6 deletions src/logging/logger.h
Expand Up @@ -64,17 +64,17 @@ class Logger
void log(const Level &level, const Record &rec);

void trace(const std::string &msg);
void trace(Record rec, const std::string &fmt, ...);
void trace(Record rec, std::string fmt, ...);
void debug(const std::string &msg);
void debug(Record rec, const std::string &fmt, ...);
void debug(Record rec, std::string fmt, ...);
void info(const std::string &msg);
void info(Record rec, const std::string &fmt, ...);
void info(Record rec, std::string fmt, ...);
void warning(const std::string &msg);
void warning(Record rec, const std::string &fmt, ...);
void warning(Record rec, std::string fmt, ...);
void error(const std::string &msg);
void error(Record rec, const std::string &fmt, ...);
void error(Record rec, std::string fmt, ...);
void fatal(const std::string &msg);
void fatal(Record rec, const std::string &fmt, ...);
void fatal(Record rec, std::string fmt, ...);
protected:
Logger(const std::string &name);
std::string format(const Record &rec);
Expand Down
7 changes: 6 additions & 1 deletion src/logging/record.h
@@ -1,9 +1,14 @@
#ifndef _LOGGING_RECORD_H
#define _LOGGING_RECORD_H

#include "logging/level.h"

#include <string>
#include <stdexcept>
#include "logging/level.h"

extern "C" {
#include <sys/time.h>
}

namespace mckeys {

Expand Down

0 comments on commit 5f1cf21

Please sign in to comment.