mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
C++: Use set literals (more).
This commit is contained in:
@@ -15,13 +15,7 @@ import cpp
|
||||
|
||||
from Element u, ArithmeticType at
|
||||
where
|
||||
(
|
||||
at.hasName("int") or
|
||||
at.hasName("short") or
|
||||
at.hasName("long") or
|
||||
at.hasName("float") or
|
||||
at.hasName("double")
|
||||
) and
|
||||
at.hasName(["int", "short", "long", "float", "double"]) and
|
||||
u = at.getATypeNameUse() and
|
||||
not at instanceof WideCharType
|
||||
select u, "AV Rule 209: The basic types of int, short, long, float and double shall not be used."
|
||||
|
||||
Reference in New Issue
Block a user