microsoft / microsoft/vscode-cpptools
Linter provides no warnings for invalid C code
オープン
まだ誰も着手していません。
Feature Request
Language Service
postponed
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
See title, create a fresh test.c file with the contents:
#include <stdio.h>
int main()
{
asdfd;
return 0;
}
(If) Linting is working properly, asdfd will be underlined with squigglies as you would expect. What you would not expect is that turning it into a function call makes the squigglies go away:
#include <stdio.h>
int main()
{
asdfd();
return 0;
}
Furthermore, hovering over it produces the popup int asdfd(), as if it was defined to return int somewhere. This is just silly.
Related to #746
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
2つのスニペットを使って新しい test.c で動作を再現し、単独の無効な識別子と関数呼び出し形式を比較します。関連する issue #746 を読み、その再現をもとに C/C++ の lint と hover の動作を追跡します。両方の無効な形式が適切に診断され、呼び出しの hover に作られた int asdfd() が表示されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100