We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960c07a commit 2bd9f64Copy full SHA for 2bd9f64
src/csgrep.cc
@@ -19,6 +19,7 @@
19
20
#include "abstract-parser.hh"
21
#include "abstract-filter.hh"
22
+#include "csfilter.hh"
23
#include "cswriter.hh"
24
#include "json-writer.hh"
25
#include "regex.hh"
@@ -352,7 +353,11 @@ class DuplicateFilter: public AbstractFilter {
352
353
354
protected:
355
virtual bool matchDef(const Defect &def) {
- const DefEvent &evt = def.events[def.keyEventIdx];
356
+ DefEvent evt = def.events[def.keyEventIdx];
357
+
358
+ // abstract out differences we do not deem important
359
+ evt.msg = MsgFilter::inst()->filterMsg(evt.msg, def.checker);
360
361
return lookup_.insert(evt)./* inserted */second;
362
}
363
0 commit comments