C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
3.72k
stars
254
forks
source link
expected expression (ccls 4) when declaring a variable directly underneath `case` #950
Open
Zeebrow opened 10 months ago
Observed behavior
ccls is telling me that a variable declaration is not allowed underneath a![image](https://github.com/MaskRay/ccls/assets/16679718/6b44ba30-01ca-4beb-b656-96b9cd975e7b)
case
statement.However, it is okay if the variable declaration comes after something like an![image](https://github.com/MaskRay/ccls/assets/16679718/ae1f4c9f-ae03-4150-819e-9d585c52a303)
if
:Expected behavior
There isn no error reported
Steps to reproduce
System information
ccls version (
git describe --tags --long
):clang version:
OS:
22.04.3 LTS (Jammy Jellyfish)
Editor:
Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
vim version: NVIM v0.6.1 node version: v18.17.0 coc.nvim version: 0.0.82-3dc6153a 2023-07-21 00:22:17 -0500 coc.nvim directory: /home/zeebrow/.local/share/nvim/plugged/coc.nvim term: xterm-256color platform: linux