Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #6 from KblCb/master

small hack for c++11 default/delete
  • Loading branch information...
commit 5986a6b0a136d4c58f6599d3b0fce818cd934690 2 parents e75351e + 1114860
@derekwyatt authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 plugin/protodef.vim
View
7 plugin/protodef.vim
@@ -140,6 +140,7 @@ function! s:GetFunctionPrototypesForCurrentBuffer(opts)
" Get rid of the regular expression that ctags has given us as
" we don't need it and it merely causes problems if there is a
" tab in the prototype at all
+ let origline = line
let line = substitute(line, '/\^.\{-}\$/;', 'removed', '')
let parts = split(line, "\t")
let fname = parts[0]
@@ -163,8 +164,10 @@ function! s:GetFunctionPrototypesForCurrentBuffer(opts)
let implementation = matchstr(parts[5], 'implementation:\zs.*\ze')
endif
endif
- if implementation !=# 'pure virtual'
- call add(commands, linenum . '|' . fname . '|' . class)
+ if matchstr( origline, "= default;" ) == "" && matchstr( origline, "= delete;" ) == ""
+ if implementation !=# 'pure virtual'
+ call add(commands, linenum . '|' . fname . '|' . class)
+ endif
endif
endfor
" Make the call to the pullproto.pl script to get the full prototype
Please sign in to comment.
Something went wrong with that request. Please try again.