summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-03-08 21:36:43 +0000
committerGitHub <noreply@github.com>2019-03-08 21:36:43 +0000
commitfd31987f236bfbdf56e9cbaa35a91fb2b2fcc344 (patch)
tree3b20d519052b1699f9c5b1a6ba099e21930660c7
parent413529f603547bad184358db06f8388047a5c9aa (diff)
parent32dbf5942e4798e22da6581b29081ee1eed66705 (diff)
downloadale-fd31987f236bfbdf56e9cbaa35a91fb2b2fcc344.zip
Merge pull request #2327 from akshit-sharma/master
clang-format supported with nvcc (cuda files)
-rw-r--r--autoload/ale/fix/registry.vim4
-rw-r--r--doc/ale-cuda.txt7
-rw-r--r--doc/ale.txt2
3 files changed, 11 insertions, 2 deletions
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim
index 34cb771f..7118c44a 100644
--- a/autoload/ale/fix/registry.vim
+++ b/autoload/ale/fix/registry.vim
@@ -142,8 +142,8 @@ let s:default_registry = {
\ },
\ 'clang-format': {
\ 'function': 'ale#fixers#clangformat#Fix',
-\ 'suggested_filetypes': ['c', 'cpp'],
-\ 'description': 'Fix C/C++ files with clang-format.',
+\ 'suggested_filetypes': ['c', 'cpp', 'cuda'],
+\ 'description': 'Fix C/C++ and cuda files with clang-format.',
\ },
\ 'cmakeformat': {
\ 'function': 'ale#fixers#cmakeformat#Fix',
diff --git a/doc/ale-cuda.txt b/doc/ale-cuda.txt
index 052b3363..0e53f756 100644
--- a/doc/ale-cuda.txt
+++ b/doc/ale-cuda.txt
@@ -22,4 +22,11 @@ g:ale_cuda_nvcc_options *g:ale_cuda_nvcc_options*
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:
diff --git a/doc/ale.txt b/doc/ale.txt
index 33d462c8..eed2c8fb 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -103,6 +103,7 @@ ALE supports the following key features for linting:
stylelint...........................|ale-css-stylelint|
cuda..................................|ale-cuda-options|
nvcc................................|ale-cuda-nvcc|
+ clang-format........................|ale-cuda-clangformat|
d.....................................|ale-d-options|
dls.................................|ale-d-dls|
uncrustify..........................|ale-d-uncrustify|
@@ -2227,6 +2228,7 @@ documented in additional help files.
stylelint.............................|ale-css-stylelint|
cuda....................................|ale-cuda-options|
nvcc..................................|ale-cuda-nvcc|
+ clang-format..........................|ale-cuda-clangformat|
d.......................................|ale-d-options|
dls...................................|ale-d-dls|
uncrustify............................|ale-d-uncrustify|