CBuild
C++ build system with scripts written in c++
|
Generates compile_commands.json. More...
#include <ccj.hpp>
Public Member Functions | |
ccj_out () | |
Create new compile_commands.json generator. | |
virtual void | generate (CBuild::RType mode, lib::map< std::string, std::string > *args, std::vector< std::string > *pargs) override |
Generate some output. | |
virtual bool | init () override |
Some init. | |
![]() | |
generator_base (std::string out) | |
Create and save output file name. | |
Additional Inherited Members | |
![]() | |
std::string | OUT |
|
inline |
|
overridevirtual |
Generate some output.
mode | => CBuild::RType -> CBuild arg |
args | => lib::map<std::string, std::string>* -> CBuild arg |
args | => std::vector<std::string>* -> Preprocessed args |
Implements CBuild::generator_base.
Definition at line 191 of file generator.cpp.
References lib::map< _K, _D >::at(), CBuild::BUILD, CBuild::fs::create(), CBuild::line_filebuff::del_line(), CBuild::eval_cmd(), CBuild::fs::exists(), CBuild::fs::FILE, lib::map< _K, _D >::get(), CBuild::line_filebuff::get_line(), lib::map< _K, _D >::get_ptr(), CBuild::Registry::GetToolchain(), CBuild::MAGENTA, CBuild::preprocess_json_str(), CBuild::print(), CBuild::print_full(), lib::map< _K, _D >::push_back(), CBuild::RED, CBuild::line_filebuff::set_line(), lib::map< _K, _D >::size(), and CBuild::line_filebuff::update().
|
overridevirtual |
Some init.
Implements CBuild::generator_base.
Definition at line 317 of file generator.cpp.
References CBuild::disable_system().