Mercurial > vim
changeset 30928:fa68adeca7c1 v9.0.0798
patch 9.0.0798: clang format configuration files are not recognized
Commit: https://github.com/vim/vim/commit/3c708c43908ba44f075bbaa7daf584c6b46d9723
Author: Marwin Glaser <marwin_g@icloud.com>
Date: Wed Oct 19 15:39:49 2022 +0100
patch 9.0.0798: clang format configuration files are not recognized
Problem: Clang format configuration files are not recognized.
Solution: Use yaml for Clang format configuration files. (Marwin Glaser,
closes #11398)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Oct 2022 16:45:06 +0200 |
parents | b38da2222975 |
children | 88b181cb4a74 |
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-format +au BufNewFile,BufRead .clang-format setf yaml + " Clang-tidy au BufNewFile,BufRead .clang-tidy setf yaml
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -641,7 +641,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', '.clang-tidy'], + \ 'yaml': ['file.yaml', 'file.yml', '.clang-format', '.clang-tidy'], \ 'yang': ['file.yang'], \ 'z8a': ['file.z8a'], \ 'zig': ['file.zig'],