github / github/codeql

False positive - tuple unpacking bracket detected as variable

未关闭
#14,753 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
false-positive
主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 15 小时
30 天内合并 PR
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 摘要。