https://llvm.org/bugs/show_bug.cgi?id=31452

            Bug ID: 31452
           Summary: Clang tidy modernize crashes on Windows when
                    processing Visual Studio cstdio header file
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: adam...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to