Skip to content

Commit 4691bf2

Browse files
committed
C++: Be more optimistic about successfully scanned files.
1 parent 2eba3db commit 4691bf2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
/**
2-
* @name Successfully extracted files
3-
* @description Lists all files in the source code directory that were extracted without encountering a problem in the file.
2+
* @name Extracted files
3+
* @description Lists all files in the source code directory that were extracted.
44
* @kind diagnostic
55
* @id cpp/diagnostics/successfully-extracted-files
66
* @tags successfully-extracted-files
77
*/
88

99
import cpp
10-
import ExtractionProblems
1110

1211
from File f
13-
where
14-
not exists(ExtractionProblem e | e.getFile() = f) and
15-
exists(f.getRelativePath())
12+
where exists(f.getRelativePath()) and f.fromSource()
1613
select f, "File successfully extracted."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
| containserror.cpp:0:0:0:0 | containserror.cpp | File successfully extracted. |
22
| containswarning.cpp:0:0:0:0 | containswarning.cpp | File successfully extracted. |
3+
| doesnotcompile.cpp:0:0:0:0 | doesnotcompile.cpp | File successfully extracted. |
34
| header.h:0:0:0:0 | header.h | File successfully extracted. |
45
| successful.cpp:0:0:0:0 | successful.cpp | File successfully extracted. |

0 commit comments

Comments
 (0)