[clang-tools-extra] 5bc0c8f - [clangd] Avoid StringRef entirely with gmock

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 07:50:45 PDT 2020


Author: Sam McCall
Date: 2020-05-19T16:50:35+02:00
New Revision: 5bc0c8f009261425a25c1bb109f81b454c928bf5

URL: https://github.com/llvm/llvm-project/commit/5bc0c8f009261425a25c1bb109f81b454c928bf5
DIFF: https://github.com/llvm/llvm-project/commit/5bc0c8f009261425a25c1bb109f81b454c928bf5.diff

LOG: [clangd] Avoid StringRef entirely with gmock

Added: 
    

Modified: 
    clang-tools-extra/clangd/unittests/support/TraceTests.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/support/TraceTests.cpp b/clang-tools-extra/clangd/unittests/support/TraceTests.cpp
index f4ff8782d78e..116d9fcee02c 100644
--- a/clang-tools-extra/clangd/unittests/support/TraceTests.cpp
+++ b/clang-tools-extra/clangd/unittests/support/TraceTests.cpp
@@ -150,7 +150,7 @@ class CSVMetricsTracerTest : public ::testing::Test {
   trace::Metric Dist = {"dist", trace::Metric::Distribution, "lbl"};
   trace::Metric Counter = {"cnt", trace::Metric::Counter};
 
-  std::vector<llvm::StringRef> outputLines() {
+  std::vector<std::string> outputLines() {
     // Deliberately don't flush output stream, the tracer should do that.
     // This is important when clangd crashes.
     llvm::SmallVector<llvm::StringRef, 4> Lines;


        


More information about the cfe-commits mailing list