Vscode-cpptools: Implement support for clang extra tools.

Created on 9 Dec 2018  路  17Comments  路  Source: microsoft/vscode-cpptools

Implement support for clang extra tools.

  • clang-include-fixer
  • clang-format
  • clang-refactor
  • clang-analyzer
  • clang-tidy
  • clang-rename
Feature Request Language Service Works in VS

Most helpful comment

Here's another vote for clang-tidy

All 17 comments

We support clang-format already. Other VS Code extensions might exist that use the other clang tools.

Ugh. They don't.

Here's another vote for clang-tidy

And another vote for clang-tidy

There's an extension for clang-tidy (https://marketplace.visualstudio.com/items?itemName=alesiong.clang-tidy-linter) but apparently it's incomplete (some TODOs) and discontinued (last update about year ago).

So, what's the decision for supporting linting in vscode-cpptools? Is it on the roadmap or should we rely on other extensions?

@tehKaiN It's not on our extension's roadmap currently.

It looks like Visual Studio has added support for clang-tidy: https://devblogs.microsoft.com/cppblog/code-analysis-with-clang-tidy-in-visual-studio/ ...but VS doesn't run on Mac/Linux.

I still think that clang-tidy support should be added as a first-party feature, but it looks like progress has been made in this space. I'm happily using the following extension: https://marketplace.visualstudio.com/items?itemName=notskm.clang-tidy

Yes, it would be nice to have because using it as a separate extension (https://github.com/notskm/vscode-clang-tidy for example) is incredibly slow.

https://github.com/clangd/vscode-clangd have support for clang-tidy, but it not as good as this plugin.

I believe it makes sense for Microsoft to start looking at this. The only real alternative will no longer be maintained.
https://github.com/notskm/vscode-clang-tidy/issues/45
Is there anywhere else where we can vote for this feature that would have more visibility?

This feature request has received enough votes to be added to our backlog.

is the thumbs up reaction enough? bc i'd like to cast a vote for this feature.
specifically clang-tidy.

clang-tidy and cppcheck are the only reasons i still use clion, but i would much rather use vscode

PLease!

I believe it makes sense for Microsoft to start looking at this. The only real alternative will no longer be maintained.
notskm/vscode-clang-tidy#45

Yeah, and it also has some issues with remote workspaces and is lacking features that would make vscode shine like using CodeActionKind so clang tidy fixes can be applied nicely in the UI. I think clang-tidy fits in line with the cpptools including clang-format support and I'm hopeful a cpptools implementation would use all some of the cool vscode features :)

I simply don't understand why they don't understand the importance of _Clang-tidy_. It is as important as _C/C++ for Visual Studio Code_ or _Clangd_ to me. _Clang-tidy_ is the only reason I'm not switching to VS Code.

@mh0s41n This is currently the 5th highest voted feature request, so it seems like it's important to me. Our current focus for 1.2 is on improving stability, testing, and C++20 IntelliSense issues. I'm not sure yet what the feature roadmap is after that.

Didn't even know this was upvoted.

Was this page helpful?
0 / 5 - 0 ratings