<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 --- - Clang tidy modernize crashes on Windows when processing Visual Studio cstdio header file"
   href="https://llvm.org/bugs/show_bug.cgi?id=31452">31452</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang tidy modernize crashes on Windows when processing Visual Studio cstdio header file
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>adamf88@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If I run clang tidy with such command:
clang-tidy.exe Blob.cpp -checks=-*,modernize-use-using

on simple cpp file (only #include <cstdio>):
#include <cstdio>

then I receive an error:
Assertion failed: Loc >= BufferStart && Loc <= BufferEnd && "Location out of
range for this buffer!", file D:\src\llvm_package_288
665\llvm\tools\clang\lib\Lex\Lexer.cpp, line 1079

Tested on Visual Studio 2015 Update 3 standard library.

The problem is related with this typedef in Visual Studio cstdio file:
typedef FILE _Filet;

I used clang build snapshot r288665</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>