At AST import of function delcarations import the flags for defaulted
and deleted.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 36645 Build 36644: arc lint + arc unit
Event Timeline
LGTM, but I don't exactly see how the first test is related. Could you please explain?
clang/unittests/AST/ASTImporterTest.cpp | ||
---|---|---|
5239 | I don't exactly see how this test is related. |
clang/unittests/AST/ASTImporterTest.cpp | ||
---|---|---|
5239 | I do not remember exactly why this test was added but probably the problem is structural equivalence related: The flags are not imported correctly for the first time, and at the second import structural match fails and a new Decl is created instead of returning the existing one. This test fails if the change is not applied. |
clang/unittests/AST/ASTImporterTest.cpp | ||
---|---|---|
5239 | We may use isExplicitlyDefaulted and isDeletedAsWritten and isVirtualAsWritten but in another patch. | |
5246 | The delete x3 is needed to get a destructor for X generated. But the test is about testing the implicit functions and I think it is better to have more of them. This code is there to have these functions generated so I do not like remove of it. |
clang/unittests/AST/ASTImporterTest.cpp | ||
---|---|---|
5239 | It can be good to add check for isExplicitlyDefaulted because it is a separate bit and not checked yet. Probably in another patch that has a test for this too. |
Hi Balazs,
The change looks good. I think it can be committed after an unrelated part is removed.
clang/unittests/AST/ASTImporterTest.cpp | ||
---|---|---|
5377 | This is a separate functional change and I prefer to move it into a separate patch. |
clang/unittests/AST/ASTImporterTest.cpp | ||
---|---|---|
5377 | This change came in at a rebase to newest master, I wanted to have this instantiation at the end of the list but this showed up as part of the patch so it was moved now back to the start of the list (of all test instantiations). |
I don't exactly see how this test is related.