[PATCH] D109608: [clang][ASTImporter] Generic attribute import handling (first step).
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 20 02:58:34 PDT 2021
steakhal accepted this revision.
steakhal added a comment.
This revision is now accepted and ready to land.
I think I'm convinced.
Thanks.
================
Comment at: clang/unittests/AST/ASTImporterTest.cpp:6414
+ // Verify that dump does not crash because invalid data.
+ ToD->dump();
+
----------------
balazske wrote:
> steakhal wrote:
> > Should we dump to the `stderr`?
> It would be good to have a "sink stream" that just discards the input. In this case it is not needed to allocate memory buffer, the text output of the dump is not used. `ASTImporterTest` has already many unneeded output.
`llvm::nulls()` returns such a stream.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109608/new/
https://reviews.llvm.org/D109608
More information about the cfe-commits
mailing list