We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf43554 commit 66d2344Copy full SHA for 66d2344
cpp/common/src/codingstandards/cpp/Cpp14Literal.qll
@@ -74,7 +74,7 @@ module Cpp14Literal {
74
* double floating = 1.340923e-19;
75
* ```
76
*/
77
- class FloatingLiteral extends RecognizedNumericLiteral {
+ class FloatingLiteral extends NumericLiteral, RecognizedNumericLiteral {
78
FloatingLiteral() {
79
getValueText().regexpMatch("\\s*[0-9][0-9']*(\\.[0-9']+)?([eE][\\+\\-]?[0-9']+)?[flFL]?\\s*") and
80
// A decimal literal takes precedent
@@ -101,8 +101,6 @@ module Cpp14Literal {
101
}
102
103
104
- predicate test(RecognizedNumericLiteral r, string valueText) { valueText = r.getValueText() }
105
-
106
/**
107
* A character literal. For example:
108
0 commit comments