[clang] [llvm] [mlir] [LLVM][MLIR] Treewide C++26/2d fixes (PR #223284)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 00:28:21 PDT 2026


================
@@ -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:

I added an overload that omits the extra `AST` arg entirely and is defined to call the 3-ary version out of line with a null `AST`.

https://github.com/llvm/llvm-project/pull/223284


More information about the llvm-commits mailing list