Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement using ExternalAnnotator #65

Open
firewave opened this issue Dec 24, 2021 · 1 comment
Open

Implement using ExternalAnnotator #65

firewave opened this issue Dec 24, 2021 · 1 comment

Comments

@firewave
Copy link
Collaborator

firewave commented Dec 24, 2021

From https://youtrack.jetbrains.com/issue/CPP-22882#focus=Comments-27-5675064.0-0

LocalInspectionTool is not designed for running external executables, like cppcheck. For such task, ExternalAnnotator should be used. The flow is similar: inherit this class, override collectInformation to get all required data (like, virtual files, include dir, etc.), doAnnotate to actually execute cppcheck and finally apply to apply diagnostics to editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant