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.
Parsing the compile options does not work when
-fcolor-diagnostics
is present in the compilation databases.This code try to fix this:
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.