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 cpp,h --
clang/include/clang/DependencyScanning/DependencyScanningFilesystem.h
clang/lib/DependencyScanning/DependencyScanningFilesystem.cpp
clang/unittests/DependencyScanning/DependencyScanningFilesystemTest.cpp
llvm/include/llvm/Support/VirtualFileSystem.h
llvm/lib/Support/VirtualFileSystem.cpp
llvm/unittests/Support/VirtualFileSystemTest.cpp --diff_from_common_commit
``````````
: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/DependencyScanning/DependencyScanningFilesystem.cpp
b/clang/lib/DependencyScanning/DependencyScanningFilesystem.cpp
index 415e7f740..7f864a9aa 100644
--- a/clang/lib/DependencyScanning/DependencyScanningFilesystem.cpp
+++ b/clang/lib/DependencyScanning/DependencyScanningFilesystem.cpp
@@ -358,9 +358,8 @@
DependencyScanningWorkerFilesystem::resolveFilenameThroughSharedCache(
getUnderlyingFS().status(OriginalFilename);
if (!Stat)
return insertLocalEntryForFilename(
- FilenameForLookup,
- getOrEmplaceSharedEntryForFilename(FilenameForLookup,
- Stat.getError()));
+ FilenameForLookup, getOrEmplaceSharedEntryForFilename(
+ FilenameForLookup, Stat.getError()));
// Acquire a per-UID producer slot to dedup concurrent readFile()
// calls across workers that arrived under different filenames
``````````
</details>
https://github.com/llvm/llvm-project/pull/199680
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits