~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/vim/.vim/compiler/clangtidy.vim -rw-r--r-- 583 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" Clang-tidy compiler plugin
" Maintainer: Greg Anders <greg@gpanders.com>
" Last Updated: 1/2/2019

if exists('current_compiler')
  finish
endif
let current_compiler = 'clangtidy'

CompilerSet makeprg=clang-tidy\ -quiet\ %:S
CompilerSet errorformat=
      \%-G%*\\d\ %s\ generated.,
      \%-GError\ while\ processing\ %f.,
      \%E%f:%l:%c:\ fatal\ error:\ %m,
      \%E%f:%l:%c:\ error:\ %m\ [%s],
      \%W%f:%l:%c:\ warning:\ %m\ [%s],
      \%I%f:%l:%c:\ note:\ %m,
      \%-Z%p%^,
      \%C%.%#
      " \%-G%\m%\%%(LLVM\ ERROR:%\|No\ compilation\ database\ found%\)%\@!%.%#,