CodeQL library for C/C++
Search

Predicate duplicateStatements

Holds if m1 is a function with total lines, and m2 is a function that has duplicate lines in common with m1.

Import path

import external.CodeDuplication
predicate duplicateStatements(FunctionDeclarationEntry m1, FunctionDeclarationEntry m2, int duplicate, int total)