[PATCH] D21601: Make tooling::applyAllReplacements return llvm::Expected<string> instead of empty string to indicate potential error.

Manuel Klimek via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 24 08:42:19 PDT 2016


klimek added inline comments.

================
Comment at: unittests/Format/CleanupTest.cpp:258
@@ +257,3 @@
+    auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style);
+    EXPECT_TRUE((bool)CleanReplaces)
+        << llvm::toString(CleanReplaces.takeError()) << "\n";
----------------
Hm. Can we make it work with EXPECT_TRUE somehow?


http://reviews.llvm.org/D21601





More information about the cfe-commits mailing list