<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 9, 2015, at 8:00 AM, Alexander Droste via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">does the analyzer always produce multiple reports<br class="">if the detected error is in a template that gets instantiated<br class="">in multiple translation units or is the check itself<br class="">then doing something wrong if bugs get reported more than once?<br class=""></div></div></blockquote><div><br class=""></div><div>The analyzer does not do any cross-translation unit uniquing. So if an error is detected in the same header in multiple translation units it will get reported multiple times. Also, if the analyzer notices that the last component of path diagnostic is in a header, it will try to report the diagnostic at the last location along the path in the mail file (see <span style="font-family: Menlo; font-size: 11px; color: rgb(79, 129, 135);" class="">PathDiagnostic</span><span style="font-family: Menlo; font-size: 11px;" class="">::resetDiagnosticLocationToMainFile()</span>).</div><div><br class=""></div><div>Devin</div></div></body></html>