Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/ASTImporter.cpp | ||
---|---|---|
1493 | I know it's somewhat ugly, but it gets the job done. |
Nice work, thanks!
clang/lib/AST/ASTImporter.cpp | ||
---|---|---|
1493 | It is unfortunate that we can't we import the Type ptr directly and we must create a qualified type with meaningless qualifiers. However, we use the very same methods for VisitSubstTemplateTypeParmType so, this is okay for now. Perhaps, in a later patch it would make sense to create an import overload that returns and Exptected<Type*> and takes Type* as a param. That could simplify this line and the cast below. | |
clang/unittests/AST/ASTImporterTest.cpp | ||
4699 | Good test! |
LGTM, please run the check-lldb before landing this since lldb can be sensitive to ASTImporter changes and it is nice to catch regressions there before landing.
I know it's somewhat ugly, but it gets the job done.
There are other instances like this already.