zeertzjq
09e93d7c4d
refactor(IWYU): create {ex_getln,rbuffer,os/fileio}_defs.h ( #26338 )
2023-12-01 08:06:37 +08:00
zeertzjq
a6f26c86cb
refactor(IWYU): fix includes for cmdhist.h ( #26324 )
2023-11-30 22:48:15 +08:00
zeertzjq
c8e37a589a
refactor(IWYU): move typedefs out of globals.h ( #26322 )
2023-11-30 19:52:23 +08:00
zeertzjq
95dbf1af73
refactor: move extern variables out of _defs.h files ( #26320 )
2023-11-30 18:41:52 +08:00
zeertzjq
ce56e0a845
refactor(IWYU): move UI and LineFlags to ui_defs.h ( #26318 )
2023-11-30 17:16:57 +08:00
zeertzjq
86cc791deb
refactor: move function macros out of vim_defs.h ( #26300 )
2023-11-29 23:10:21 +08:00
zeertzjq
a6cba103ce
refactor: move some constants out of vim_defs.h ( #26298 )
2023-11-29 20:32:40 +08:00
zeertzjq
64b53b71ba
refactor(IWYU): create normal_defs.h ( #26293 )
2023-11-29 12:10:42 +08:00
dundargoc
79b6ff28ad
refactor: fix headers with IWYU
2023-11-28 22:23:56 +01:00
zeertzjq
71e954ad30
refactor(IWYU): fix includes for ugrid.h ( #26267 )
2023-11-28 17:01:27 +08:00
zeertzjq
1a8f60c7d2
refactor: move hashtab types to hashtab_defs.h ( #26262 )
2023-11-28 10:47:22 +08:00
zeertzjq
718053b7a9
refactor: fix runtime_defs.h ( #26259 )
2023-11-28 07:47:36 +08:00
dundargoc
e3f735ef10
refactor: fix includes for api/autocmd.h
2023-11-27 21:53:07 +01:00
dundargoc
f9231603c4
refactor: fix includes for iconv.h
2023-11-27 21:52:34 +01:00
dundargoc
ab7c0e9904
refactor: create runtime_defs.h
2023-11-27 21:35:21 +01:00
dundargoc
f4aedbae4c
build(IWYU): fix includes for undo_defs.h
2023-11-27 19:33:17 +01:00
zeertzjq
38a20dd89f
build(IWYU): replace most private mappings with pragmas ( #26247 )
2023-11-27 20:58:37 +08:00
zeertzjq
574d25642f
refactor: move Arena and ArenaMem to memory_defs.h ( #26240 )
2023-11-27 17:21:58 +08:00
zeertzjq
6343d41436
refactor: move autocmd types to autocmd_defs.h ( #26239 )
2023-11-27 11:17:04 +08:00
zeertzjq
09541d514d
build(IWYU): replace public-to-public mappings with pragmas ( #26237 )
2023-11-27 09:51:26 +08:00
zeertzjq
7e2387f41b
build(clint): more precise check for "defs" headers ( #26236 )
2023-11-27 08:34:06 +08:00
dundargoc
71141e8cf5
build(IWYU): fix headers for arabic.h
2023-11-26 22:15:53 +01:00
zeertzjq
6361806aa2
refactor: move garray_T to garray_defs.h ( #26227 )
2023-11-26 22:58:52 +08:00
dundargoc
34509bbea3
build: sync IWYU and clint to ignore the same headers ( #26228 )
...
Also fix headers for autocmd.c.
2023-11-26 22:34:29 +08:00
dundargoc
ce6075f82a
build: add check to clint to prevent non-defs header includes
...
Also enable iwyu on headers, but add an ignore for each file separately.
Work on https://github.com/neovim/neovim/issues/6371 .
2023-11-26 15:06:51 +01:00
dundargoc
a6e3d93421
refactor: enable formatting for ternaries
...
This requires removing the "Inner expression should be aligned" rule
from clint as it prevents essentially any formatting regarding ternary
operators.
2023-11-20 19:57:09 +01:00
dundargoc
4f8941c1a5
refactor: replace manual header guards with #pragma once
...
It is less error-prone than manually defining header guards. Pretty much
all compilers support it even if it's not part of the C standard.
2023-11-12 22:01:28 +01:00
dundargoc
5f03a1eaab
build(lint): remove unnecessary clint.py rules
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
2023-10-23 20:06:21 +02:00
bfredl
e2fdd53d8c
refactor(map): avoid duplicated khash_t types for values
...
This reduces the total number of khash_t instantiations from 22 to 8.
Make the khash internal functions take the size of values as a runtime
parameter. This is abstracted with typesafe Map containers which
are still specialized for both key, value type.
Introduce `Set(key)` type for when there is no value.
Refactor shada.c to use Map/Set instead of khash directly.
This requires `map_ref` operation to be more flexible.
Return pointers to both key and value, plus an indicator for new_item.
As a bonus, `map_key` is now redundant.
Instead of Map(cstr_t, FileMarks), use a pointer map as the FileMarks struct is
humongous.
Make `event_strings` actually work like an intern pool instead of wtf it
was doing before.
2023-05-17 12:26:21 +02:00
dundargoc
c98ef2d7c6
build(clint): fix deprecation and linter warnings
...
`sre_compile` is deprecated in python 11, and gives warning when is used.
2023-04-26 18:25:07 +02:00
dundargoc
b05d1943f0
build(lint): remove clint.py rules for braces #20880
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-11-01 07:39:49 -07:00
Lewis Russell
024f6880b5
fix(clint): disable whitespace/newline #20619
...
This rule is already mostly covered by uncrustify.
2022-10-12 06:31:32 -07:00
Justin M. Keyes
09dffb9db7
docs: various #12823
...
- increase python line-length limit from 88 => 100.
- gen_help_html: fix bug in "tag" case (tbl_count => tbl_contains)
ref #15632
fix #18215
fix #18479
fix #20527
fix #20532
Co-authored-by: Ben Weedon <ben@weedon.email >
2022-10-09 05:21:52 -07:00
dundargoc
df646572c5
docs: fix typos ( #20394 )
...
Co-authored-by: Raphael <glephunter@gmail.com >
Co-authored-by: smjonas <jonas.strittmatter@gmx.de >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-30 09:53:52 +02:00
Famiu Haque
bd4eca1146
refactor: move definitions from typval.h
to typval_defs.h
( #20194 )
...
Taken from #20187 .
2022-09-14 13:01:39 +08:00
dundargoc
ea611c7122
ci(clint): remove "Inner expression indentation should be 4" rule ( #20047 )
...
It completely breaks down in shada.c and is generally useless.
2022-09-03 12:00:00 +02:00
Lewis Russell
5b609bbefb
build: add github action annotations for clint
2022-07-04 14:20:10 +01:00
dundargoc
8c2fd65bb1
build(clint): remove redundant checks #18698
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-05-22 10:59:56 -07:00
dundargoc
79469e61d5
build(clint.py): remove rules for includes, whitespace, tabs #18611
...
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
Closes https://github.com/neovim/neovim/issues/17763
2022-05-20 20:43:30 -07:00
Marco Hinz
59ba66d1ab
ci(clint): remove checks for whitespace after comma/semicolon ( #18584 )
...
uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-05-16 00:14:31 +02:00
dundargoc
19da1071dc
ci(clint): remove clint.py line length check #18574
...
uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
2022-05-15 12:01:29 -07:00
Dundar Goc
3bd7246f5a
ci(clint): remove check for include order
...
Uncrustify and clang-format are already both excellent at ordering
includes; this isn't something we need to check for ourselves. Also
remove the section on include order in the dev-style documentation.
2022-05-14 15:09:02 +02:00
Dundar Goc
adf967331f
ci(clint): fix all pyright warnings
2022-05-14 15:09:02 +02:00
Dundar Goc
d0897243f6
build(clint): remove "function size is too large" warning
...
This warning is essentially only triggered for ported vim functions.
It's unlikely that we'll refactor vim functions solely based on their
size since it'd mean we'd greatly deviate from vim, which is a high cost
when it comes to importing the vim patches. Thus, this warning only
serves as an annoyance and should be removed.
2022-05-06 18:03:57 +02:00
Dundar Goc
92844b4499
build(clint): remove all python2-isms with pyupgrade
...
The script is functionally the same, just with some nicer syntactic
sugar thanks to only supporting python3.
2022-04-20 23:15:26 +02:00
Dundar Goc
df48b355d2
build(clint): change shebang to python3
...
There are distributions that doesn't symlink python to python3.
This will make clint work for these without any additional steps from
the user.
2022-04-20 23:01:15 +02:00
dundargoc
524f6294a3
build(clint): link to wiki when accessing list_T internals directly ( #17876 )
2022-03-29 22:27:57 +08:00
Dundar Göc
f27068caad
chore(lgtm): ignore "__eq__ not overridden" warning
2022-03-09 09:29:57 +01:00
Dundar Göc
918ab6bf00
ci(clint): remove "Unknown NOLINT error category" warning
...
Clang-tidy also uses "NOLINT" to suppress warnings which causes a
conflict.
2022-03-06 23:02:10 +01:00
Björn Linse
32565922ef
refactor(api): handle option dicts properly
...
Do not copy a lot of lua strings (dict keys) to just strequal() them
Just compare them directly to a dedicated hash function.
feat(generators): HASHY McHASHFACE
2021-10-03 10:46:57 +02:00