[llvm] Remove unused <algorithm> inclusion (PR #166942)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 7 06:38:20 PST 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 origin/main HEAD --extensions h,cpp,inc -- llvm/benchmarks/FormatVariadicBM.cpp llvm/include/llvm/Frontend/OpenMP/ClauseT.h llvm/include/llvm/IR/DiagnosticInfo.h llvm/include/llvm/IR/Dominators.h llvm/include/llvm/IR/ProfileSummary.h llvm/include/llvm/MC/MCAssembler.h llvm/include/llvm/Support/TypeSize.h llvm/include/llvm/Support/UnicodeCharRanges.h llvm/include/llvm/TableGen/DirectiveEmitter.h llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/InstrMaps.h llvm/include/llvm/XRay/FDRRecordConsumer.h llvm/lib/CodeGen/RegAllocGreedy.h llvm/lib/Support/Unix/Unix.h llvm/lib/Support/Windows/Signals.inc llvm/lib/Target/CSKY/CSKYConstantIslandPass.cpp llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h llvm/lib/Target/X86/X86FlagsCopyLowering.cpp llvm/tools/llvm-stress/llvm-stress.cpp llvm/unittests/ADT/CombinationGeneratorTest.cpp llvm/unittests/ADT/DAGDeltaAlgorithmTest.cpp llvm/unittests/ADT/DeltaAlgorithmTest.cpp llvm/unittests/ADT/SequenceTest.cpp llvm/unittests/Analysis/DomTreeUpdaterTest.cpp llvm/unittests/TextAPI/TextStubHelpers.h llvm/utils/KillTheDoctor/KillTheDoctor.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/llvm/benchmarks/FormatVariadicBM.cpp b/llvm/benchmarks/FormatVariadicBM.cpp
index 7c49f9658..55b286d8a 100644
--- a/llvm/benchmarks/FormatVariadicBM.cpp
+++ b/llvm/benchmarks/FormatVariadicBM.cpp
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "benchmark/benchmark.h"
-#include "llvm/Support/FormatVariadic.h"
+#include "benchmark/benchmark.h"
+#include "llvm/Support/FormatVariadic.h"
 #include <string>
 #include <vector>
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/166942


More information about the llvm-commits mailing list