Added backward-cpp stack printer (90398eef20f4e7e0e939322d7e84f9c52078a325)

This commit is contained in:
Bartek Kryza
2022-12-20 19:18:31 +01:00
parent 834ead063e
commit d1723f7b96
5 changed files with 4528 additions and 2 deletions

View File

@@ -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)
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

View File

@@ -24,6 +24,10 @@
#include "util/util.h"
#include "version.h"
#ifndef NDEBUG
#include <backward-cpp/backward.hpp>
#endif
#include <clang/Basic/Version.h>
#include <clang/Config/config.h>
#include <cli11/CLI11.hpp>
@@ -36,6 +40,12 @@
#include <string.h>
#include <util/thread_pool_executor.h>
#ifndef NDEBUG
namespace backward {
backward::SignalHandling sh;
} // namespace backward
#endif
using namespace clanguml;
using config::config;

View File

@@ -4,7 +4,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
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}")
if(APPLE)

21
thirdparty/backward-cpp/LICENSE.txt vendored Normal file
View 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

File diff suppressed because it is too large Load Diff