File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed
cpp/ql/src/Metrics/Internal Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments