mirror of
https://github.com/avast/retdec.git
synced 2024-11-23 21:10:13 +00:00
b59f811f23
* retdec::io: new logging interface Provides new logging interface that is ment to unify output that is produced in each part of RetDec decompiler. The interface is designed to provide eazy management of logging into files/tty. Currently each module od decompiler manages logging on its own. This is not sustainable state as change to logging interface is rather difficult. * Use retdec::io interface for logging * Get rid of llvm-support module This module is now obsolete as all logging mechanisms have been transferred to retdec::io module. * Provide option [-s|--silent] Provides new option [-s|--silent] for retdec-decompiler executable. This option will force retdec not to output anything on stdout. * retdec/config: provide option to specify Log/Error files Provides way to specify Log/Error files to RetDec. This is useful for RetDec plugins that might this way control decompilation output. * Create loggers from user configuration * Fix validators error messages Fixes bug provided by fbbff343. * Change Log functions to return new object Provides change to log interface. Before this commit logging was done on global objects. Now the logging should be made on temporary objects that are returned from special functions. The reason for this is for usage of colors on output. When temporary object is destructed default color is printed on required interface. * Change namespace Log to class Log This way we can avoid not intentional usage of the Log interface. All functions of Log are ment to be used like: Log::info() Log::debug() Log::error() * Provide missing doxygen * Fix missing cassert header Fixes dc5791724. * Enable ANSI colors on Windows Starting Windows aniversary update Windows terminals provide supprot for ANSI colors. This, however, needs to be enabled manually. More about this can be found here: https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences?redirectedfrom=MSDN * utils/io/logger: don't print colors to not supported terminals * Use macro OS_WINDOWS instead of __has_include Provides substitution of __has_include macro to OS_WINDOWS defined in utils/os.h. The reason for this is to maintain a level of consistency in RetDec source code base. * Add a CHANGELOG entry for #791 |
||
---|---|---|
.. | ||
analysis | ||
config | ||
evaluator/arithm_expr_evaluators | ||
graphs/cfg | ||
hll | ||
ir | ||
llvm | ||
obtainer | ||
optimizer/optimizers | ||
pattern | ||
semantics | ||
support | ||
utils | ||
validator/validators | ||
var_name_gen | ||
var_renamer | ||
CMakeLists.txt |