Added backward-cpp stack printer (90398eef20f4e7e0e939322d7e84f9c52078a325)
This commit is contained in:
@@ -25,7 +25,7 @@ set(UML_HEADERS_DIR ${PROJECT_SOURCE_DIR}/src/uml)
|
|||||||
#
|
#
|
||||||
option(LINK_LLVM_SHARED "Should LLVM be linked using shared libraries or statically" ON)
|
option(LINK_LLVM_SHARED "Should LLVM be linked using shared libraries or statically" ON)
|
||||||
set(LLVM_VERSION CACHE STRING "Path to custom llvm-config executable")
|
set(LLVM_VERSION CACHE STRING "Path to custom llvm-config executable")
|
||||||
set(GIT_VERSION "0.1.0" CACHE STRING "clang-uml version")
|
set(GIT_VERSION "0.3.0" CACHE STRING "clang-uml version")
|
||||||
|
|
||||||
#
|
#
|
||||||
# Setup LLVM
|
# Setup LLVM
|
||||||
|
|||||||
10
src/main.cc
10
src/main.cc
@@ -24,6 +24,10 @@
|
|||||||
#include "util/util.h"
|
#include "util/util.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
#include <backward-cpp/backward.hpp>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <clang/Basic/Version.h>
|
#include <clang/Basic/Version.h>
|
||||||
#include <clang/Config/config.h>
|
#include <clang/Config/config.h>
|
||||||
#include <cli11/CLI11.hpp>
|
#include <cli11/CLI11.hpp>
|
||||||
@@ -36,6 +40,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <util/thread_pool_executor.h>
|
#include <util/thread_pool_executor.h>
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
namespace backward {
|
||||||
|
backward::SignalHandling sh;
|
||||||
|
} // namespace backward
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace clanguml;
|
using namespace clanguml;
|
||||||
using config::config;
|
using config::config;
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
set(TEST_DISABLE_WARNINGS "-Wno-unused-parameter -Wno-unused-private-field -Wno-unused-variable -Wno-attributes")
|
set(TEST_DISABLE_WARNINGS "-Wno-unused-parameter -Wno-unused-private-field -Wno-unused-variable -Wno-attributes -Wno-nonnull -Wno-aggressive-loop-optimizations")
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBCLANG_CXXFLAGS} ${TEST_DISABLE_WARNINGS}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBCLANG_CXXFLAGS} ${TEST_DISABLE_WARNINGS}")
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
|||||||
21
thirdparty/backward-cpp/LICENSE.txt
vendored
Normal file
21
thirdparty/backward-cpp/LICENSE.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
Copyright 2013 Google Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
4495
thirdparty/backward-cpp/backward.hpp
vendored
Normal file
4495
thirdparty/backward-cpp/backward.hpp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user