<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Preamble is also generated for the second reparse on Windows"
   href="https://llvm.org/bugs/show_bug.cgi?id=28535">28535</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Preamble is also generated for the second reparse on Windows
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nikolai.kosjar@qt.io
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16736" name="attach_16736" title="sources (libclangclient.cpp) and test input to reproduce the problem">attachment 16736</a> <a href="attachment.cgi?id=16736&action=edit" title="sources (libclangclient.cpp) and test input to reproduce the problem">[details]</a></span>
sources (libclangclient.cpp) and test input to reproduce the problem

Compile the attached libclangclient.cpp in debug mode.

Then run the executable:

<span class="quote">> set LIBCLANG_TIMING=1
> libclangclient.exe /path/to/main.cpp</span >
file path: D:\work\libclang38winMultiplePreambleGenerations\testsource\main.cpp
Parsing D:\work\libclang38winMultiplePreambleGenerations\testsource\main.cpp:  
     -----
Precompiling preamble:   0.0156 (100.0%)   0.0156 (100.0%)   0.0156 (100.0%)
Reparsing D:\work\libclang38winMultiplePreambleGenerations\testsource\main.cpp:
  0.0156 (100.0%)   0.0156 (100.0%)
   0.0156 (100.0%)
Precompiling preamble:        -----
Reparsing D:\work\libclang38winMultiplePreambleGenerations\testsource\main.cpp:
  0.0156 (100.0%)

Note that the preamble is not only generated for the first reparse, but also
for the second.

This does not happen on Linux, there it's only generated for the very first
reparse.</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>