Skip to content

Commit 3507ea3

Browse files
committed
Swift: Autoformat.
1 parent d0f4518 commit 3507ea3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

swift/ql/lib/codeql/swift/elements/decl/MethodDecl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class MethodDecl extends AbstractFunctionDecl {
2626
* Holds if this function is called `funcName` and its a member of a
2727
* class, struct, extension, enum or protocol call `typeName`.
2828
*/
29-
cached predicate hasQualifiedName(string typeName, string funcName) {
29+
cached
30+
predicate hasQualifiedName(string typeName, string funcName) {
3031
this.getName() = funcName and
3132
(
3233
exists(NominalTypeDecl c |

swift/ql/lib/codeql/swift/elements/decl/TypeDecl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class TypeDecl extends TypeDeclBase {
2626
* The name and full name of `A` is `A`. The name of `B` is `B`, but the
2727
* full name of `B` is `A.B`.
2828
*/
29-
cached string getFullName() {
29+
cached
30+
string getFullName() {
3031
not this.getEnclosingDecl() instanceof TypeDecl and
3132
result = this.getName()
3233
or

0 commit comments

Comments
 (0)