[clang-tools-extra] r328354 - Fix misuse of llvm::YAML in clangd test.

Jordan Rose via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 23 12:16:07 PDT 2018


Author: jrose
Date: Fri Mar 23 12:16:07 2018
New Revision: 328354

URL: http://llvm.org/viewvc/llvm-project?rev=328354&view=rev
Log:
Fix misuse of llvm::YAML in clangd test.

Caught by LLVM r328345!

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

Modified: clang-tools-extra/trunk/unittests/clangd/TraceTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/TraceTests.cpp?rev=328354&r1=328353&r2=328354&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/TraceTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/TraceTests.cpp Fri Mar 23 12:16:07 2018
@@ -41,7 +41,7 @@ bool VerifyObject(yaml::Node &N, std::ma
   }
   bool Match = true;
   SmallString<32> Tmp;
-  for (auto Prop : *M) {
+  for (auto &Prop : *M) {
     auto *K = dyn_cast_or_null<yaml::ScalarNode>(Prop.getKey());
     if (!K)
       continue;




More information about the cfe-commits mailing list