C++: Use set literals (more).

This commit is contained in:
Geoffrey White
2021-10-20 13:46:26 +01:00
parent ed73d9bab4
commit da412178ce
4 changed files with 43 additions and 109 deletions

View File

@@ -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."