github / github/codeql

False positive - tuple unpacking bracket detected as variable

Open
#14,753 1 comment 0 reactions 0 assignees View on GitHub
false-positive
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**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...
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.