[PATCH] D155661: [clang][ASTImporter] Fix friend class template import within dependent context

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 07:11:51 PDT 2023


balazske accepted this revision.
balazske added a comment.
This revision is now accepted and ready to land.

The fix looks OK, but the test could be improved and cleaned up (for example `FromClass` is the same as `FromD` in the test, and DeclContext is not checked, can be done like in the test `UndeclaredFriendClassShouldNotBeVisible` but the AST is different). Probably there are other similar cases, and there is a related problem shown in D156693 <https://reviews.llvm.org/D156693> (the fix in that patch is not correct, the solution here is not good for that case, it is possible that the same code as here needs to be changed again or a better fix is found). I am accepting this code but probably will create a new patch to improve and add tests for similar cases (if not done before by somebody else).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155661/new/

https://reviews.llvm.org/D155661



More information about the cfe-commits mailing list