Author: ibiryukov Date: Thu Jul 26 09:13:52 2018 New Revision: 338037 URL: http://llvm.org/viewvc/llvm-project?rev=338037&view=rev Log: [clangd] Use 'const Twine&' instead of 'Twine'. NFC
To fix clang-tidy warning Modified: clang-tools-extra/trunk/clangd/Threading.cpp clang-tools-extra/trunk/clangd/Threading.h Modified: clang-tools-extra/trunk/clangd/Threading.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Threading.cpp?rev=338037&r1=338036&r2=338037&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/Threading.cpp (original) +++ clang-tools-extra/trunk/clangd/Threading.cpp Thu Jul 26 09:13:52 2018 @@ -50,7 +50,7 @@ bool AsyncTaskRunner::wait(Deadline D) c [&] { return InFlightTasks == 0; }); } -void AsyncTaskRunner::runAsync(llvm::Twine Name, +void AsyncTaskRunner::runAsync(const llvm::Twine &Name, llvm::unique_function<void()> Action) { { std::lock_guard<std::mutex> Lock(Mutex); Modified: clang-tools-extra/trunk/clangd/Threading.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Threading.h?rev=338037&r1=338036&r2=338037&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/Threading.h (original) +++ clang-tools-extra/trunk/clangd/Threading.h Thu Jul 26 09:13:52 2018 @@ -108,7 +108,7 @@ public: void wait() const { (void)wait(Deadline::infinity()); } LLVM_NODISCARD bool wait(Deadline D) const; // The name is used for tracing and debugging (e.g. to name a spawned thread). - void runAsync(llvm::Twine Name, llvm::unique_function<void()> Action); + void runAsync(const llvm::Twine &Name, llvm::unique_function<void()> Action); private: mutable std::mutex Mutex; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits