Skip to content

Commit 0cd373c

Browse files
Format codeql files
1 parent aebfe0e commit 0cd373c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

c/cert/src/rules/FIO03-C/FopenWithNonExclusiveFileCreationMode.ql

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ where
3434
fopen.mayCreate() and
3535
not fopen.isExclusiveMode() and
3636
modeStr = PrintExpr<PrettyPrintExpr>::print(fopen.getMode())
37-
select fopen,
38-
"Call to create file with non-exclusive creation mode '" + modeStr + "'."
37+
select fopen, "Call to create file with non-exclusive creation mode '" + modeStr + "'."

cpp/common/src/codingstandards/cpp/StdFunctionOrMacro.qll

+4-5
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,13 @@ private module StdFunctionOrMacro<InferMacroExpansionArguments InferExpansion, g
136136

137137
/**
138138
* Get an expression that represents the call to the standard function or macro.
139-
*
139+
*
140140
* In the case of a macro, the result is determined by the `InferMacroExpansionArguments`
141141
* config module.
142142
*/
143143
cpp::Expr getExpr() {
144-
this = TStdFunctionCall(result) or
144+
this = TStdFunctionCall(result)
145+
or
145146
exists(MacroInvocation mi |
146147
this = TStdMacroInvocation(mi) and
147148
result = InferExpansion::inferExpr(mi)
@@ -167,9 +168,7 @@ private module PrefixedFunctionWrapperMacro<getPrefix/0 getPfx> {
167168
}
168169

169170
bindingset[mi]
170-
cpp::Expr inferExpr(cpp::MacroInvocation mi) {
171-
result = getFunctionCall(mi)
172-
}
171+
cpp::Expr inferExpr(cpp::MacroInvocation mi) { result = getFunctionCall(mi) }
173172

174173
bindingset[mi]
175174
private cpp::FunctionCall getFunctionCall(cpp::MacroInvocation mi) {

0 commit comments

Comments
 (0)