johnthagen/clion-cppcheck

Implement using ExternalAnnotator

オープン

#65 opened on 2021/12/24

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)Java (7 件のフォーク)github user discovery
enhancementhelp wantedv2

Repository metrics

Stars
 (37 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド