Remove traces of custom assert

Reviewers: mislav.bradac

Reviewed By: mislav.bradac

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D905
This commit is contained in:
Teon Banek 2017-10-12 14:22:44 +02:00
parent ebc7b2b1b9
commit 96d9846b25
22 changed files with 2 additions and 58 deletions

View File

@ -136,18 +136,6 @@ if(CLANG_TIDY)
endif()
# -----------------------------------------------------------------------------
# custom assert control parameters
# by default on custom assert only the message, filename and line number will be
# printed on stderr, if STACKTRACE_ASSERT is ON the whole stacktrace is going to
# be printed on stderr
option(STACKTRACE_ASSERT "Dump stacktrace on custom assert" OFF)
message(STATUS "STACKTRACE_ASSERT: ${STACKTRACE_ASSERT}")
if(STACKTRACE_ASSERT)
add_definitions(-DSTACKTRACE_ASSERT_ON)
endif()
# -----------------------------------------------------------------------------
# ndebug
option(NDEBUG "No debug" OFF)
message(STATUS "NDEBUG: ${NDEBUG} (be careful CMAKE_BUILD_TYPE can also \

View File

@ -5,7 +5,6 @@
#include <gtest/gtest.h>
#include "timer.hpp"
#include "utils/assert.hpp"
using namespace std::chrono_literals;
using namespace utils;

View File

@ -2,8 +2,6 @@
#include <memory>
#include "utils/assert.hpp"
namespace utils {
/**

View File

@ -5,11 +5,11 @@
#include <memory>
#include <vector>
#include <fmt/format.h>
#include <glog/logging.h>
#include "communication/bolt/v1/constants.hpp"
#include "communication/bolt/v1/decoder/buffer.hpp"
#include "utils/assert.hpp"
namespace communication::bolt {

View File

@ -7,7 +7,6 @@
#include "query/typed_value.hpp"
#include "storage/property_value.hpp"
#include "utils/algorithm.hpp"
#include "utils/assert.hpp"
#include "utils/exceptions.hpp"
namespace communication::bolt {

View File

@ -8,7 +8,6 @@
#include <glog/logging.h>
#include "communication/bolt/v1/constants.hpp"
#include "utils/assert.hpp"
#include "utils/bswap.hpp"
namespace communication::bolt {

View File

@ -12,7 +12,6 @@
#include "communication/worker.hpp"
#include "io/network/socket_event_dispatcher.hpp"
#include "utils/assert.hpp"
namespace communication {

View File

@ -5,7 +5,6 @@
#include "storage/edge_accessor.hpp"
#include "storage/vertex.hpp"
#include "storage/vertex_accessor.hpp"
#include "utils/assert.hpp"
#include "utils/on_scope_exit.hpp"
GraphDbAccessor::GraphDbAccessor(GraphDb &db)

View File

@ -1,6 +1,5 @@
#include "io/network/socket.hpp"
#include <cassert>
#include <cstdio>
#include <cstring>
#include <iostream>

View File

@ -3,7 +3,6 @@
#include "storage/locking/record_lock.hpp"
#include "threading/sync/lockable.hpp"
#include "transactions/transaction.hpp"
#include "utils/assert.hpp"
#include "utils/exceptions.hpp"
namespace mvcc {

View File

@ -1,25 +0,0 @@
/**
* @file
* This file defines @c permanent_assert and @c debug_assert.
*
* If @c STACKTRACE_ASSERT_ON is defined, when an assertion fails, the full
* stack trace will be printed to @c stderr, otherwise just the basic
* information will be printed out (message, file, line)
*/
#pragma once
#include <cstdlib>
#include <iostream>
#include <sstream>
#include "utils/stacktrace.hpp"
#ifdef STACKTRACE_ASSERT_ON
#define __handle_assert_message(message) \
Stacktrace stacktrace; \
std::cerr << "ASSERT: " << message << std::endl; \
std::cerr << stacktrace.dump();
#else
#define __handle_assert_message(message) \
std::cerr << "ASSERT: " << message << std::endl;
#endif

View File

@ -18,7 +18,6 @@
#include "storage/property_value.hpp"
#include "storage/vertex_accessor.hpp"
#include "threading/sync/lock_timeout_exception.hpp"
#include "utils/assert.hpp"
namespace utils {

View File

@ -12,7 +12,6 @@
#include "data_structures/concurrent/skiplist.hpp"
#include "skiplist_helper.hpp"
#include "utils/assert.hpp"
void Insert(benchmark::State &state) {
SkipList<int> skiplist;

View File

@ -4,7 +4,6 @@
#include <thread>
#include "threading/sync/futex.hpp"
#include "utils/assert.hpp"
Futex futex;
int x = 0;

View File

@ -1,7 +1,6 @@
#pragma once
#include <array>
#include <cassert>
#include <cstring>
#include <iostream>
#include <random>

View File

@ -3,7 +3,6 @@
#endif
#include <array>
#include <cassert>
#include <chrono>
#include <cstring>
#include <iostream>

View File

@ -22,7 +22,6 @@
#include "threading/sync/spinlock.hpp"
#include "utils/algorithm.hpp"
#include "utils/algorithm.hpp"
#include "utils/assert.hpp"
#include "utils/timer.hpp"
using communication::bolt::DecodedValue;

View File

@ -13,7 +13,6 @@
#include "communication/bolt/v1/encoder/base_encoder.hpp"
#include "durability/file_writer_buffer.hpp"
#include "utils/assert.hpp"
#include "utils/string.hpp"
#include "utils/timer.hpp"

View File

@ -3,7 +3,6 @@
*/
#include <array>
#include <atomic>
#include <cassert>
#include <iostream>
#include <thread>

View File

@ -1,5 +1,4 @@
#include <array>
#include <cassert>
#include <cstring>
#include <iostream>
#include <random>

View File

@ -1,10 +1,10 @@
#include <iostream>
#include <fmt/format.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include "data_structures/concurrent/concurrent_map.hpp"
#include "utils/assert.hpp"
using concurrent_map_t = ConcurrentMap<int, int>;

View File

@ -4,7 +4,6 @@
#include <gtest/gtest.h>
#include "data_structures/concurrent/concurrent_set.hpp"
#include "utils/assert.hpp"
void print_skiplist(const ConcurrentSet<int>::Accessor<false> &skiplist) {
DLOG(INFO) << "Skiplist set now has:";