/cpp-compiler-pretty-output

Highlight output parts of C++ compilers

Primary LanguageLuaMIT LicenseMIT

Highlight output parts of C++ compilers (gcc, clang and msvc).

$ g++ test.cpp -fdiagnostics-color=always |& cpp-compiler-pretty-output.lua

output sample

An external command like clang-format can be configured to format very large expressions.

$ g++ test.cpp -fdiagnostics-color=always |& ./cpp-compiler-pretty-output.lua -c $COLUMNS 'clang-format | ./cpp-compiler-pretty-output.lua -E'

output sample with clang-format

More options with -h/--help parameter.

Installation

luarocks install --local https://raw.githubusercontent.com/jonathanpoelen/cpp-compiler-pretty-output/master/cpp-compiler-pretty-output-1.1-1.rockspec

# or in your local directory

luarocks make --local cpp-compiler-pretty-output-1.1-1.rockspec