2 ms·
> I'm pretty sure everyone uses a basic static analyzer for code completion, formatting, and syntax. Most IDEs just set it up for you. Yeah, this extension is
by Alifatisk 3y ago
> I'm pretty sure everyone uses a basic static analyzer for code completion, formatting, and syntax. Most IDEs just set it up for you.
Yeah, this extension is almost the default choice for vscode
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools https://marketplace.visualstudio.com/items?itemName=ms-vscod...
- flohofwoe 3y agoAs far as I'm aware the vanilla Intellisense (e.g. error squiggles and warnings while typing) isn't doing proper static analysis only simple syntax error checks. And while clang-tidy is integrated with the MS C++ extension, it needs to be run manually, or automatically on file save/open (see: https://devblogs.microsoft.com/cppblog/visual-studio-code-c-december-2021-update-clang-tidy/ https://devblogs.microsoft.com/cppblog/visual-studio-code-c-...) - I guess it's too expensive to just run in the background while typing.
- pjmlp 3y agoNowadays that isn't any longer the case, linting is also performed, at least on Visual Studio proper. https://learn.microsoft.com/en-us/cpp/ide/cpp-linter-overview?view=msvc-170 https://learn.microsoft.com/en-us/cpp/ide/cpp-linter-overvie...