[clang] [clang] Extract `CompilerInstance` creation out of `compileModuleImpl()` (PR #134887)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 8 10:27:41 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 HEAD~1 HEAD --extensions cpp -- clang/lib/Frontend/CompilerInstance.cpp
``````````
</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 62fff9e23..0134052b6 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1367,7 +1367,7 @@ static bool compileModuleImpl(CompilerInstance &ImportingInstance,
ImportingInstance.getDiagnostics().Report(ImportLoc,
diag::remark_module_build)
- << ModuleName << ModuleFileName;
+ << ModuleName << ModuleFileName;
// Execute the action to actually build the module in-place. Use a separate
// thread so that we get a stack large enough.
@@ -1380,7 +1380,7 @@ static bool compileModuleImpl(CompilerInstance &ImportingInstance,
ImportingInstance.getDiagnostics().Report(ImportLoc,
diag::remark_module_build_done)
- << ModuleName;
+ << ModuleName;
// Propagate the statistics to the parent FileManager.
if (ImportingInstance.getFileManagerPtr() != Instance.getFileManagerPtr())
``````````
</details>
https://github.com/llvm/llvm-project/pull/134887
More information about the cfe-commits
mailing list