void llvm_print(const char *userfile, int lineno, T &obj, const char* tag, ADDON addon = ADDON()) { std::string unformatted = llvm_to_str(obj); std::string formatted = dlog_format_string_to_html(unformatted); if (outputmode == DLOG_OUTPUT_BOTH || outputmode == DLOG_OUTPUT_FILE) { tag_handler(tag); fdata << DIV( tag) << BOLD("<br>Tag : ") << RED(tag) << NBSP << br << CALLINFO << BROWN(addon.getString()) << NBSP << NBSP << BOLD(" Data : <br>") << formatted << EDIV; } if (outputmode == DLOG_OUTPUT_BOTH || outputmode == DLOG_OUTPUT_STDOUT) { std::cout << "Tag : " << tag << "\t"; if (addon.getString().length() != 0) std::cout << "\t Addon: " << addon.getString() << "\n"; std::cout << unformatted << "\n"; } fdata.flush(); }
void print_to_file(const char * userfile, int lineno, T obj, ADDON addon = ADDON()) { tagset.insert("notag"); (*OS) << DIV("notag") << br << BLUE( obj) << NBSP << CALLINFO << NBSP << BROWN(addon.getString()) << NBSP << EDIV; (*OS).flush(); }
void print_to_default_file(const char * userfile, int lineno, S tag, unsigned int obj, ADDON addon = ADDON()) { tagset.insert(tag); (*OS) << DIV(tag) << BOLD("<br>Tag : ") << RED(tag) << NBSP << CALLINFO << NBSP << BROWN(addon.getString()) << NBSP << BOLD(" Data : <br>") << obj << EDIV; (*OS).flush(); }
void print_to_file(const char * userfile, int lineno, const char* tag, T *obj, ADDON addon) { std::string msg; llvm::raw_string_ostream Msg(msg); Msg << *obj; std::string objS = Msg.str(); replaceAll(objS, "\n", mendl); tagset.insert(tag); (*OS) << DIV(tag) << BOLD("<br>Tag : ") << RED(tag) << NBSP << CALLINFO << NBSP << BROWN(addon.getString()) << NBSP << BOLD(" Data : <br>") << objS << EDIV; (*OS).flush(); }
void print(const char *userfile, int lineno, T obj_in, ADDON addon = ADDON()) { std::string obj = dlog_format_string_to_html(obj_in); if (outputmode == DLOG_OUTPUT_BOTH || outputmode == DLOG_OUTPUT_FILE) { tag_handler("notag"); fdata << DIV("notag") << br << CALLINFO << NBSP << BROWN(addon.getString()) << NBSP << BOLD(" Data : <br>") << obj << EDIV; } if (outputmode == DLOG_OUTPUT_BOTH || outputmode == DLOG_OUTPUT_STDOUT) { if (addon.getString().length() != 0) std::cout << "Addon: " << addon.getString() << "\n"; std::cout << obj_in << "\n"; } fdata.flush(); }