CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
Classes | Functions
cbuild_hash.cpp File Reference
#include "../../headers/map.hpp"
#include "fstream"
#include "inttypes.h"
#include "regex"
#include "string"
#include "sys/resource.h"
#include "vector"
#include "../../headers/build_data.hpp"
#include "../../headers/filesystem++.hpp"
#include "../../headers/hasher/cbuild_hash.hpp"
#include "../../headers/print.hpp"

Go to the source code of this file.

Classes

struct  extended_metadata
 
struct  internal_data
 

Functions

std::regex cpp_comment ("[^\'\"]\\/\\/.*\n", std::regex_constants::optimize|std::regex_constants::ECMAScript)
 
std::regex c_comment ("\\/\\*([\\s\\S]*?)\\*\\/", std::regex_constants::optimize|std::regex_constants::ECMAScript)
 
std::regex include_detector ("#include [\"<]([^\">]+)[\">]", std::regex_constants::optimize|std::regex_constants::ECMAScript)
 
void parse_file (internal_data *data, std::string target_id, std::string file, std::string object)
 
void print_metadata (extended_metadata *m)
 
bool check_mismatch_recursive (const extended_metadata *file, internal_data *data)
 

Function Documentation

◆ c_comment()

std::regex c_comment ( "\\/\\*([\\s\\S]*?)\\*\\/" ,
std::regex_constants::optimize|std::regex_constants::ECMAScript  )

Referenced by parse_file().

◆ check_mismatch_recursive()

bool check_mismatch_recursive ( const extended_metadata * file,
internal_data * data )

◆ cpp_comment()

std::regex cpp_comment ( "\\/\\/.*\n" [^\'\"],
std::regex_constants::optimize|std::regex_constants::ECMAScript  )

Referenced by parse_file().

◆ include_detector()

std::regex include_detector ( "#include ([^\">]+)" [\"<][\">],
std::regex_constants::optimize|std::regex_constants::ECMAScript  )

Referenced by parse_file().

◆ parse_file()

void parse_file ( internal_data * data,
std::string target_id,
std::string file,
std::string object )

◆ print_metadata()

void print_metadata ( extended_metadata * m)