[llvm] Frontend: Adopt llvm::vfs::OutputBackend in CompilerInstance (PR #113364)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 10:45:54 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- clang/include/clang/Frontend/CompilerInstance.h clang/lib/Frontend/CompilerInstance.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 54d20fe41..8d1e9d6cd 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -844,8 +844,7 @@ void CompilerInstance::setOutputManager(
 
 void CompilerInstance::createOutputManager() {
   assert(!OutputMgr && "Already has an output manager");
-  OutputMgr =
-      llvm::makeIntrusiveRefCnt<llvm::vfs::OnDiskOutputBackend>();
+  OutputMgr = llvm::makeIntrusiveRefCnt<llvm::vfs::OnDiskOutputBackend>();
 }
 
 llvm::vfs::OutputBackend &CompilerInstance::getOutputManager() {

``````````

</details>


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


More information about the llvm-commits mailing list