<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Malhar,<div class=""><br class=""></div><div class="">The clang static analyzer doesn’t support analysis between translation units (for example when a path crosses from one .c file into another .c file). </div><div class=""><br class=""></div><div class="">The analyzer does support when a path crosses from a .c to a .h (this is technically cross file) — but the scan-build tool cannot visualize those diagnostics in html. Other tools (such as Xcode) can visualize paths between a .c and header files.</div><div class=""><br class=""></div><div class="">In event, I suspect you are looking for true cross-translation unit analysis — which the analyzer does not support.</div><div class=""><br class=""></div><div class="">There is some very preliminary investigation of cross-translation unit support in <a href="https://reviews.llvm.org/D30691" class="">https://reviews.llvm.org/D30691</a> if you are interested!</div><div class=""><br class=""></div><div class="">Devin</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jun 15, 2017, at 3:32 AM, Malhar Thakkar 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 dir="ltr" class="">Hello everyone,<div class=""><br class=""></div><div class="">Could anyone please guide me on how to enable diagnostics that cross file boundaries while using scan-build?</div><div class=""><br class=""></div><div class="">Thank you.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Malhar</div></div><div hspace="streak-pt-mark" style="max-height:1px" class=""><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aY3MxM2IxMDMxQGlpdGguYWMuaW4%3D&type=zerocontent&guid=e6479b81-035a-4b5d-a3f5-1abf74129a35" class=""><font color="#ffffff" size="1" class="">ᐧ</font></div>
_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></div></div></body></html>