Last active
September 14, 2020 12:11
-
-
Save madmann91/95e7492aa0124b85e0ca59e7829e1197 to your computer and use it in GitHub Desktop.
Local ALE setup for C++ projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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