clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
644 stars 113 forks source link

Function pointer isn't hightlighted correctly #699

Open pharsh22 opened 1 month ago

pharsh22 commented 1 month ago

I have clangd extension installed on my vsCode and disabled native IntelliSense.

Function pointers are supposed to be highlighted in yellow, which happens momentarily. As soon as clangd generates the tags, it alters the property to variable.other.property instead of a function and changes its color to blue.

VSCode version : Version: 1.89.1 (Universal) Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:14:24.611Z (5 mos ago) Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.4.0

Clangd extension version: v0.1.29

System information Clangd version (from the log, or clangd --version): internal clangd version

OS : MacOs

HighCommander4 commented 1 month ago

Could you give a code example?

Function pointers are supposed to be highlighted in yellow

Also, could you say more about where this expectation comes from, e.g. in what editor setting this is specified?