Mercurial > vim
changeset 30793:79a6c53a7539 v9.0.0731
patch 9.0.0731: clang-tidy configuration files are not recognized
Commit: https://github.com/vim/vim/commit/af40f9af335e0c8b167eac31ceace45b6a2e0565
Author: dundargoc <gocdundar@gmail.com>
Date: Wed Oct 12 12:09:40 2022 +0100
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 https://github.com/vim/vim/issues/11350)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Oct 2022 13:15:02 +0200 |
parents | 835032dad46a |
children | d784ec592fbc |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -369,6 +369,9 @@ au BufNewFile,BufRead *.ch call dist#f " 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
--- 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'],