]> granicus.if.org Git - clang/commit
lex: improve include handling on Linux for Windows
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 11 Mar 2014 22:41:45 +0000 (22:41 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 11 Mar 2014 22:41:45 +0000 (22:41 +0000)
commita66ca64d4be3dadfa3aee5150de8312796427bc2
tree07fb87638c678a277c89a60f7b5e8888e90d165e
parent640884e00a911d9a599dd8fd5dd26cdd96dfc9ea
lex: improve include handling on Linux for Windows

Normalise the path separator character on non-windows platforms.  Although this
would work on Windows as well (most newer versions of Windows support either '/'
or '\' as a path separator character), it could potentially cause problems with
full UNC paths.  This change enables the use of the Windows SDK on Linux which
will not accept '\' as a path separator.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPDirectives.cpp