[all-commits] [llvm/llvm-project] d45c04: [llvm][ADT] Overload output stream operator `<<` f...
weiyi via All-commits
all-commits at lists.llvm.org
Wed Aug 31 10:39:20 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d45c04da7cc5fd093f611c311d3b34b0ef408165
https://github.com/llvm/llvm-project/commit/d45c04da7cc5fd093f611c311d3b34b0ef408165
Author: Wei Yi Tee <wyt at google.com>
Date: 2022-08-31 (Wed, 31 Aug 2022)
Changed paths:
A llvm/include/llvm/Testing/ADT/StringMap.h
A llvm/include/llvm/Testing/ADT/StringMapEntry.h
A llvm/unittests/Testing/ADT/CMakeLists.txt
A llvm/unittests/Testing/ADT/StringMapTest.cpp
M llvm/unittests/Testing/CMakeLists.txt
M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
M utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
Log Message:
-----------
[llvm][ADT] Overload output stream operator `<<` for `StringMapEntry` and `StringMap`.
Printing support enables the production of more useful error messages in unit testing e.g. when using matchers such as `UnorderedElementsAre()` to inspect the contents of a `StringMap`.
Reviewed By: gribozavr2, sgatev, ymandel
Differential Revision: https://reviews.llvm.org/D132747
More information about the All-commits
mailing list