[PATCH] D155788: [clang][dataflow] Add an `operator<<` for `OptionalTypeIdentifier`.
Martin Böhme via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 20 05:53:09 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG477ee05f83c6: [clang][dataflow] Add an `operator<<` for `OptionalTypeIdentifier`. (authored by mboehme).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155788/new/
https://reviews.llvm.org/D155788
Files:
clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
Index: clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
===================================================================
--- clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
+++ clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp
@@ -1267,6 +1267,12 @@
std::string TypeName;
};
+static raw_ostream &operator<<(raw_ostream &OS,
+ const OptionalTypeIdentifier &TypeId) {
+ OS << TypeId.NamespaceName << "::" << TypeId.TypeName;
+ return OS;
+}
+
class UncheckedOptionalAccessTest
: public ::testing::TestWithParam<OptionalTypeIdentifier> {
protected:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155788.542468.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230720/d5b97448/attachment.bin>
More information about the cfe-commits
mailing list