<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:hans@chromium.org" title="Hans Wennborg <hans@chromium.org>"> <span class="fn">Hans Wennborg</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang-cl crash when using /E on translation unit with error"
   href="http://llvm.org/bugs/show_bug.cgi?id=20336">bug 20336</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang-cl crash when using /E on translation unit with error"
   href="http://llvm.org/bugs/show_bug.cgi?id=20336#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang-cl crash when using /E on translation unit with error"
   href="http://llvm.org/bugs/show_bug.cgi?id=20336">bug 20336</a>
              from <span class="vcard"><a class="email" href="mailto:hans@chromium.org" title="Hans Wennborg <hans@chromium.org>"> <span class="fn">Hans Wennborg</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=20336#c8">comment #8</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=20336#c7">comment #7</a>)
> > (In reply to <a href="show_bug.cgi?id=20336#c6">comment #6</a>)
> > > Alternatively, could --show-includes use errs() instead of outs(), if it's
> > > something that doesn't disable the rest of compilation? This is how
> > > everything else I'm aware of in clang and other llvm tools work, which is
> > > why the raw_ostream code in question has been able to last almost 4 years in
> > > the tree by now.
> > 
> > Unfortunately not. MSVC prints --show-includes to stdout, and build tools
> > rely on that, so clang-cl should do the same.

> Ok. Does MSVC support "-o -" or something like it? If not, perhaps you could
> just issue an error if the user requests "-o -" and --show-includes at the
> same time.</span >

I think it's really just /E (preprocess to stdout) that results in this
situation. I've committed r213589 which makes us ignore /showIncludes (with the
usual warning) when combined with /E or /EP.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>