Skip to content

Commit a53e1de

Browse files
committed
C++: Minor edits
1 parent f6776a4 commit a53e1de

File tree

11 files changed

+14
-29
lines changed

11 files changed

+14
-29
lines changed

cpp/ql/src/Telemetry/Metrics.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ module CppMetrics {
215215
SucceededIncludeCount() {
216216
exists(Include i |
217217
i.getIncludeText() = include_text and
218-
exists(i.getFile().getRelativePath()) // Only report includes from the repo
218+
exists(i.getFile().getRelativePath()) // Only report includes from the repo
219219
) and
220220
this = "Successfully included " + include_text
221221
}

cpp/ql/test/library-tests/extraction_errors/ExtractionMetrics.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
| functions without errors | 6.0 |
1111
| lines of code | 19.0 |
1212
| lines of code without errors | 12.0 |
13-
| lines of text | 26.0 |
13+
| lines of text | 24.0 |
1414
| non-error expressions | 3.0 |
1515
| source files | 3.0 |
1616
| source files without errors | 2.0 |

cpp/ql/test/library-tests/extraction_errors/PrintAst.expected

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ test.cpp:
6969
#-----| ValueCategory = prvalue
7070
# 17| getStmt(2): [ReturnStmt] return ...
7171
test.h:
72-
# 4| [TopLevelFunction] int f(int)
73-
# 4| <params>:
74-
# 4| getParameter(0): [Parameter] (unnamed parameter 0)
75-
# 4| Type = [IntType] int
76-
# 4| [TopLevelFunction] int f(int)
77-
# 4| <params>:
78-
# 4| getParameter(0): [Parameter] (unnamed parameter 0)
79-
# 4| Type = [IntType] int
72+
# 2| [TopLevelFunction] int f(int)
73+
# 2| <params>:
74+
# 2| getParameter(0): [Parameter] (unnamed parameter 0)
75+
# 2| Type = [IntType] int
76+
# 2| [TopLevelFunction] int f(int)
77+
# 2| <params>:
78+
# 2| getParameter(0): [Parameter] (unnamed parameter 0)
79+
# 2| Type = [IntType] int
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import cpp
22

33
from Diagnostic d
4-
select d
4+
select d

cpp/ql/test/library-tests/extraction_errors/error_fn_returns.expected

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/test/library-tests/extraction_errors/error_fn_returns.ql

Lines changed: 0 additions & 5 deletions
This file was deleted.

cpp/ql/test/library-tests/extraction_errors/error_types.expected

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/test/library-tests/extraction_errors/error_types.ql

Lines changed: 0 additions & 6 deletions
This file was deleted.

cpp/ql/test/library-tests/extraction_errors/functions.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
| test.c:4:13:4:13 | no_such_function |
33
| test.cpp:5:6:5:25 | function_with_errors |
44
| test.cpp:14:10:14:12 | fn2 |
5-
| test.h:4:5:4:5 | f |
6-
| test.h:4:5:4:5 | f |
5+
| test.h:2:5:2:5 | f |
6+
| test.h:2:5:2:5 | f |

cpp/ql/test/library-tests/extraction_errors/functions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import cpp
22

33
from Function fn
44
where fn.fromSource()
5-
select fn
5+
select fn

0 commit comments

Comments
 (0)