[clang] [llvm] [Support] Return `LockFileManager` errors right away (PR #130627)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 10 09:04: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 c40f0fe4348bb9304b95bd317665bf1cb2bdcc85 88b5bbd1303480dc40db3ea76d0f831a69ff1957 --extensions h,cpp -- clang/lib/Frontend/CompilerInstance.cpp clang/lib/Serialization/GlobalModuleIndex.cpp llvm/include/llvm/Support/LockFileManager.h llvm/lib/Support/LockFileManager.cpp llvm/lib/Target/AMDGPU/AMDGPUSplitModule.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 fe351e6b41..db72575676 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1488,7 +1488,7 @@ static bool compileModuleAndReadASTBehindLock(
// Clear out any potential leftover.
Lock.unsafeRemoveLockFile();
return compileModuleAndReadASTImpl(ImportingInstance, ImportLoc,
- ModuleNameLoc, Module, ModuleFileName);
+ ModuleNameLoc, Module, ModuleFileName);
}
if (Owned) {
// We're responsible for building the module ourselves.
``````````
</details>
https://github.com/llvm/llvm-project/pull/130627
More information about the cfe-commits
mailing list