github / github/codeql

False positive - tuple unpacking bracket detected as variable

Offen
#14,753 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
false-positive
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.