clangd / vscode-clangd

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

macro symbol (by #define) not listed in current file's outline in clangd #548

Closed Shaka0723 closed 8 months ago

Shaka0723 commented 8 months ago

when I use clangd as my c project LSP, and define a macro (e.g., #define FOO 1234) in a source or header (.c or .h) then show the outline of current file, symbol listed but except all macros - symbol FOO can not be found. image I know macro symbol can be shown in workspace's symbol list, but it's not as convinnent as curretn file's outline image

Remark:

HighCommander4 commented 8 months ago

Duplicate of https://github.com/clangd/clangd/issues/1744