Commit 8974b053 by Marcus Winter

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

parent 656ccf58
......@@ -29,7 +29,7 @@
#include <cassert>
#include <iterator>
#include <algorithm>
#include <utility>
#include <functional>
#include <embb/base/exceptions.h>
......
......@@ -28,7 +28,7 @@
#define EMBB_BASE_INTERNAL_MUTEX_INL_H_
#include <cassert>
#include <algorithm>
#include <utility>
namespace embb {
namespace base {
......
......@@ -38,18 +38,17 @@ LogTest::LogTest() {
CreateUnit("Test all").Add(&LogTest::Test, this);
}
static std::string logged_message;
static void test_log_function(void * context, char const * msg) {
EMBB_UNUSED(context);
logged_message = msg;
std::string * logged_message = reinterpret_cast<std::string*>(context);
*logged_message = msg;
}
void LogTest::Test() {
using embb::base::Log;
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);
logged_message = "none";
......
......@@ -26,6 +26,7 @@
#include <CL/opencl.h>
#include <embb/base/c/internal/config.h>
#include <embb_mtapi_opencl_runtimelinker.h>
//////////////////////////////////////////////////////////////////////////
// function pointer wrappers to hide runtime linking
......
......@@ -120,7 +120,7 @@ do
current_rules+=",-runtime/threadsafe_fn" # These tests are allowed to use the thread unsafe rand()
fi
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
retval=$((retval+1))
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