News for hackers. Stuff that matters.
Re:Static Analysis Tools for C by Alifatisk on Thursday October 26, 2023 @08:09AM (#38024471)
> 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-vscod...

Re:Static Analysis Tools for C by flohofwoe on Thursday October 26, 2023 @08:29AM (#38024634)
As 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-...) - I guess it's too expensive to just run in the background while typing.

Re:Static Analysis Tools for C by pjmlp on Friday October 27, 2023 @07:24AM (#38037134)
Nowadays 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-overvie...