Skip to content

Commit 38c17c5

Browse files
committed
Merge branch 'main' into rbMeta
2 parents 5d9c68c + 4b1f6f0 commit 38c17c5

File tree

248 files changed

+7723
-3013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+7723
-3013
lines changed

cpp/ql/lib/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.1
2+
3+
No user-facing changes.
4+
15
## 0.4.0
26

37
### Deprecated APIs
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.4.1
2+
3+
No user-facing changes.

cpp/ql/lib/codeql-pack.release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.4.0
2+
lastReleaseVersion: 0.4.1

cpp/ql/lib/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/cpp-all
2-
version: 0.4.1-dev
2+
version: 0.4.2-dev
33
groups: cpp
44
dbscheme: semmlecode.cpp.dbscheme
55
extractor: cpp

cpp/ql/src/Best Practices/Hiding/LocalVariableHidesGlobalVariable.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ from LocalVariableOrParameter lv, GlobalVariable gv
3535
where
3636
lv.getName() = gv.getName() and
3737
lv.getFile() = gv.getFile()
38-
select lv, lv.type() + gv.getName() + " hides $@ with the same name.", gv, "a global variable"
38+
select lv, lv.type() + gv.getName() + " hides a $@ with the same name.", gv, "global variable"

cpp/ql/src/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.4.1
2+
3+
### Minor Analysis Improvements
4+
5+
* The alert message of many queries have been changed to better follow the style guide and make the message consistent with other languages.
6+
17
## 0.4.0
28

39
### New Queries

cpp/ql/src/Diagnostics/SuccessfullyExtractedFiles.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @description Lists all files in the source code directory that were extracted without encountering a problem in the file.
44
* @kind diagnostic
55
* @id cpp/diagnostics/successfully-extracted-files
6+
* @tags successfully-extracted-files
67
*/
78

89
import cpp

cpp/ql/src/Likely Bugs/ShortLoopVarName.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ where
4848
not coordinatePair(iterationVar, innerVar)
4949
select iterationVar,
5050
"Iteration variable " + iterationVar.getName() +
51-
" for $@ should have a descriptive name, since there is $@.", outer, "this loop", inner,
52-
"a nested loop"
51+
" for $@ should have a descriptive name, since there is a $@.", outer, "this loop", inner,
52+
"nested loop"

cpp/ql/src/Security/CWE/CWE-190/ArithmeticUncontrolled.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,5 @@ where
135135
sink.getNode().asExpr() = va and
136136
missingGuard(va, effect)
137137
select sink.getNode(), source, sink,
138-
"Arithmetic expression depends on an $@, potentially causing an " + effect + ".",
138+
"This arithmetic expression depends on an $@, potentially causing an " + effect + ".",
139139
getExpr(source.getNode()), "uncontrolled value"
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
---
2-
category: minorAnalysis
3-
---
1+
## 0.4.1
2+
3+
### Minor Analysis Improvements
4+
45
* The alert message of many queries have been changed to better follow the style guide and make the message consistent with other languages.

0 commit comments

Comments
 (0)