[cfe-commits] [PATCH] - Preprocessor bug on WIN32 (PR 7953) - Windows filename are case insensitive.

Francois Pichet pichet2000 at gmail.com
Sat Aug 21 13:51:15 PDT 2010

This is a small patch to fix PR 7953.

#pragma once wasn't working on win32 if the header file was included
using a different case.
I tracked down  the problem to the fact that clang::FileManager was
caching files using case sensitive string (UniqueFiles) on Windows.

I changed FileManager to cache filename in lower case only.
Doesn't affect UNIX because UNIX uses Inode to uniquely identify files.

Pass all lit python tests on Windows (except those already failing).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Win32_filesystem_case_caching.patch
Type: application/octet-stream
Size: 849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100821/e3237708/attachment.obj>

More information about the cfe-commits mailing list