]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0731: clang-tidy configuration files are not recognized v9.0.0731
authordundargoc <gocdundar@gmail.com>
Wed, 12 Oct 2022 11:09:40 +0000 (12:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Oct 2022 11:09:40 +0000 (12:09 +0100)
Problem:    clang-tidy configuration files are not recognized.
Solution:   Recognize clang-tidy files as yaml. (closes #11350)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 98f8cceb9597648b1281e8e2ac87dd4a1d8d8835..b4bcc8012a9f7d50c7c7cf5e122f9de4864901ed 100644 (file)
@@ -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
 
index 0449bfde1a65649abe811746f046a7aeac6b8791..17d846df801311d79a4b465d10ce169cdc2210d5 100644 (file)
@@ -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'],
index 31d9776f7d2980c63b040a45f12199c0c145e373..b44101e72c09a7499ff6402eca31be7e574da2db 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    731,
 /**/
     730,
 /**/