Skip to content

Commit 040be82

Browse files
committed
generate error notification for findings without location
1 parent 03f4715 commit 040be82

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/com/github/johnthagen/cppcheck/CppCheckInspectionImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public static List<ProblemDescriptor> parseOutput(@NotNull final PsiFile psiFile
140140

141141
// ignore entries without location e.g. missingIncludeSystem
142142
if (location == null) {
143+
CppcheckNotification.send("no location for " + psiFile.getVirtualFile().getCanonicalPath(),
144+
id + " " + severity + " " + inconclusive + " " + errorMessage,
145+
NotificationType.ERROR);
143146
continue;
144147
}
145148

0 commit comments

Comments
 (0)