github / github/codeql

False positive - tuple unpacking bracket detected as variable

Aberta
#14,753 1 comentário 0 reações 0 responsáveis Ver no GitHub
false-positive
Linguagem predominante
CodeQL
Estrelas
10.1k
Forks
2.1k
Merge médio
2d 15h
PRs com merge (30d)
141

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.