================
@@ -161,8 +161,9 @@ class FrontendAction {
 
   std::unique_ptr<ASTUnit> takeCurrentASTUnit();
 
+  void setCurrentInput(const FrontendInputFile &CurrentInput);
   void setCurrentInput(const FrontendInputFile &CurrentInput,
-                       std::unique_ptr<ASTUnit> AST = nullptr);
+                       std::unique_ptr<ASTUnit> AST);
----------------
rdong8 wrote:

putting `= nullptr` triggered the C++26's constexpr `unique_ptr` dtor to be 
checked, but `ASTUnit` is not a complete type here since it's forward declared.

https://godbolt.org/z/oWPnbdova

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

Reply via email to