<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Yup, Kristof is right: there's a difference between "files" and
"translation units". Your #includes may be different files on disk,
but every .c/.cpp file is compiled together with all of its includes
in a single Clang process, therefore there never were any technical
barriers to produce reports that jump from .c to .h and back in this
scenario. The minor difficulties to present the bug report to the
user (either as .plist or as .html) were indeed resolved recently
(like, a few years ago).<br>
<br>
The actual cross-translation-unit analysis challenge is to exchange
information between multiple instances of Clang that compile
different translation units, either by serializing intermediate
analysis results on disk, or by passing them around through an IPC
interface. We have a solution that attempts to do the former, but
it's not enabled by default yet.<br>
<br>
I don't think our .plist format is documented anywhere. It's
probably a very good idea to get it documented so that people who
rely on it didn't have to continuously monitor the upstream commits.
I don't think we had any breaking changes since multi-file plists
were introduced, but we did add a few extra fields since then (issue
hashes, opt-in performance statistics, executed lines, macro
expansions(?)).<br>
<br>
<div class="moz-cite-prefix">On 3/13/19 2:43 PM, Kristóf Umann via
cfe-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGcXOD5+aLrNbxjj+gqoXj_HP_rxOD6-VSgkVR2jyrYs3jsq3g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi!<br>
<br>
CTU is off by default -- isn't it possible that those filenames
are headers and other included files?
<div><br>
</div>
<div>>
Is there another place where I might be able to find this sort
of information in the future? Thank you.</div>
<div>Enable the checker debug.ConfigDumper, that might tell a
couple things, coupled with the frontend flag
-analyzer-config-help. Mind you, we are currently working on a
lot nicer user interface ;)</div>
<div><br>
Cheers,
<div>Kristóf Umann</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Gianluca Gross via cfe-dev
<<a href="mailto:cfe-dev@lists.llvm.org"
moz-do-not-send="true">cfe-dev@lists.llvm.org</a>> ezt
írta (időpont: 2019. márc. 13., Sze, 20:35):<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello
all,<br>
<br>
Just a quick question. Is it true that the latest version of
clang runs <br>
inter-file analysis (using the cross translation unit) by
default? We <br>
were working with an older version of clang, and after
updating it seems <br>
that the output plist files contain multiple file paths.
Apologies if <br>
this question is too simple or not appropriate for this
mailing list. Is <br>
there another place where I might be able to find this sort of
<br>
information in the future? Thank you.<br>
<br>
Best,<br>
Gianluca Gross<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank"
moz-do-not-send="true">cfe-dev@lists.llvm.org</a><br>
<a
href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>