clang-format supported with nvcc (cuda files)

This commit is contained in:
akshit-sharma 2019-03-02 21:39:44 -07:00
parent c4328f2a31
commit 163f0ab06e
3 changed files with 10 additions and 2 deletions

View file

@ -142,8 +142,8 @@ let s:default_registry = {
\ }, \ },
\ 'clang-format': { \ 'clang-format': {
\ 'function': 'ale#fixers#clangformat#Fix', \ 'function': 'ale#fixers#clangformat#Fix',
\ 'suggested_filetypes': ['c', 'cpp'], \ 'suggested_filetypes': ['c', 'cpp', 'cuda'],
\ 'description': 'Fix C/C++ files with clang-format.', \ 'description': 'Fix C/C++ and cuda files with clang-format.',
\ }, \ },
\ 'cmakeformat': { \ 'cmakeformat': {
\ 'function': 'ale#fixers#cmakeformat#Fix', \ 'function': 'ale#fixers#cmakeformat#Fix',

View file

@ -21,5 +21,12 @@ g:ale_cuda_nvcc_options *g:ale_cuda_nvcc_options*
This variable can be changed to modify flags given to nvcc. This variable can be changed to modify flags given to nvcc.
===============================================================================
clang-format *ale-cuda-clangformat*
See |ale-c-clangformat| for information about the available options.
Note that the C options are also used for cuda.
=============================================================================== ===============================================================================
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:

View file

@ -103,6 +103,7 @@ ALE supports the following key features for linting:
stylelint...........................|ale-css-stylelint| stylelint...........................|ale-css-stylelint|
cuda..................................|ale-cuda-options| cuda..................................|ale-cuda-options|
nvcc................................|ale-cuda-nvcc| nvcc................................|ale-cuda-nvcc|
clang-format........................|ale-cuda-clangformat|
d.....................................|ale-d-options| d.....................................|ale-d-options|
dls.................................|ale-d-dls| dls.................................|ale-d-dls|
uncrustify..........................|ale-d-uncrustify| uncrustify..........................|ale-d-uncrustify|