0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0731: clang-tidy configuration files are not recognized

Problem:    clang-tidy configuration files are not recognized.
Solution:   Recognize clang-tidy files as yaml. (closes #11350)
This commit is contained in:
dundargoc
2022-10-12 12:09:40 +01:00
committed by Bram Moolenaar
parent 9ce7915d06
commit af40f9af33
3 changed files with 6 additions and 1 deletions

View File

@@ -369,6 +369,9 @@ au BufNewFile,BufRead *.ch call dist#ft#FTchange()
" ChordPro " ChordPro
au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro
" Clang-tidy
au BufNewFile,BufRead .clang-tidy setf yaml
" Clean " Clean
au BufNewFile,BufRead *.dcl,*.icl setf clean au BufNewFile,BufRead *.dcl,*.icl setf clean

View File

@@ -640,7 +640,7 @@ let s:filename_checks = {
\ 'xsd': ['file.xsd'], \ 'xsd': ['file.xsd'],
\ 'xslt': ['file.xsl', 'file.xslt'], \ 'xslt': ['file.xsl', 'file.xslt'],
\ 'yacc': ['file.yy', 'file.yxx', 'file.y++'], \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
\ 'yaml': ['file.yaml', 'file.yml'], \ 'yaml': ['file.yaml', 'file.yml', '.clang-tidy'],
\ 'yang': ['file.yang'], \ 'yang': ['file.yang'],
\ 'z8a': ['file.z8a'], \ 'z8a': ['file.z8a'],
\ 'zig': ['file.zig'], \ 'zig': ['file.zig'],

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
731,
/**/ /**/
730, 730,
/**/ /**/