Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Do not override options cppcheck arguments from config file with cppcheck_args #2375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/syntastic-checkers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ Additionally:
*'g:syntastic_cppcheck_config_file'*
Type: string
Default: unset
File containing compilation flags (such as defines or include directories),
one option per line (cf. |syntastic-config-files|).
File containing additional compilation flags (such as defines or include
directories), one option per line (cf. |syntastic-config-files|).

See also: |syntastic-cpp-cppcheck|.

Expand Down
2 changes: 1 addition & 1 deletion syntax_checkers/c/cppcheck.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function! SyntaxCheckers_c_cppcheck_GetLocList() dict
let buf = bufnr('')

let makeprg = self.makeprgBuild({
\ 'args': syntastic#c#ReadConfig(syntastic#util#bufVar(buf, 'cppcheck_config_file')),
\ 'args_before': syntastic#c#ReadConfig(syntastic#util#bufVar(buf, 'cppcheck_config_file')),
\ 'args_after': '-q --enable=style' })

let errorformat =
Expand Down