dundargoc
2c1e7242f9
refactor: replace char_u with char 23 ( #21798 )
...
Work on https://github.com/neovim/neovim/issues/459
2023-01-18 18:52:19 +08:00
dundargoc
0344bfad0f
refactor: replace char_u with char 22 ( #21786 )
...
Work on https://github.com/neovim/neovim/issues/459
2023-01-17 21:17:40 +08:00
dundargoc
e89c39d6f0
refactor: replace char_u with char 21 ( #21779 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-14 15:58:28 +08:00
dundargoc
9220755302
build: remove clint error suppression #21782
...
Fix remaining clint errors and remove error suppression completely.
Rename the lint targets to align with the established naming convention:
- lintc-clint lints with clint.py.
- lintc-uncrustify lints with uncrustify.
- lintc runs both targets.
lintc is also provided as a make target for convenience.
After this change we can remove these files:
https://github.com/neovim/doc/tree/gh-pages/reports/clint
https://github.com/neovim/doc/blob/main/ci/clint-errors.sh
2023-01-13 15:48:10 -08:00
dundargoc
f2141de9e4
refactor: replace char_u with char 20 ( #21714 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-13 07:35:39 +08:00
dundargoc
50f03773f4
refactor: replace char_u with char 18 ( #21237 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 22:37:34 +08:00
dundargoc
1492094003
refactor: replace char_u with char 17 - remove STRLCPY ( #21235 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 21:13:06 +08:00
dundargoc
ec1738a6ed
refactor: replace char_u with char 16 - remove STRNCMP ( #21208 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2022-12-21 19:00:05 +08:00
dundargoc
3b96ccf7d3
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-28 14:53:35 +01:00
Dundar Göc
bd22585061
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-26 15:52:21 +01:00
Dundar Göc
40f3f75867
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-11-19 16:27:10 +01:00
dundargoc
66360675cf
build: allow IWYU to fix includes for all .c files
...
Allow Include What You Use to remove unnecessary includes and only
include what is necessary. This helps with reducing compilation times
and makes it easier to visualise which dependencies are actually
required.
Work on https://github.com/neovim/neovim/issues/549 , but doesn't close
it since this only works fully for .c files and not headers.
2022-11-15 10:30:03 +01:00
bfredl
fae7540732
Merge pull request #20821 from dundargoc/refactor/clang-tidy
...
refactor: fix clang-tidy warnings
2022-11-08 09:48:48 +01:00
Lewis Russell
bdb98de2d1
refactor: more clint ( #20910 )
2022-11-07 10:21:44 +00:00
dundargoc
731cdde28e
refactor: fix clang-tidy warnings
...
Enable and fix bugprone-misplaced-widening-cast warning.
Fix some modernize-macro-to-enum and readability-else-after-return
warnings, but don't enable them. While the warnings can be useful, they
are in general too noisy to enable.
2022-11-06 11:44:10 +01:00
dundargoc
4716a578ae
docs: fix typos
2022-11-02 21:45:26 +08:00
dundargoc
0117c97e62
refactor(clint): convert short to int16_t ( #20815 )
2022-10-27 12:28:16 +08:00
dundargoc
784e498c4a
refactor: clang-tidy fixes to silence clangd warning ( #20683 )
...
* refactor: readability-uppercase-literal-suffix
* refactor: readability-named-parameter
* refactor: bugprone-suspicious-string-compare
* refactor: google-readability-casting
* refactor: readability-redundant-control-flow
* refactor: bugprone-too-small-loop-variable
* refactor: readability-non-const-parameter
* refactor: readability-avoid-const-params-in-decls
* refactor: google-readability-todo
* refactor: readability-inconsistent-declaration-parameter-name
* refactor: bugprone-suspicious-missing-comma
* refactor: remove noisy or slow warnings
2022-10-21 20:47:44 +08:00
Dundar Göc
04cdea5f4a
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-10-15 13:18:46 +02:00
Dundar Göc
3ff46544c9
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-11 13:28:59 +02:00
Dundar Göc
684bc749ef
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-10 11:17:40 +02:00
Dundar Göc
c5322e752e
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-09 21:02:42 +02:00
Dundar Göc
73207cae61
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-06 16:44:37 +02:00
dundargoc
12afc344de
refactor: migrate comment style 2 #20080
2022-09-06 07:23:00 -07:00
Dundar Göc
fb1edb2f57
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-31 13:47:18 +02:00
dundargoc
2828aae7b4
refactor: replace char_u with char 4 ( #19987 )
...
* refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2022-08-30 14:52:09 +02:00
Dundar Göc
58f30a326f
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-29 15:48:56 +02:00
Dundar Göc
691f4715c0
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-27 17:59:43 +02:00
Dundar Göc
3952770360
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-26 22:24:28 +02:00
Lewis Russell
2498e9feb0
refactor: change FALSE/TRUE to false/true
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-08-26 09:36:55 +01:00
Dundar Goc
40855b0143
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-25 18:59:12 +02:00
Lewis Russell
93f24403f8
refactor: pre-incr to post-incr
2022-08-25 13:10:41 +01:00
zeertzjq
6cc6e11929
vim-patch:9.0.0206: redraw flags are not named specifically ( #19913 )
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
a4d158b3c8
2022-08-23 22:00:19 +08:00
zeertzjq
2bed0d1d97
vim-patch:8.2.4753: error from setting an option is silently ignored ( #19888 )
...
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
31e5c60a68
2022-08-22 13:56:50 +08:00
Lewis Russell
51063a90df
vim-patch:8.1.2057: the screen.c file is much too big
...
Problem: The screen.c file is much too big.
Solution: Split it in three parts. (Yegappan Lakshmanan, closes vim/vim#4943 )
7528d1f6b5
This is an approximation vim-patch 8.1.2057. Applying the patch directly
isn't feasible since our version of screen.c has diverged too much,
however we still introduce drawscreen.c and drawline.c:
- screen.c is now a much smaller file used for low level screen functions
- drawline.c contains everything needed for win_line()
- drawscreen.c contains everything needed for update_screen()
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-08-19 10:01:40 +01:00
Lewis Russell
542fa8a9cc
refactor: change pre-decrement/increment to post ( #19799 )
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-08-16 12:26:08 +01:00
zeertzjq
5e98a41872
vim-patch:8.1.1869: code for the argument list is spread out ( #19791 )
...
Problem: Code for the argument list is spread out.
Solution: Put argument list code in arglist.c. (Yegappan Lakshmanan,
closes vim/vim#4819 )
4ad62155a1
2022-08-16 14:16:03 +08:00
zeertzjq
a10a23aae9
vim-patch:8.2.0097: crash with autocommand and spellfile
...
Problem: Crash with autocommand and spellfile. (Tim Pope)
Solution: Do not pop exestack when not pushed. (closes vim/vim#5450 )
ce6db0273f
2022-08-14 04:29:44 +08:00
zeertzjq
f52c236c5b
vim-patch:8.2.0056: execution stack is incomplete and inefficient
...
Problem: Execution stack is incomplete and inefficient.
Solution: Introduce a proper execution stack and use it instead of
sourcing_name/sourcing_lnum. Create a string only when used.
1a47ae32cd
Omit test_debugger.vim: superseded by later patches.
Omit check_map_keycodes(): N/A.
Omit kword_test.c: N/A (converted to a unit test).
2022-08-14 04:29:44 +08:00
Dundar Goc
094cdf2d69
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-08-12 14:22:02 +02:00
zeertzjq
94c3176478
refactor: use CLEAR_FIELD and CLEAR_POINTER macros ( #19709 )
...
vim-patch:8.2.0559: clearing a struct is verbose
Problem: Clearing a struct is verbose.
Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
a80faa8930
2022-08-11 15:44:55 +08:00
Dundar Goc
824a729628
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-31 00:52:59 +02:00
dundargoc
b4e12bfa00
refactor: enable -Wconversion warning for spellfile.c ( #19527 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-28 18:49:46 +08:00
zeertzjq
072fb55cb0
vim-patch:9.0.0052: "zG" may throw an error if invalid character follows ( #19368 )
...
Problem: "zG" may throw an error if invalid character follows.
Solution: Pass the word length to valid_spell_word(). (Ken Takata,
closes vim/vim#10737 )
2ebcc35826
2022-07-15 08:42:36 +08:00
zeertzjq
a2d8d5e1f5
vim-patch:8.2.1522: not enough test coverage for the spell file handling
...
Problem: Not enough test coverage for the spell file handling.
Solution: Add spell file tests. (Yegappan Lakshmanan, closes vim/vim#6763 )
c8ec5fe56f
Add missing whitespace in message.
2022-07-04 09:15:03 +08:00
zeertzjq
ed64c8f683
vim-patch:8.2.1493: not enough test coverage for the spell file handling
...
Problem: Not enough test coverage for the spell file handling.
Solution: Add spell file tests. (Yegappan Lakshmanan, closes vim/vim#6728 )
fc2a47ffc4
2022-07-04 09:09:42 +08:00
Dundar Goc
3b8804571c
refactor: replace char_u
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-02 16:01:27 +02:00
zeertzjq
998a96803b
vim-patch:9.0.0021: invalid memory access when adding word to spell word list
...
Problem: Invalid memory access when adding word with a control character to
the internal spell word list.
Solution: Disallow adding a word with control characters or a trailing
slash.
5e59ea54c0
2022-07-02 06:55:23 +08:00
dundargoc
014a88799a
refactor: replace char_u #18429
...
Work on https://github.com/neovim/neovim/issues/459
2022-06-28 02:31:54 -07:00
dundargoc
9fec6dc9a2
refactor(uncrustify): set maximum number of consecutive newlines to 2 ( #18695 )
2022-05-25 12:31:14 -06:00