Skip to content

Commit 8389f26

Browse files
committed
Removed other redundant columns
1 parent 90ce113 commit 8389f26

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

cpp/ql/src/Metrics/Internal/IncludeResolutionStatus.ql

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,4 @@ class CannotOpenFileError extends CompilerError {
1616
CannotOpenFileError() { this.hasTag(["cannot_open_file", "cannot_open_file_reason"]) }
1717
}
1818

19-
/**
20-
* A file in the project being analyzed.
21-
*/
22-
predicate local_file(File f) { exists(f.getRelativePath()) }
23-
24-
/**
25-
* A compiler error happening in a project file.
26-
*/
27-
predicate local_compiler_error(CompilerError e) { local_file(e.getFile()) }
28-
29-
/**
30-
* A compiler error happening in a project file, where the error is due to a token being undefined.
31-
*/
32-
predicate undefined_token_error(CompilerError e) {
33-
// The following is a non-exaustive list of tags that indicate that a token
34-
// is undefined.
35-
e.hasTag("not_a_member") or
36-
e.hasTag("undefined_identifier") or
37-
e.hasTag("no_matching_function") or
38-
e.hasTag("too_many_arguments") or
39-
e.hasTag("not_a_class_or_struct_name") or
40-
e.hasTag("not_a_class_template")
41-
}
42-
43-
select count(CannotOpenFileError e) as failed_includes, count(Include i) as successful_includes,
44-
count(CompilerError e | local_compiler_error(e) and undefined_token_error(e)) as local_undefined_token_errors,
45-
count(CompilerError e | local_compiler_error(e)) as local_errors
19+
select count(CannotOpenFileError e) as failed_includes, count(Include i) as successful_includes

0 commit comments

Comments
 (0)