Skip to content

Commit 57a1bec

Browse files
committed
Swift: Add missing QLDoc.
1 parent b4b78a1 commit 57a1bec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

swift/ql/lib/codeql/swift/security/CleartextLoggingExtensions.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private class CleartextLoggingFieldAdditionalFlowStep extends CleartextLoggingAd
9797
* A function that appears to be an imported C `printf` variant.
9898
* TODO: merge code with similar cases from the format string PR.
9999
*/
100-
class PrintfFormat extends FreeFunction {
100+
private class PrintfFormat extends FreeFunction {
101101
int formatParamIndex;
102102
string modeChars;
103103

@@ -106,6 +106,9 @@ class PrintfFormat extends FreeFunction {
106106
this.getParam(formatParamIndex).getName() = "format"
107107
}
108108

109+
/**
110+
* Gets the index of the format parameter.
111+
*/
109112
int getFormatParamIndex() { result = formatParamIndex }
110113

111114
/**

0 commit comments

Comments
 (0)