Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cd373c

Browse files
Format codeql files
1 parentaebfe0e commit0cd373c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

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

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

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

Lines changed: 4 additions & 5 deletions
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::ExprgetExpr(){
144-
this=TStdFunctionCall(result)or
144+
this=TStdFunctionCall(result)
145+
or
145146
exists(MacroInvocationmi|
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::ExprinferExpr(cpp::MacroInvocationmi){
171-
result=getFunctionCall(mi)
172-
}
171+
cpp::ExprinferExpr(cpp::MacroInvocationmi){result=getFunctionCall(mi)}
173172

174173
bindingset[mi]
175174
private cpp::FunctionCallgetFunctionCall(cpp::MacroInvocationmi){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp