ParmVarDecl is created with translation unit as the parent DeclContext
and later moved to the correct DeclContext. ASTImporterLookupTable
should be updated at this move.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks, looks good to me, with a nit in the tests.
clang/unittests/AST/ASTImporterTest.cpp | ||
---|---|---|
6233 | Instead of .empty(), perhaps we should examine if the found entry is indeed the imported ParmVarDecl. |
Comment Actions
Okay, that looks good, but I just realized we should not have "bare" assertions. Could you please add some explanatory textual description for the new assertions?
clang/lib/AST/ASTImporterLookupTable.cpp | ||
---|---|---|
121 | Could you please add some explanatory textual description for the new assertions? |
Could you please add some explanatory textual description for the new assertions?