We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69c40b0 commit 2113b0dCopy full SHA for 2113b0d
cpp/ql/src/Best Practices/Magic Constants/MagicConstants.qll
@@ -72,18 +72,6 @@ predicate floatTrivial(Literal lit) {
72
73
predicate charLiteral(Literal lit) { lit instanceof CharLiteral }
74
75
-Type literalType(Literal literal) { result = literal.getType() }
76
-
77
-predicate stringType(DerivedType t) {
78
- t.getBaseType() instanceof CharType
79
- or
80
- exists(SpecifiedType constCharType |
81
- t.getBaseType() = constCharType and
82
- constCharType.isConst() and
83
- constCharType.getBaseType() instanceof CharType
84
- )
85
-}
86
87
predicate numberType(Type t) { t instanceof FloatingPointType or t instanceof IntegralType }
88
89
predicate stringLiteral(Literal literal) { literal instanceof StringLiteral }
0 commit comments