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. llvm-svn: 224164
16 lines
492 B
Mathematica
16 lines
492 B
Mathematica
// Check that we can dump all of the headers a module depends on, and a VFS map
|
|
// for the same.
|
|
|
|
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -module-dependency-dir %t/vfs -F %S/Inputs -I %S/Inputs -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
// RUN: FileCheck %s -check-prefix=VFS -input-file %t/vfs/vfs.yaml
|
|
// VFS: 'name': "SubFramework.h"
|
|
// VFS: 'name': "Treasure.h"
|
|
// VFS: 'name': "Module.h"
|
|
// VFS: 'name': "Sub.h"
|
|
// VFS: 'name': "Sub2.h"
|
|
|
|
@import Module;
|