teak-llvm/clang/lib/Tooling
Ilya Biryukov 2dbbd910dd [Tooling] Do not restore working dir in ClangTool
Summary:
Resolve all relative paths before running the tool instead.

This fixes the usage of ClangTool in AllTUsExecutor. The executor will
try running multiple ClangTool instances in parallel with compile
commands that usually have the same working directory.

Changing working directory is a global operation, so we end up
changing working directory in the middle of running other actions,
which leads to spurious compile errors.

Reviewers: ioeric, sammccall

Reviewed By: ioeric

Subscribers: cfe-commits

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

llvm-svn: 340937
2018-08-29 16:35:31 +00:00
..
ASTDiff Fix typos in clang 2018-04-06 15:14:32 +00:00
Core Fully qualify the renamed symbol if the shortened name is ambiguous. 2018-08-03 09:16:07 +00:00
Inclusions Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
Refactoring Port getLocEnd -> getEndLoc 2018-08-09 21:09:38 +00:00
AllTUsExecution.cpp [Tooling] Optimize memory usage in InMemoryToolResults. 2018-04-11 08:13:07 +00:00
ArgumentsAdjusters.cpp [Tooling] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-14 21:05:51 +00:00
CMakeLists.txt Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
CommonOptionsParser.cpp [Tooling] A new framework for executing clang frontend actions. 2017-10-26 10:38:14 +00:00
CompilationDatabase.cpp [Tooling] Allow -flto flags and filter out -Wa, flags 2018-08-22 17:13:40 +00:00
Execution.cpp [Tooling] Use UniqueStringSaver. NFC 2018-07-23 11:25:25 +00:00
FileMatchTrie.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FixIt.cpp [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
InterpolatingCompilationDatabase.cpp Parse compile commands lazily in InterpolatingCompilationDatabase 2018-08-28 16:15:56 +00:00
JSONCompilationDatabase.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Refactoring.cpp Apply clang-tidy's performance-unnecessary-value-param to parts of clang. 2017-03-21 21:35:04 +00:00
RefactoringCallbacks.cpp [tooling] RefactoringCallbacks code cleanup 2017-05-12 00:16:56 +00:00
StandaloneExecution.cpp [Tooling] Make standalone executor support user-provided vfs. 2018-07-12 18:32:11 +00:00
Tooling.cpp [Tooling] Do not restore working dir in ClangTool 2018-08-29 16:35:31 +00:00