]> granicus.if.org Git - clang/commit
Frontend: Canonicalize to native paths when dumping module dependencies
authorJustin Bogner <mail@justinbogner.com>
Fri, 12 Dec 2014 23:12:27 +0000 (23:12 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 12 Dec 2014 23:12:27 +0000 (23:12 +0000)
commit4a3e3b733fb33d1884738cb496b112cb54286022
tree8599f051c634d100c4808dc8b52c49c21514bc99
parent2656b70db3192cca3191c654ef5195bf74cd6967
Frontend: Canonicalize to native paths when dumping module dependencies

Mixed path separators (ie, both / and \\) can mess up the sort order
of the VFS map when dumping module dependencies, as was recently
exposed by r224055 and papered over in r224145. Instead, we should
simply use native paths for consistency.

This also adds a TODO to add handling of .. in paths. There was some
code for this before r224055, but it was untested and probably broken.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/ModuleDependencyCollector.cpp
test/Modules/dependency-dump.m