ale/ale_linters/cpp
Nicolas Pauss 78942df284
cc: use '-x c*-header' for header files for C and C++ linters. (#4318)
When linting an header file in C or C++, `-x c-header` or
`-x c++-header` should be used instead of `-x c` or `-x c++`.

Using `-x c` or `-x c++` for headers files can lead to unused variables
and functions marked as static inlined as seen in #4096.

Using `-x c-header` or `-x c++-header` solve these issues.

The list of file extensions that are considered as header files can be
configured with the variables `g:ale_c_cc_header_exts` and
`g:ale_cpp_cc_header_exts`.
2022-09-25 09:02:43 +09:00
..
cc.vim cc: use '-x c*-header' for header files for C and C++ linters. (#4318) 2022-09-25 09:02:43 +09:00
ccls.vim ccls: Detect build dir and set compilationDatabaseDirectory 2020-04-18 13:57:57 +02:00
clangcheck.vim clangcheck: Add -fno-color-diagnostics 2019-09-26 20:28:33 -04:00
clangd.vim Added tests for clangd compile commands dectection 2019-10-09 13:40:04 -04:00
clangtidy.vim Fix clang-tidy ignoring compile_commands.json 2021-01-22 15:19:38 +01:00
clazy.vim
cppcheck.vim Close #2281 - Separate cwd commands from commands 2021-03-01 20:11:10 +00:00
cpplint.vim
cquery.vim Fix #2421 - Use compile_commands.json in build dirs to find roots 2019-05-20 19:57:08 +01:00
cspell.vim Add cspell Linter (#3981) 2021-11-19 07:41:05 +09:00
flawfinder.vim