github / github/codeql

False positive - tuple unpacking bracket detected as variable

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

説明

**Description of the false positive**

tuple unpack left bracket detected as variable.

![image](https://github.com/github/codeql/assets/30491/94923844-3eed-4d4a-990b-2aba7d4f425e)
https://github.com/PhilipDeegan/PHARE/security/code-scanning/913

**Code samples or links to source code**

```c++
#include

void fn(std::tuple, std::tuple> const& tup){
auto const& [A,B] = tup;
auto const& [a0, a1, a2] a = A;
auto const& [b0, b1, b2] a = B;

// do something with a/b vals...
}
```

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

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

評価

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

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

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