<div dir="ltr">Ah, I see - thanks for explaining! (I have no further context/don't work on the Windows side of things - so will leave the rest of the thread to others who might have more relevant info)</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 23, 2018 at 8:23 AM Jan Kokemüller <<a href="mailto:jan.kokemueller@gmail.com">jan.kokemueller@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 23.04.2018 16:52, David Blaikie wrote:<br>
> What do you mean by "won't work" - in the sense that a function that has exceptions enabled but no exception path is tested won't have full coverage? That seems arguably correct/useful?<br>
<br>
Currently functions that use exceptions are not instrumented at all. All<br>
code in such functions shows up as '-' in the .gcov files.<br>
<br>
For example: If you use std::string in a function and have exceptions<br>
enabled with "/EHsc" this function won't be instrumented as std::string<br>
might throw std::bad_alloc.<br>
<br>
This is a pretty new feature though[1]. It works great for the Firefox<br>
code base, but they have exceptions disabled I think.<br>
<br>
<br>
[1]: <a href="https://marco-c.github.io/2018/01/09/code-coverage-with-clang-on-windows.html" rel="noreferrer" target="_blank">https://marco-c.github.io/2018/01/09/code-coverage-with-clang-on-windows.html</a><br>
</blockquote></div>