[PATCH] D109608: [clang][ASTImporter] Generic attribute import handling (first step).
Gabor Marton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 13 11:44:14 PDT 2021
martong added inline comments.
================
Comment at: clang/lib/AST/ASTImporter.cpp:8448
+
+class AttrImporter {
+ Error Err = Error::success();
----------------
shafik wrote:
> @martong the `ASTImporter` file is quite large as it is and I think it makes sense to have `AttrImporter` but perhaps it would help long-term maintainability to split it out into its own source file? What do you think?
Yes, good idea, I agree. Although, I wouldn't insist to do that in this patch, a following patch is okay for me.
After all, it would make sense to split ASTNodeImporter into it's own implementation file. Or, even better, we could put Visit*Type, Visit*Decl and Visit*Stmt into separate files. Other than that, the ASTImporterTest.cpp test file compiles painfully slow, so that is among my TODOs for a while to split that up as well.
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