* Address a FIXME by warning the user that both -run-synchronously and -j X are
passed.
* Fix a comment to suppress clang-tidy warning by passing the correct argument
name.
Reviewers: ioeric
Subscribers: ilya-biryukov, jkorous-apple, cfe-commits
Differential Revision: https://reviews.llvm.org/D43671
llvm-svn: 326051
namespace clang {
namespace clangd {
-Context Context::empty() { return Context(/*Data=*/nullptr); }
+Context Context::empty() { return Context(/*DataPtr=*/nullptr); }
Context::Context(std::shared_ptr<const Data> DataPtr)
: DataPtr(std::move(DataPtr)) {}
return 1;
}
- // Ignore -j option if -run-synchonously is used.
- // FIXME: a warning should be shown here.
- if (RunSynchronously)
+ if (RunSynchronously) {
+ if (WorkerThreadsCount.getNumOccurrences())
+ llvm::errs() << "Ignoring -j because -run-synchronously is set.\n";
WorkerThreadsCount = 0;
+ }
// Validate command line arguments.
llvm::Optional<llvm::raw_fd_ostream> InputMirrorStream;