If you want to color any output, you have to communicate that intention to the thing that displays it. For displaying the output of commands, typically a terminal is used, nowadays in the form of terminal emulator.
If your terminal supports ANSI color escape sequences, you could just mockcpplint process and output a color code before and after it is run. On a *unix environment you could create an executable file named mycpplint with the content along:
If you want to color any output, you have to communicate that intention to the thing that displays it. For displaying the output of commands, typically a terminal is used, nowadays in the form of terminal emulator.
If your terminal supports ANSI color escape sequences, you could just mock
cpplintprocess and output a color code before and after it is run. On a *unix environment you could create an executable file namedmycpplintwith the content along:and then add that executable file location to
PATHand doset(CMAKE_CXX_CPPLINT "mycpplint").