Skip to content

Commit 42512c7

Browse files
committed
Removed bad column
1 parent 8b56c60 commit 42512c7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ 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+
1924
/**
2025
* A compiler error happening in a project file.
2126
*/
22-
predicate local_compiler_error(CompilerError e) { exists(e.getFile().getRelativePath()) }
27+
predicate local_compiler_error(CompilerError e) { local_file(e.getFile()) }
2328

2429
/**
2530
* A compiler error happening in a project file, where the error is due to a token being undefined.
@@ -35,7 +40,7 @@ predicate undefined_token_error(CompilerError e) {
3540
e.hasTag("not_a_class_template")
3641
}
3742

38-
select count(CannotOpenFileError e) as failed_includes, count( | | 1) as total_files,
43+
select count(CannotOpenFileError e) as failed_includes,
3944
count(Include i) as successful_includes,
4045
count(Include i) + count(CannotOpenFileError e) as total_includes,
4146
count(CompilerError e | local_compiler_error(e) and undefined_token_error(e)) as local_undefined_token_errors,

0 commit comments

Comments
 (0)