mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
Some files that will change in #1736 have been spared. ./build -j4 target/jars/qlformat find ql/cpp/ql -name "*.ql" -print0 | xargs -0 target/jars/qlformat --input find ql/cpp/ql -name "*.qll" -print0 | xargs -0 target/jars/qlformat --input (cd ql && git checkout 'cpp/ql/src/semmle/code/cpp/ir/implementation/**/*SSA*.qll') buildutils-internal/scripts/pr-checks/sync-identical-files.py --latest
13 lines
634 B
Plaintext
13 lines
634 B
Plaintext
import cpp
|
|
|
|
from Cast c, string cs, string ts, string volatile, string const, string explicit, string padding
|
|
where
|
|
(if c.getType().isVolatile() then volatile = "Volatile" else volatile = "--------") and
|
|
(if c.getType().isConst() then const = "Const" else const = "-----") and
|
|
(if c.isImplicit() then explicit = "implicit" else explicit = "explicit") and
|
|
padding = " " and
|
|
cs = c.toString() and
|
|
ts = c.getType().toString()
|
|
select c.getLocation().getStartLine(), (cs + padding).prefix(cs.length().maximum(23)),
|
|
(ts + padding).prefix(ts.length().maximum(18)), explicit, volatile, const
|