alexmurray/flycheck-clang-analyzer

-fcolor-diagnostics not supported

Sarcasm opened this issue · 2 comments

Parsing the compile options does not work when -fcolor-diagnostics is present in the compilation databases.

This code try to fix this:

  :command ("clang"
	    "-fno-color-diagnostics" ; don't include color in output
	    "-fno-caret-diagnostics" ; don't indicate location in output
	    "-fno-diagnostics-show-option" ; don't show warning group
	    "--analyze"
	    (eval (flycheck-clang-analyzer--get-compile-options))
            source-inplace)

However, this code adds the -fno-color-diagnostics option BEFORE the compilation database options,
it should add it AFTER so that the compilation database is overriden.

Thanks for the tip - have confirmed the existing failure is now fixed with ee2b45f

Thanks!