Skip to content

Commit

Permalink
more include for auto include
Browse files Browse the repository at this point in the history
  • Loading branch information
quark-zju committed Apr 24, 2012
1 parent 98debdc commit 75f75c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vim/plugin/cpp_auto_include.vim
Expand Up @@ -69,8 +69,10 @@ def auto_cpp_include
:set => [/set\s*</],
:cstdio => ['scanf', 'FILE', 'puts', 'printf'],
:cassert => ['assert'],
:cstring => ['memset', 'strlen', 'strerror', /strn?cmp/, 'strcat', 'memcmp'],
:cstdlib => ['abs', 'EXIT_', 'NULL', 'exit', 'ato', 'free', 'malloc', 'rand', /qsort\s*\(/],
:string => ['string']
:string => ['string'],
:typeinfo => ['typeid']
}.each do |header, keywords|
header = "<#{header}>"
has_keyword = keywords.any? { |word| content[word] }
Expand Down

0 comments on commit 75f75c8

Please sign in to comment.