================
@@ -54,6 +54,7 @@
 namespace clang {
 
 class ASTContext;
+class DeclStateReverter;
----------------
SahilPatidar wrote:

Do you mean VisitX will decide which operation to execute and dispatch it based 
on the condition? If you mean putting everything inside VisitX, I’m not clear 
on how that will work.

If VisitX is expected to conditionally select between commit, restore ... I was 
thinking that this operation dispatch should live in `PTUMutationActions`. It 
would select the operation based on the current action and delegate the 
declaration-specific work to `ASTDeclUnmerger`.

https://github.com/llvm/llvm-project/pull/223305
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to