vscode-cpptools
vscode-cpptools copied to clipboard
Usage of "struct foo* f;" in C incorrectly generates a declaration for "foo"
Use
typedef struct foo
{
struct foo* f;
} foo;
The Outline view incorrectly shows "foo::foo" being a declaration.
This bug has existed in VS for a long time, so it's probably too low priority for them to fix.
https://developercommunity.visualstudio.com/content/problem/759968/usage-of-struct-foo-f-in-c-incorrectly-generates-a.html
clangd doesn't have this issue, why you still can't fix this?
llvm-vs-code-extensions.vscode-clangd
ms-vscode.cpptools
@ljhm We're considering adding a setting to enabling tag parsing in C mode, which would fix this: https://github.com/microsoft/vscode-cpptools/issues/9570