File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ codescanning
2+ * Added cpp/diagnostics/failed-extractions. This query gives information about which extractions did not run to completion.
Original file line number Diff line number Diff line change 1+ /**
2+ * @name Failed extractions
3+ * @description Gives the command-line of compilations for which extraction did not run to completion.
4+ * @kind diagnostic
5+ * @id cpp/diagnostics/failed-extractions
6+ */
7+
8+ import cpp
9+
10+ class AnonymousCompilation extends Compilation {
11+ override string toString ( ) { result = "<compilation>" }
12+ }
13+
14+ string describe ( Compilation c ) {
15+ if c .getArgument ( 1 ) = "--mimic"
16+ then result = "compiler invocation " + concat ( int i | i > 1 | c .getArgument ( i ) , " " order by i )
17+ else result = "extractor invocation " + concat ( int i | | c .getArgument ( i ) , " " order by i )
18+ }
19+
20+ from Compilation c
21+ where not c .normalTermination ( )
22+ select c , "Extraction failed for " + describe ( c ) , 2
You can’t perform that action at this time.
0 commit comments