Commit 8974b053 by Marcus Winter

removed cpplint warnings, added option to allow checking of *.c files again

parent 656ccf58
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <cassert> #include <cassert>
#include <iterator> #include <iterator>
#include <algorithm> #include <utility>
#include <functional> #include <functional>
#include <embb/base/exceptions.h> #include <embb/base/exceptions.h>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#define EMBB_BASE_INTERNAL_MUTEX_INL_H_ #define EMBB_BASE_INTERNAL_MUTEX_INL_H_
#include <cassert> #include <cassert>
#include <algorithm> #include <utility>
namespace embb { namespace embb {
namespace base { namespace base {
......
...@@ -38,18 +38,17 @@ LogTest::LogTest() { ...@@ -38,18 +38,17 @@ LogTest::LogTest() {
CreateUnit("Test all").Add(&LogTest::Test, this); CreateUnit("Test all").Add(&LogTest::Test, this);
} }
static std::string logged_message;
static void test_log_function(void * context, char const * msg) { static void test_log_function(void * context, char const * msg) {
EMBB_UNUSED(context); std::string * logged_message = reinterpret_cast<std::string*>(context);
logged_message = msg; *logged_message = msg;
} }
void LogTest::Test() { void LogTest::Test() {
using embb::base::Log; using embb::base::Log;
char const * test_msg = "hello"; char const * test_msg = "hello";
std::string logged_message;
Log::SetLogFunction(0, test_log_function); Log::SetLogFunction(&logged_message, test_log_function);
Log::SetLogLevel(EMBB_LOG_LEVEL_TRACE); Log::SetLogLevel(EMBB_LOG_LEVEL_TRACE);
logged_message = "none"; logged_message = "none";
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <CL/opencl.h> #include <CL/opencl.h>
#include <embb/base/c/internal/config.h> #include <embb/base/c/internal/config.h>
#include <embb_mtapi_opencl_runtimelinker.h>
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// function pointer wrappers to hide runtime linking // function pointer wrappers to hide runtime linking
......
...@@ -120,7 +120,7 @@ do ...@@ -120,7 +120,7 @@ do
current_rules+=",-runtime/threadsafe_fn" # These tests are allowed to use the thread unsafe rand() current_rules+=",-runtime/threadsafe_fn" # These tests are allowed to use the thread unsafe rand()
fi fi
done done
python ${c} --filter=$current_rules --root="$project/include" --output=vs7 $file python ${c} --extensions=c,cc,h --filter=$current_rules --root="$project/include" --output=vs7 $file
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
retval=$((retval+1)) retval=$((retval+1))
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment