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