diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2018-08-24 09:03:29 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2018-08-24 09:03:29 +0000 |
commit | dbdd8e5238d5ba7f23c8d1a525bc640628bc9a97 (patch) | |
tree | c2c8dab9ae2041710b6ad647369dd5f4c76b0165 /clang/unittests/Tooling/ExecutionTest.cpp | |
parent | 411e710074db74ce3430543e1399a45813952f85 (diff) | |
download | bcm5719-llvm-dbdd8e5238d5ba7f23c8d1a525bc640628bc9a97.tar.gz bcm5719-llvm-dbdd8e5238d5ba7f23c8d1a525bc640628bc9a97.zip |
[Tooling] Add a isSingleProcess() helper to ToolExecutor
Summary:
Used in clangd's symbol builder to optimize for the common
shared-memory executor case.
Reviewers: ioeric
Reviewed By: ioeric
Subscribers: kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D51164
llvm-svn: 340599
Diffstat (limited to 'clang/unittests/Tooling/ExecutionTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/ExecutionTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/ExecutionTest.cpp b/clang/unittests/Tooling/ExecutionTest.cpp index 26db8c6d0ea..e5dc98d228d 100644 --- a/clang/unittests/Tooling/ExecutionTest.cpp +++ b/clang/unittests/Tooling/ExecutionTest.cpp @@ -96,6 +96,8 @@ public: StringRef getExecutorName() const override { return ExecutorName; } + bool isSingleProcess() const override { return true; } + llvm::Error execute(llvm::ArrayRef<std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>) override { |