https://github.com/ArcsinX commented:
I am not sure that just adding `Decl::Export` into the switch is right, because it is a transparent context and declarations inside it semantically belong to the enclosing non-transparent context. So, maybe we should unwind till the real semantic parent like [here](https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clangd/refactor/Rename.cpp#L436) (btw, I found API to do this [without a loop](https://github.com/llvm/llvm-project/blob/main/clang/include/clang/AST/DeclBase.h#L470)) https://github.com/llvm/llvm-project/pull/234755 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
