]> granicus.if.org Git - clang/commit
[CrashReproducer] Setup 'use-external-names' in YAML files.
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 13 Apr 2016 19:28:21 +0000 (19:28 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 13 Apr 2016 19:28:21 +0000 (19:28 +0000)
commitacc90c3a8e86a9b1454ec76a86888171ba5d8bf4
tree44653bfa8225f8b489b683b9215fb7e7d7d6e905
parent3c75624a1661a906a8cb4de7056b0119f002c586
[CrashReproducer] Setup 'use-external-names' in YAML files.

Hide the real paths when rebuilding from VFS by setting up the crash
reproducer to use 'use-external-names' = false. This way we avoid
module redifinition errors and consistently use the same paths against
all modules.

With this change on Darwin we are able to simulate a crash for a simple
application using "Foundation/Foundation.h" (which relies on a bunch of
different frameworks and headers) and successfully rebuild all the
modules by relying solely at the VFS overlay.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266234 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
lib/Frontend/ModuleDependencyCollector.cpp
test/Modules/crash-vfs-path-symlink-component.m
test/Modules/crash-vfs-path-traversal.m
test/Modules/crash-vfs-relative-overlay.m