" Author: Peter Renström <renstrom.peter@gmail.com>
" Description: Fixing C/C++ files with clang-format.

call ale#Set('c_clangformat_executable', 'clang-format')
call ale#Set('c_clangformat_use_global', 0)
call ale#Set('c_clangformat_options', '')

function! ale#fixers#clangformat#GetExecutable(buffer) abort
    return ale#node#FindExecutable(a:buffer, 'c_clangformat', [
    \   'clang-format',
    \])
endfunction

function! ale#fixers#clangformat#Fix(buffer) abort
    let l:options = ale#Var(a:buffer, 'c_clangformat_options')

    return {
    \   'command': ale#Escape(ale#fixers#clangformat#GetExecutable(a:buffer))
    \       . ' ' . l:options,
    \}
endfunction

scriptencoding utf-8
" Author: Peter Renström <renstrom.peter@gmail.com>
" Description: Fixing C/C++ files with clang-format.

call ale#Set('c_clangformat_executable', 'clang-format')
call ale#Set('c_clangformat_use_global', 0)
call ale#Set('c_clangformat_options', '')

function! ale#fixers#clangformat#GetExecutable(buffer) abort
    return ale#node#FindExecutable(a:buffer, 'c_clangformat', [
    \   'clang-format',
    \])
endfunction

function! ale#fixers#clangformat#Fix(buffer) abort
    let l:options = ale#Var(a:buffer, 'c_clangformat_options')

    return {
    \   'command': ale#Escape(ale#fixers#clangformat#GetExecutable(a:buffer))
    \       . ' ' . l:options,
    \}
endfunction

Add a missing scriptencoding line
Add a missing scriptencoding line

doits/ale,neersighted/ale,IngoHeimbach/ale,hernot/ale,w0rp/ale,adriaanzon/ale,neersighted/ale,w0rp/ale,IngoHeimbach/ale,esran/ale,IngoHeimbach/ale,hernot/ale,hernot/ale,w0rp/ale,neersighted/ale