File tree Expand file tree Collapse file tree
cpp/ql/src/Metrics/Internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ predicate hasDuplicateFunctionEntryPointLocation(Function func) {
1414
1515predicate hasDuplicateFunctionEntryPoint ( Function func ) { count ( func .getEntryPoint ( ) ) > 1 }
1616
17- predicate hasNonUniqueDeclarationEntry ( DeclStmt stmt , int i ) {
17+ predicate hasDuplicateDeclarationEntry ( DeclStmt stmt , int i ) {
1818 strictcount ( stmt .getDeclarationEntry ( i ) ) > 1
1919}
2020
2121select count ( Function f | hasDuplicateFunctionEntryPoint ( f ) ) as duplicateFunctionEntryPoint ,
2222 count ( Function f | hasDuplicateFunctionEntryPointLocation ( f ) ) as duplicateFunctionEntryPointLocation ,
23- count ( DeclStmt stmt , int i | hasNonUniqueDeclarationEntry ( stmt , i ) ) as nonUniqueDeclarationEntry
23+ count ( DeclStmt stmt , int i | hasDuplicateDeclarationEntry ( stmt , i ) ) as duplicateDeclarationEntry
You can’t perform that action at this time.
0 commit comments