spacevim/bundle/CompleteParameter.vim/vader/cpp.vader
JIe 2bb7059579
Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
init
2024-08-21 14:17:26 +08:00

119 lines
6.1 KiB
Plaintext

"{{{ycm
Execute (error completed_item):
let completed_item = {}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (error completed_item, kind: t):
let completed_item = {'kind': 't'}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (error completed_item, word empty):
let completed_item = {'kind': 'f', 'word': ''}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (error completed_item, word info):
let completed_item = {'kind': 'f', 'word': 'empty'}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (vector::empty()):
let completed_item = {'kind': 'f', 'word': 'empty', 'info': "bool empty() const\n"}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['()'], result
Execute (vector::operator=):
let completed_item = {'kind': 'f', 'word': 'operator=', 'info': "std::vector<int, std::allocator<int> > & operator=( const std::vector<int, std::allocator<int> > &__x )"}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(__x)'], result
Execute (vector::vector):
let completed_item = {'kind': 'f', 'word': 'vector', 'info': "void vector( _InputIterator __first, typename enable_if<__is_input_iterator<_InputIterator>::value && !__is_forward_iterator<_InputIterator>::value && is_constructible<value_type, typename iterator_traits<_InputIterator>::reference>::value, _InputIterator>::type __last )\nvoid vector( _InputIterator __first, _InputIterator __last, const allocator_type &__a, typename enable_if<__is_input_iterator<_InputIterator>::value && !__is_forward_iterator<_InputIterator>::value && is_constructible<value_type, typename iterator_traits<_InputIterator>::reference>::value>::type * )"}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(__first, __last)', '(__first, __last, __a, *)'], result
Execute (ctime::time):
let completed_item = {'kind':'f', 'word': 'time', 'info': 'time_t time( time_t * )'}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(*)'], result
Execute (vector<class _Tp, class _Alloc>, kind: c):
let completed_item = {'kind': 'c', 'word': 'vector', 'info': "vector<class _Tp, class _Alloc>\n"}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['<_Tp, _Alloc>'], result
Execute (std::error_code, kind: c):
let completed_item = {'kind': 'c', 'word': 'error_code', 'info': "error_code"}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (std:: error_code, kind: c):
let completed_item = {'kind': 'c', 'word': 'error_code', 'info': " error_code"}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (CMP, kind: m):
let completed_item = {'word': 'CMP', 'menu': '', 'info': ' CMP( a, b )^@', 'kind': 'm', 'abbr': 'CMP( a, b )'}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(a, b)'], result
Execute (include default func value):
let completed_item = {'word': 'test', 'menu': 'void', 'info': 'void test(int a, int b = func() )', 'kind': 'f', 'abbr': 'test( int a, int b = func() )'}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(a, b)'], result
Execute (include default value):
let completed_item = {'word': 'test1', 'menu': 'void', 'info': 'void test1( int a, int b = 1 )', 'kind': 'f', 'abbr': 'test1( int a, int b = 1 )'}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(a, b)'], result
"}}}
"{{{deoplete
Execute (error completed_item, word empty):
let completed_item = {'kind': 'f void', 'word': ''}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (error completed_item, word info):
let completed_item = {'kind': 'f void', 'word': 'empty'}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (vector::empty()):
let completed_item = {'kind': 'f bool', 'word': 'empty', 'info': "bool empty() const", 'menu': '[clang] '}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['()'], result
Execute (vector::operator=):
let completed_item = {'kind': 'f std::vector<int, std::allocator<ing> > &', 'word': 'operator=', 'info': "std::vector<int, std::allocator<int> > & operator=( const std::vector<int, std::allocator<int> > &__x )", 'menu': '[clang] '}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(__x)'], result
Execute (vector::vector):
let completed_item = {'kind': 'f', 'word': 'vector', 'info': "void vector( _InputIterator __first, typename enable_if<__is_input_iterator<_InputIterator>::value && !__is_forward_iterator<_InputIterator>::value && is_constructible<value_type, typename iterator_traits<_InputIterator>::reference>::value, _InputIterator>::type __last )\nvoid vector( _InputIterator __first, _InputIterator __last, const allocator_type &__a, typename enable_if<__is_input_iterator<_InputIterator>::value && !__is_forward_iterator<_InputIterator>::value && is_constructible<value_type, typename iterator_traits<_InputIterator>::reference>::value>::type * )", 'menu': '[clang] '}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(__first, __last)', '(__first, __last, __a, *)'], result
Execute (ctime::time):
let completed_item = {'kind':'f time_t', 'word': 'time', 'info': 'time_t time( time_t * )', 'menu': '[clang] '}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['(*)'], result
Execute (vector<class _Tp, class _Alloc>, kind: p):
let completed_item = {'kind': 'p ', 'word': 'vector', 'info': "vector<class _Tp, class _Alloc>\n", 'menu': '[clang] '}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual ['<_Tp, _Alloc>'], result
Execute (std::error_code, kind: p):
let completed_item = {'kind': 'p ', 'word': 'error_code', 'info': "error_code", 'menu': '[clang] '}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
Execute (std:: error_code, kind: p):
let completed_item = {'kind': 'p ', 'word': 'error_code', 'info': " error_code", 'menu': '[clang] '}
let result = cm_parser#cpp#parameters(completed_item)
AssertEqual [], result
"}}}