2019-10-25 14:25:48 +02:00
|
|
|
" Create the `b:undo_ftplugin` variable if it doesn't exist
|
|
|
|
call ftplugined#check_undo_ft()
|
2019-10-25 14:15:56 +02:00
|
|
|
|
2019-10-17 11:23:22 +02:00
|
|
|
" More warnings and the usual version in flags for Clang
|
|
|
|
let b:ale_c_clang_options='-Wall -Wextra -pedantic -std=c99'
|
2019-12-22 20:53:12 +01:00
|
|
|
let b:undo_ftplugin.='|unlet! b:ale_c_clang_options'
|
2019-10-17 11:23:22 +02:00
|
|
|
|
|
|
|
" More warnings and the usual version in flags for GCC
|
|
|
|
let b:ale_c_gcc_options='-Wall -Wextra -pedantic -std=c99'
|
2019-12-22 20:53:12 +01:00
|
|
|
let b:undo_ftplugin.='|unlet! b:ale_c_gcc_options'
|
2019-10-17 11:23:22 +02:00
|
|
|
|
2019-10-12 11:11:05 +02:00
|
|
|
" Use compile_commands.json to look for additional flags
|
|
|
|
let b:ale_c_parse_compile_commands=1
|
2019-12-22 20:53:12 +01:00
|
|
|
let b:undo_ftplugin.='|unlet! b:ale_c_parse_compile_commands'
|