[clang-tools-extra] r369676 - [Clangd] Tweaktesting replace toString with consumeError
Shaurya Gupta via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 10:36:32 PDT 2019
Author: sureyeaah
Date: Thu Aug 22 10:36:31 2019
New Revision: 369676
URL: http://llvm.org/viewvc/llvm-project?rev=369676&view=rev
Log:
[Clangd] Tweaktesting replace toString with consumeError
Modified:
clang-tools-extra/trunk/clangd/unittests/TweakTesting.cpp
Modified: clang-tools-extra/trunk/clangd/unittests/TweakTesting.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/unittests/TweakTesting.cpp?rev=369676&r1=369675&r2=369676&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/unittests/TweakTesting.cpp (original)
+++ clang-tools-extra/trunk/clangd/unittests/TweakTesting.cpp Thu Aug 22 10:36:31 2019
@@ -90,7 +90,7 @@ std::string TweakTest::apply(llvm::Strin
auto T = prepareTweak(TweakID, S);
if (!T) {
- llvm::toString(T.takeError());
+ llvm::consumeError(T.takeError());
return "unavailable";
}
llvm::Expected<Tweak::Effect> Result = (*T)->apply(S);
More information about the cfe-commits
mailing list