diff options
author | dundargoc <gocdundar@gmail.com> | 2022-10-12 12:09:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-12 12:09:40 +0100 |
commit | af40f9af335e0c8b167eac31ceace45b6a2e0565 (patch) | |
tree | ad5393a9fc3a981f6903d53872bb70ba99f57bd6 | |
parent | 9ce7915d0667e6cb8f930634473f0caf2967f4e3 (diff) | |
download | vim-git-af40f9af335e0c8b167eac31ceace45b6a2e0565.tar.gz |
patch 9.0.0731: clang-tidy configuration files are not recognizedv9.0.0731
Problem: clang-tidy configuration files are not recognized.
Solution: Recognize clang-tidy files as yaml. (closes #11350)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 98f8cceb9..b4bcc8012 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -369,6 +369,9 @@ au BufNewFile,BufRead *.ch call dist#ft#FTchange() " ChordPro au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro +" Clang-tidy +au BufNewFile,BufRead .clang-tidy setf yaml + " Clean au BufNewFile,BufRead *.dcl,*.icl setf clean diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 0449bfde1..17d846df8 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -640,7 +640,7 @@ let s:filename_checks = { \ 'xsd': ['file.xsd'], \ 'xslt': ['file.xsl', 'file.xslt'], \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'], - \ 'yaml': ['file.yaml', 'file.yml'], + \ 'yaml': ['file.yaml', 'file.yml', '.clang-tidy'], \ 'yang': ['file.yang'], \ 'z8a': ['file.z8a'], \ 'zig': ['file.zig'], diff --git a/src/version.c b/src/version.c index 31d9776f7..b44101e72 100644 --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 731, +/**/ 730, /**/ 729, |