We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22b05a commit e230166Copy full SHA for e230166
cpp/ql/src/Metrics/Internal/IncludeResolutionStatus.ql
@@ -0,0 +1,20 @@
1
+/**
2
+ * @name Include file resolution status
3
+ * @description A count of successful includes and includes that failed to resolve.
4
+ * This query is for internal use only and may change without notice.
5
+ * @kind table
6
+ * @id cpp/include-resolution-status
7
+ */
8
+
9
+import cpp
10
11
12
+ * A cannot open file error.
13
+ *
14
+ * Typically this is due to a missing include.
15
16
+class CannotOpenFileError extends CompilerError {
17
+ CannotOpenFileError() { this.hasTag(["cannot_open_file", "cannot_open_file_reason"]) }
18
+}
19
20
+select count(CannotOpenFileError e) as failed_includes, count(Include i) as successful_includes
0 commit comments