~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/compiler/clangtidy.vim -rw-r--r-- 583 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 4 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%\)%\@!%.%#,