neovim/runtime
Famiu Haque 380870335f docs: use abort() for unreachable default: case in C
Problem: The style guide currently recommends having a `default:` case for switch statements that are not conditional on an enumerated value. Additionally, it recommends using `assert(false)` if `default:` is unreachable. This is problematic because `assert()` only runs on debug builds, which may lead to confusing breakages in release builds. Moreover, this suggestion is followed nowhere in the C code and `abort()` is used everywhere instead.

Solution: Suggest using `abort()` instead of `assert(false)`, that way the program always terminates if a logically unreachable case is reached.
2023-10-07 20:47:55 +06:00
..
autoload vim-patch:0e958410046a 2023-10-06 10:18:33 +02:00
colors vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
compiler vim-patch:fc93594d562d 2023-09-13 17:23:45 +02:00
doc docs: use abort() for unreachable default: case in C 2023-10-07 20:47:55 +06:00
ftplugin vim-patch:2a281ccca017 2023-10-07 00:48:35 +02:00
indent vim-patch:e30d8e4ce01d 2023-09-17 22:52:56 +02:00
keymap vim-patch:e8d6f03f6a61 2023-08-23 20:36:16 +01:00
lua Merge pull request #25529 from zeertzjq/vim-9.0.1990 2023-10-07 07:01:55 +08:00
macros vim-patch:e8d6f03f6a61 2023-08-23 20:36:16 +01:00
pack/dist/opt refactor(termdebug): reindent some things 2023-08-25 11:24:52 +01:00
plugin feat(treesitter): add lang parameter to the query editor (#25181) 2023-09-16 19:05:59 +02:00
queries feat(lsp): use treesitter for stylize markdown 2023-09-19 14:47:37 +01:00
spell
syntax vim-patch:54f70cf0780a 2023-09-27 22:20:03 +02:00
tools vim-patch:e80086446cc2 (#19848) 2022-08-20 10:04:55 +02:00
tutor fix(tutor): Tutor steps don't work on Windows #25251 2023-09-26 06:31:35 -07:00
CMakeLists.txt refactor(build): move the last generator from scripts/ to src/nvim/generators 2023-04-21 16:46:35 +02:00
delmenu.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
filetype.lua fix(filetype): make sure buffer is valid before call nvim_buf_call (#24922) 2023-08-30 10:14:58 -05:00
ftoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugof.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indent.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
macmap.vim
makemenu.vim vim-patch:acb91d3905cf 2023-09-02 11:08:29 +02:00
menu.vim vim-patch:e059fae10044 2023-08-24 11:33:06 +09:00
mswin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
neovim.ico feat(windows): show icon in terminal titlebar, taskbar #20607 2022-10-13 05:48:12 -07:00
nvim.appdata.xml NVIM v0.9.0 2023-04-07 13:26:29 +02:00
nvim.desktop
nvim.png
optwin.vim vim-patch:0b8b145bf8bf 2023-08-31 10:58:54 +02:00
synmenu.vim vim-patch:acb91d3905cf 2023-09-02 11:08:29 +02:00