Code forensics  0.1
Generate historical information about code changes
code_forensics.cpp File Reference
#include <range/v3/all.hpp>
#include "common.hpp"
#include "git_ir.hpp"
#include <exception>
#include <signal.h>
#include <string>
#include <map>
#include <fstream>
#include <thread>
#include <mutex>
#include <shared_mutex>
#include <algorithm>
#include <future>
#include <sstream>
#include <optional>
#include <semaphore>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <boost/thread/mutex.hpp>
#include <boost/thread/lock_guard.hpp>
#include "dod_base.hpp"
#include "repo_graph.hpp"
#include "python_interop.hpp"
#include "cli_options.hpp"
#include "logging.hpp"
#include "repo_processing.hpp"
Include dependency graph for code_forensics.cpp:

Macros

#define GIT_SUCCESS   0
 
#define LOG_PY_ERROR(logger)
 

Functions

void load_content (walker_config *config, ir::content_manager &content)
 
void store_content (walker_state *state, CR< ir::content_manager > content)
 
Str parse_python_exception ()
 
PyForensicsexec_python_filter (SPtr< Logger > logger, po::variables_map vm)
 
void signal_handler (int signum)
 
auto main (int argc, const char **argv) -> int
 

Macro Definition Documentation

◆ GIT_SUCCESS

#define GIT_SUCCESS   0

◆ LOG_PY_ERROR

#define LOG_PY_ERROR (   logger)
Value:
{ \
auto exception = parse_python_exception(); \
LOG_E(logger) << "Error during python code execution"; \
LOG_E(logger) << exception; \
}

Function Documentation

◆ exec_python_filter()

PyForensics* exec_python_filter ( SPtr< Logger logger,
po::variables_map  vm 
)

◆ load_content()

void load_content ( walker_config config,
ir::content_manager content 
)

◆ main()

auto main ( int  argc,
const char **  argv 
) -> int

◆ parse_python_exception()

Str parse_python_exception ( )

Parses the value of the active python exception NOTE SHOULD NOT BE CALLED IF NO EXCEPTION

◆ signal_handler()

void signal_handler ( int  signum)

◆ store_content()

void store_content ( walker_state state,
CR< ir::content_manager content 
)
parse_python_exception
Str parse_python_exception()
Definition: code_forensics.cpp:191