github / github/codeql

Java Get Assignment Node In Dataflow Path

オープン
#17,745 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

Hello,

I am analyzing the dataflow paths for some of my queries and noticing some steps are being left out—specifically, the steps related to assignments. For example,

```
String value1 = "Hello";

String value2 = value1;

print(value2)
```

The dataflow path for this would be

value1 - from `String value1 = "Hello";`
value1 - from `String value2 = value1;`
value2 from `print(value2)`

Is there a way to also have value2 from `value1 - from `String value2 = value1;` inserted as step 3? So that it is

value1 - from `String value1 = "Hello";`
value1 - from `String value2 = value1;`
value2 - from `String value2 = value1;`
value2 from `print(value2)`

So that it is easier to follow the assignments? It's simple in this example, however, it can become confusing in more complex situations.

Thank you

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。