Author: Ilya Biryukov Date: 2019-12-05T16:25:35+01:00 New Revision: 242649c17c5b11bcc788b6f69bd3eed44cfd3d79
URL: https://github.com/llvm/llvm-project/commit/242649c17c5b11bcc788b6f69bd3eed44cfd3d79 DIFF: https://github.com/llvm/llvm-project/commit/242649c17c5b11bcc788b6f69bd3eed44cfd3d79.diff LOG: [Syntax] Show input code on tests failures. NFC Added: Modified: clang/unittests/Tooling/Syntax/TreeTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/Tooling/Syntax/TreeTest.cpp b/clang/unittests/Tooling/Syntax/TreeTest.cpp index 3d30a074ddd8..98b895a5dd67 100644 --- a/clang/unittests/Tooling/Syntax/TreeTest.cpp +++ b/clang/unittests/Tooling/Syntax/TreeTest.cpp @@ -515,6 +515,8 @@ void foo() { )txt"}}; for (const auto &T : Cases) { + SCOPED_TRACE(T.first); + auto *Root = buildTree(T.first); std::string Expected = llvm::StringRef(T.second).trim().str(); std::string Actual = llvm::StringRef(Root->dump(*Arena)).trim(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits