Skip to content

Commit db5e0ff

Browse files
committed
Swift: Autoformat.
1 parent 3d552d7 commit db5e0ff

File tree

1 file changed

+10
-20
lines changed
  • swift/ql/lib/codeql/swift/frameworks/StandardLibrary

1 file changed

+10
-20
lines changed

swift/ql/lib/codeql/swift/frameworks/StandardLibrary/Numeric.qll

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,20 @@ private class NumericFieldsInheritTaint extends TaintInheritingContent,
8383
NumericFieldsInheritTaint() {
8484
exists(string className, string fieldName |
8585
(
86-
(
87-
className = "FixedWidthInteger" and
88-
fieldName = ["littleEndian", "bigEndian"]
89-
)
86+
className = "FixedWidthInteger" and
87+
fieldName = ["littleEndian", "bigEndian"]
9088
or
91-
(
92-
className = "FloatingPoint" and
93-
fieldName = ["exponent", "significand"]
94-
)
89+
className = "FloatingPoint" and
90+
fieldName = ["exponent", "significand"]
9591
or
96-
(
97-
className = "BinaryInteger" and
98-
fieldName = "words"
99-
)
92+
className = "BinaryInteger" and
93+
fieldName = "words"
10094
or
101-
(
102-
className = "Numeric" and
103-
fieldName = ["magnitude", "byteSwapped"]
104-
)
95+
className = "Numeric" and
96+
fieldName = ["magnitude", "byteSwapped"]
10597
or
106-
(
107-
className = "BinaryFloatingPoint" and
108-
fieldName = ["binade", "exponentBitPattern", "significandBitPattern"]
109-
)
98+
className = "BinaryFloatingPoint" and
99+
fieldName = ["binade", "exponentBitPattern", "significandBitPattern"]
110100
) and
111101
exists(FieldDecl fieldDecl, Decl declaringDecl, TypeDecl namedTypeDecl |
112102
namedTypeDecl.getFullName() = className and

0 commit comments

Comments
 (0)