25#ifdef ENABLE_BACKWARD_CPP
26#define BACKWARD_HAS_DW 1
27#define BACKWARD_HAS_LIBUNWIND 1
28#include <backward-cpp/backward.hpp>
31#include <cli11/CLI11.hpp>
32#include <spdlog/spdlog.h>
36#ifdef ENABLE_BACKWARD_CPP
38backward::SignalHandling sh;
44int main(
int argc,
const char *argv[])
49 if (res == cli::cli_flow_t::kExit)
52 if (res == cli::cli_flow_t::kError)
57 spdlog::set_error_handler([](
const std::string & ) {
67 const auto compilation_database_files = db->getAllFiles();
69 std::map<std::string ,
70 std::vector<std::string> >
71 translation_units_map;
78 translation_units_map);
84 LOG_ERROR(
"Failed to load compilation database from {} due to: {}",
89 LOG_ERROR(
"Querying provided compiler driver {} did not provide any "
90 "paths, please make sure the path is correct and that your "
91 "compiler is GCC-compatible: {}",