<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div class="im"><div><blockquote type="cite">Determining them based on -I vs -isystem would seem to be a sensible<br>distinction.<br><br>At least, that's what I use to include third party libraries when I want<br>

to ignore warnings they produce.  It's entirely possible I'm abusing<br>that feature.<br></blockquote><br></div></div><div>It's a bit of an abuse but likely not a harmful one. </div></div></blockquote><div><br>

</div><div>So, something like: -analyzer-opt-ignore-system-headers ?</div><div>This would fix my situation, provided I'm willing to go through my build command and replace several instances of -I with -isystem for the purposes of analysis. I don't think that would break the semantics of my build, but I'm not sure you can say that in general. Changing from -I to -isystem will cause the directory to be searched after all -I directories, so if your build is order sensitive, that might cause problems.</div>

<div><br></div><div><br></div></div></div></div>