File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
cpp/ql/src/Metrics/Internal Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @name Count AST inconsistencies
3+ * @description Counts the various AST inconsistencies that may occur.
4+ * This query is for internal use only and may change without notice.
5+ * @kind table
6+ * @id cpp/count-ast-inconsistencies
7+ */
8+
9+ import cpp
10+
11+ predicate hasDuplicateFunctionEntryPointLocation ( Function func ) {
12+ count ( func .getEntryPoint ( ) .getLocation ( ) ) > 1
13+ }
14+
15+ predicate hasDuplicateFunctionEntryPoint ( Function func ) { count ( func .getEntryPoint ( ) ) > 1 }
16+
17+ select count ( Function f | hasDuplicateFunctionEntryPoint ( f ) | f ) as duplicateFunctionEntryPoint ,
18+ count ( Function f | hasDuplicateFunctionEntryPointLocation ( f ) | f ) as duplicateFunctionEntryPointLocation
You can’t perform that action at this time.
0 commit comments