llvm-project/clang/test
Michael J. Spencer 7e48b406ef [Driver] Fix -working-directory issues
Currently the `-working-directory` option does not actually impact the working
directory for all of the clang driver, it only impacts how files are looked up
to make sure they exist.  This means that that clang passes the wrong paths
to -fdebug-compilation-dir and -coverage-notes-file.

This patch fixes that by changing all the places in the driver where we convert
to absolute paths to use the VFS, and then calling setCurrentWorkingDirectory on
the VFS.  This also changes the default VFS for `Driver` to use a virtualized
working directory, instead of changing the process's working directory.

Differential Revision: https://reviews.llvm.org/D62271

llvm-svn: 361885
2019-05-28 22:21:47 +00:00
..
ARCMT
AST [OpenMP] Set pragma start loc to `#pragma` loc 2019-05-28 19:27:19 +00:00
ASTMerge Fix ASTMerge/namespace/test.cpp after r360701 2019-05-14 20:01:03 +00:00
Analysis Revert [test] Fix plugin tests 2019-05-28 06:38:16 +00:00
CXX [c++20] P1330R0: permit simple-assignments that change the active member 2019-05-21 23:15:20 +00:00
CodeCompletion [CodeComplete] Consistently break after '{' in multi-line patterns 2019-05-28 14:33:16 +00:00
CodeGen [clang] Handle lrint/llrint builtins 2019-05-28 21:16:04 +00:00
CodeGenCUDA [CUDA][HIP] Emit dependent libs for host only 2019-05-28 21:18:59 +00:00
CodeGenCXX Re-commit r357452 (take 2): "SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259)" 2019-05-28 12:19:38 +00:00
CodeGenCoroutines
CodeGenObjC Re-commit r357452 (take 2): "SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259)" 2019-05-28 12:19:38 +00:00
CodeGenObjCXX Specify target triple to fix the tests I committed in r360359 that are 2019-05-09 18:32:16 +00:00
CodeGenOpenCL [OpenCL] Fix file-scope const sampler variable for 2.0 2019-05-27 11:19:07 +00:00
CodeGenOpenCLCXX [OpenCL] Make global ctor init function a kernel 2019-05-09 13:55:44 +00:00
Coverage
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver [Driver] Fix -working-directory issues 2019-05-28 22:21:47 +00:00
FixIt [c++20] P0780R2: Support pack-expansion of init-captures. 2019-05-21 20:10:50 +00:00
Format
Frontend Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows. 2019-05-24 04:46:22 +00:00
Headers [OpenMP][Bugfix] Move double and float versions of abs under c++ macro 2019-05-15 20:28:23 +00:00
Import [ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition 2019-04-26 18:51:28 +00:00
Index [libclang] visit c++14 lambda capture init expressions 2019-05-21 09:21:35 +00:00
Integration
Layout
Lexer Factor out repeated code parsing and concatenating header-names from 2019-03-19 01:51:19 +00:00
Misc Fix isInSystemMacro in presence of macro and pasted token 2019-05-16 12:40:00 +00:00
Modules Fix r361428 for Windows buildbots/mangling 2019-05-22 21:58:17 +00:00
OpenMP [OpenMP] Set pragma start loc to `#pragma` loc 2019-05-28 19:27:19 +00:00
PCH [OpenMP] Set pragma start loc to `#pragma` loc 2019-05-28 19:27:19 +00:00
Parser Part of P1091R3: permit structured bindings to be declared 'static' and 2019-05-22 19:52:55 +00:00
Preprocessor [Preprocessor] Fix crash emitting note with framework location for "file not found" error. 2019-05-27 19:15:30 +00:00
Profile [PGO] Fix buildbot failure in 359215 2019-04-25 21:16:41 +00:00
Refactor
Rewriter
Sema Implement __builtin_LINE() et. al. to support source location capture. 2019-05-16 21:04:15 +00:00
SemaCUDA Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
SemaCXX Permit static local structured bindings to be named from arbitrary scopes inside their declaring scope. 2019-05-25 01:04:17 +00:00
SemaObjC Remove unicode character from test 2019-05-21 20:12:00 +00:00
SemaObjCXX Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration" 2019-05-07 03:20:17 +00:00
SemaOpenCL [OpenCL] Fix file-scope const sampler variable for 2.0 2019-05-27 11:19:07 +00:00
SemaOpenCLCXX [OpenCL] Prevent mangling kernel functions. 2019-05-07 14:22:34 +00:00
SemaTemplate [c++20] P0780R2: Support pack-expansion of init-captures. 2019-05-21 20:10:50 +00:00
TableGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Templight
Tooling Remove a bogus sed option in test. 2019-04-08 16:34:38 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS
clang-rename
.clang-format
CMakeLists.txt Revert [test] Fix plugin tests 2019-05-28 06:38:16 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [Analysis] Only run plugins tests if plugins are actually enabled 2019-05-17 06:07:37 +00:00
lit.site.cfg.py.in [Analysis] Only run plugins tests if plugins are actually enabled 2019-05-17 06:07:37 +00:00
make_test_dirs.pl