[clang] [NFC] [C++20] [Modules] [P1689] [Scanner] Don't use thread pool in P1689 per file mode (PR #84285)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 7 18:50:24 PST 2024
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 da4957be2365831c94eab0b52612367c29f1d299 e875b07ad16c7c66d8d9dd70efca30276981f639 -- clang/tools/clang-scan-deps/ClangScanDeps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/tools/clang-scan-deps/ClangScanDeps.cpp b/clang/tools/clang-scan-deps/ClangScanDeps.cpp
index 2fd85c8e65..832be0df64 100644
--- a/clang/tools/clang-scan-deps/ClangScanDeps.cpp
+++ b/clang/tools/clang-scan-deps/ClangScanDeps.cpp
@@ -910,8 +910,7 @@ int clang_scan_deps_main(int argc, char **argv, const llvm::ToolContext &) {
// Run the tool on it.
if (Format == ScanningOutputFormat::Make) {
- auto MaybeFile =
- WorkerTool.getDependencyFile(Input->CommandLine, CWD);
+ auto MaybeFile = WorkerTool.getDependencyFile(Input->CommandLine, CWD);
if (handleMakeDependencyToolResult(Filename, MaybeFile, DependencyOS,
Errs))
HadErrors = true;
@@ -996,9 +995,8 @@ int clang_scan_deps_main(int argc, char **argv, const llvm::ToolContext &) {
}
for (unsigned I = 0; I < Pool.getMaxConcurrency(); ++I) {
- Pool.async([ScanningTask, &WorkerTools, I]() {
- ScanningTask(WorkerTools[I]);
- });
+ Pool.async(
+ [ScanningTask, &WorkerTools, I]() { ScanningTask(WorkerTools[I]); });
}
Pool.wait();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/84285
More information about the cfe-commits
mailing list