[clang] [clang][scan-deps] Add option to disable caching stat failures (PR #144000)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 17:20:18 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,h -- clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h clang/include/clang/Tooling/DependencyScanning/DependencyScanningService.h clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp clang/lib/Tooling/DependencyScanning/DependencyScanningService.cpp clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp clang/tools/clang-scan-deps/ClangScanDeps.cpp clang/unittests/Tooling/DependencyScanning/DependencyScannerTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/unittests/Tooling/DependencyScanning/DependencyScannerTest.cpp b/clang/unittests/Tooling/DependencyScanning/DependencyScannerTest.cpp
index 3535f1a04..d194b2877 100644
--- a/clang/unittests/Tooling/DependencyScanning/DependencyScannerTest.cpp
+++ b/clang/unittests/Tooling/DependencyScanning/DependencyScannerTest.cpp
@@ -393,8 +393,10 @@ TEST(DependencyScanner, NoNegativeCache) {
auto Sept = llvm::sys::path::get_separator();
std::string HeaderPath =
std::string(llvm::formatv("{0}root{0}header.h", Sept));
- std::string Test0Path = std::string(llvm::formatv("{0}root{0}test0.cpp", Sept));
- std::string Test1Path = std::string(llvm::formatv("{0}root{0}test1.cpp", Sept));
+ std::string Test0Path =
+ std::string(llvm::formatv("{0}root{0}test0.cpp", Sept));
+ std::string Test1Path =
+ std::string(llvm::formatv("{0}root{0}test1.cpp", Sept));
VFS->addFile(Test0Path, 0,
llvm::MemoryBuffer::getMemBuffer(
``````````
</details>
https://github.com/llvm/llvm-project/pull/144000
More information about the cfe-commits
mailing list