Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #6 from KblCb/master

small hack for c++11 default/delete
  • Loading branch information...
commit 5986a6b0a136d4c58f6599d3b0fce818cd934690 2 parents e75351e + 1114860
Derek Wyatt authored September 19, 2012

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. 7  plugin/protodef.vim
7  plugin/protodef.vim
@@ -140,6 +140,7 @@ function! s:GetFunctionPrototypesForCurrentBuffer(opts)
140 140
             " Get rid of the regular expression that ctags has given us as
141 141
             " we don't need it and it merely causes problems if there is a
142 142
             " tab in the prototype at all
  143
+            let origline = line
143 144
             let line = substitute(line, '/\^.\{-}\$/;', 'removed', '')
144 145
             let parts = split(line, "\t")
145 146
             let fname = parts[0]
@@ -163,8 +164,10 @@ function! s:GetFunctionPrototypesForCurrentBuffer(opts)
163 164
                     let implementation = matchstr(parts[5], 'implementation:\zs.*\ze')
164 165
                 endif
165 166
             endif
166  
-            if implementation !=# 'pure virtual'
167  
-                call add(commands, linenum . '|' . fname . '|' . class)
  167
+            if matchstr( origline, "= default;" ) == "" && matchstr( origline, "= delete;" ) == ""
  168
+                if implementation !=# 'pure virtual'
  169
+                    call add(commands, linenum . '|' . fname . '|' . class)
  170
+                endif
168 171
             endif
169 172
         endfor
170 173
         " Make the call to the pullproto.pl script to get the full prototype

0 notes on commit 5986a6b

Please sign in to comment.
Something went wrong with that request. Please try again.