mirror of
https://github.com/github/codeql.git
synced 2026-05-21 06:37:10 +02:00
Add justfiles for C++ following the pattern of other ported languages (go, rust, swift). Move consistency queries from semmle-code's semmlecode-cpp-consistency-queries/ to ql/cpp/ql/consistency-queries/. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
10 lines
330 B
Plaintext
10 lines
330 B
Plaintext
import cpp
|
|
|
|
// Locations should either be :0:0:0:0 locations (UnknownLocation, or
|
|
// a whole file), or all 4 fields should be positive.
|
|
from Location l
|
|
where
|
|
[l.getStartLine(), l.getEndLine(), l.getStartColumn(), l.getEndColumn()] != 0 and
|
|
[l.getStartLine(), l.getEndLine(), l.getStartColumn(), l.getEndColumn()] < 1
|
|
select l
|