Skip to content

Commit

Permalink
C++: Add build mode to the telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
calumgrant committed Jan 6, 2025
1 parent 7248fb7 commit ad04356
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cpp/ql/src/Telemetry/Metrics.qll
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,12 @@ module CppMetrics {

override int getValue() { result = count(SyntaxError e) }
}

class BuildModeNone extends ExtractionMetric {
BuildModeNone() { this = "build mode none" }

override int getValue() {
if exists(Compilation c | c.buildModeNone()) then result = 1 else result = 0
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
| #include directives | 2 |
| build mode none | 0 |
| calls | 2 |
| calls with an explicit target | 1 |
| compilations | 2 |
Expand Down

0 comments on commit ad04356

Please sign in to comment.