Commit 313ff4038414c31a08a584696729d6e449991ef2
Use '-strings for lists of includes
No need for "-strings there.
Author: xaizek
Author date (UTC): 2016-09-03 18:50
Committer name: xaizek
Committer date (UTC): 2016-09-03 18:50
Parent(s): 98feeefda58bec0c14eeb94060383ad3bab6d143
Signing key: 99DC5E4DB05F6BE2
Tree: d769a3b2a4e98b15a8415ebf549bc8c364c7d5a1
File plugin/includefixer.vim changed (mode: 100644) (index b09b3df..6a219ba) |
... |
... |
if exists('g:loaded_include_fixer') |
7 |
7 |
endif |
endif |
8 |
8 |
let g:loaded_include_fixer = 1 |
let g:loaded_include_fixer = 1 |
9 |
9 |
|
|
10 |
|
let s:cstd = ["assert", |
|
11 |
|
\ "ctype", |
|
12 |
|
\ "errno", |
|
13 |
|
\ "fenv", |
|
14 |
|
\ "float", |
|
15 |
|
\ "inttypes", |
|
16 |
|
\ "iso646", |
|
17 |
|
\ "limits", |
|
18 |
|
\ "locale", |
|
19 |
|
\ "math", |
|
20 |
|
\ "setjmp", |
|
21 |
|
\ "signal", |
|
22 |
|
\ "stdarg", |
|
23 |
|
\ "stdbool", |
|
24 |
|
\ "stddef", |
|
25 |
|
\ "stdint", |
|
26 |
|
\ "stdio", |
|
27 |
|
\ "stdlib", |
|
28 |
|
\ "string", |
|
29 |
|
\ "tgmath", |
|
30 |
|
\ "time", |
|
31 |
|
\ "uchar", |
|
32 |
|
\ "wchar", |
|
33 |
|
\ "wctype"] |
|
34 |
|
|
|
35 |
|
let s:cxxstd = ["array", |
|
36 |
|
\ "deque", |
|
37 |
|
\ "forward_list", |
|
38 |
|
\ "list", |
|
39 |
|
\ "map", |
|
40 |
|
\ "queue", |
|
41 |
|
\ "set", |
|
42 |
|
\ "stack", |
|
43 |
|
\ "unordered_map", |
|
44 |
|
\ "unordered_set", |
|
45 |
|
\ "vector", |
|
46 |
|
\ "fstream", |
|
47 |
|
\ "iomanip", |
|
48 |
|
\ "ios", |
|
49 |
|
\ "iosfwd", |
|
50 |
|
\ "iostream", |
|
51 |
|
\ "istream", |
|
52 |
|
\ "ostream", |
|
53 |
|
\ "sstream", |
|
54 |
|
\ "streambuf", |
|
55 |
|
\ "atomic", |
|
56 |
|
\ "condition_variable", |
|
57 |
|
\ "future", |
|
58 |
|
\ "mutex", |
|
59 |
|
\ "thread", |
|
60 |
|
\ "algorithm", |
|
61 |
|
\ "bitset", |
|
62 |
|
\ "chrono", |
|
63 |
|
\ "codecvt", |
|
64 |
|
\ "complex", |
|
65 |
|
\ "exception", |
|
66 |
|
\ "functional", |
|
67 |
|
\ "initializer_list", |
|
68 |
|
\ "iterator", |
|
69 |
|
\ "limits", |
|
70 |
|
\ "locale", |
|
71 |
|
\ "memory", |
|
72 |
|
\ "new", |
|
73 |
|
\ "numeric", |
|
74 |
|
\ "random", |
|
75 |
|
\ "ratio", |
|
76 |
|
\ "regex", |
|
77 |
|
\ "stdexcept", |
|
78 |
|
\ "string", |
|
79 |
|
\ "system_error", |
|
80 |
|
\ "tuple", |
|
81 |
|
\ "typeindex", |
|
82 |
|
\ "typeinfo", |
|
83 |
|
\ "type_traits", |
|
84 |
|
\ "utility", |
|
85 |
|
\ "valarray"] |
|
|
10 |
|
let s:cstd = ['assert', |
|
11 |
|
\ 'ctype', |
|
12 |
|
\ 'errno', |
|
13 |
|
\ 'fenv', |
|
14 |
|
\ 'float', |
|
15 |
|
\ 'inttypes', |
|
16 |
|
\ 'iso646', |
|
17 |
|
\ 'limits', |
|
18 |
|
\ 'locale', |
|
19 |
|
\ 'math', |
|
20 |
|
\ 'setjmp', |
|
21 |
|
\ 'signal', |
|
22 |
|
\ 'stdarg', |
|
23 |
|
\ 'stdbool', |
|
24 |
|
\ 'stddef', |
|
25 |
|
\ 'stdint', |
|
26 |
|
\ 'stdio', |
|
27 |
|
\ 'stdlib', |
|
28 |
|
\ 'string', |
|
29 |
|
\ 'tgmath', |
|
30 |
|
\ 'time', |
|
31 |
|
\ 'uchar', |
|
32 |
|
\ 'wchar', |
|
33 |
|
\ 'wctype'] |
|
34 |
|
|
|
35 |
|
let s:cxxstd = ['array', |
|
36 |
|
\ 'deque', |
|
37 |
|
\ 'forward_list', |
|
38 |
|
\ 'list', |
|
39 |
|
\ 'map', |
|
40 |
|
\ 'queue', |
|
41 |
|
\ 'set', |
|
42 |
|
\ 'stack', |
|
43 |
|
\ 'unordered_map', |
|
44 |
|
\ 'unordered_set', |
|
45 |
|
\ 'vector', |
|
46 |
|
\ 'fstream', |
|
47 |
|
\ 'iomanip', |
|
48 |
|
\ 'ios', |
|
49 |
|
\ 'iosfwd', |
|
50 |
|
\ 'iostream', |
|
51 |
|
\ 'istream', |
|
52 |
|
\ 'ostream', |
|
53 |
|
\ 'sstream', |
|
54 |
|
\ 'streambuf', |
|
55 |
|
\ 'atomic', |
|
56 |
|
\ 'condition_variable', |
|
57 |
|
\ 'future', |
|
58 |
|
\ 'mutex', |
|
59 |
|
\ 'thread', |
|
60 |
|
\ 'algorithm', |
|
61 |
|
\ 'bitset', |
|
62 |
|
\ 'chrono', |
|
63 |
|
\ 'codecvt', |
|
64 |
|
\ 'complex', |
|
65 |
|
\ 'exception', |
|
66 |
|
\ 'functional', |
|
67 |
|
\ 'initializer_list', |
|
68 |
|
\ 'iterator', |
|
69 |
|
\ 'limits', |
|
70 |
|
\ 'locale', |
|
71 |
|
\ 'memory', |
|
72 |
|
\ 'new', |
|
73 |
|
\ 'numeric', |
|
74 |
|
\ 'random', |
|
75 |
|
\ 'ratio', |
|
76 |
|
\ 'regex', |
|
77 |
|
\ 'stdexcept', |
|
78 |
|
\ 'string', |
|
79 |
|
\ 'system_error', |
|
80 |
|
\ 'tuple', |
|
81 |
|
\ 'typeindex', |
|
82 |
|
\ 'typeinfo', |
|
83 |
|
\ 'type_traits', |
|
84 |
|
\ 'utility', |
|
85 |
|
\ 'valarray'] |
86 |
86 |
|
|
87 |
87 |
function! s:RecordIncludes(includes, lines) |
function! s:RecordIncludes(includes, lines) |
88 |
88 |
call add(a:includes,getline(".")) |
call add(a:includes,getline(".")) |