Skip to content

Instantly share code, notes, and snippets.

@madmann91
Last active September 14, 2020 12:11
Show Gist options
  • Save madmann91/95e7492aa0124b85e0ca59e7829e1197 to your computer and use it in GitHub Desktop.
Save madmann91/95e7492aa0124b85e0ca59e7829e1197 to your computer and use it in GitHub Desktop.
Local ALE setup for C++ projects
" Lint .h files as C++, not C
let g:ale_pattern_options_enabled = 1
let g:ale_pattern_options = { '\.h$': { 'ale_linters': { 'cpp' : ['cc', 'gcc', 'clang'] } } }
" Set flags for gcc/clang
let opts = '-std=c++17 -Wall -Wextra'
let g:ale_linters = { 'cpp': ['cc', 'gcc', 'clang'] }
let g:ale_cpp_cc_options = opts
let g:ale_cpp_gcc_options = opts
let g:ale_cpp_clang_options = opts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment