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

Appearance settings

Commit ad04356

Browse filesBrowse files
committed
C++: Add build mode to the telemetry
1 parent 7248fb7 commit ad04356
Copy full SHA for ad04356

File tree

2 files changed

+9
-0
lines changed
Filter options

2 files changed

+9
-0
lines changed

‎cpp/ql/src/Telemetry/Metrics.qll

Copy file name to clipboardExpand all lines: cpp/ql/src/Telemetry/Metrics.qll
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,12 @@ module CppMetrics {
266266

267267
override int getValue() { result = count(SyntaxError e) }
268268
}
269+
270+
class BuildModeNone extends ExtractionMetric {
271+
BuildModeNone() { this = "build mode none" }
272+
273+
override int getValue() {
274+
if exists(Compilation c | c.buildModeNone()) then result = 1 else result = 0
275+
}
276+
}
269277
}

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

Copy file name to clipboardExpand all lines: cpp/ql/test/library-tests/extraction_errors/ExtractionMetrics.expected
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
| #include directives | 2 |
2+
| build mode none | 0 |
23
| calls | 2 |
34
| calls with an explicit target | 1 |
45
| compilations | 2 |

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.