[llvm] Remove unused <vector> inclusion (PR #166997)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 7 11:11:52 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 -- llvm/benchmarks/FormatVariadicBM.cpp llvm/include/llvm/AsmParser/SlotMapping.h llvm/include/llvm/CGData/OutlinedHashTree.h llvm/include/llvm/ExecutionEngine/Orc/EHFrameRegistrationPlugin.h llvm/include/llvm/ExecutionEngine/Orc/SectCreate.h llvm/include/llvm/MC/MCAssembler.h llvm/include/llvm/ObjectYAML/GOFFYAML.h llvm/include/llvm/PassInfo.h llvm/include/llvm/Support/Mustache.h llvm/include/llvm/TargetParser/XtensaTargetParser.h llvm/lib/CodeGen/DFAPacketizer.cpp llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp llvm/lib/ObjCopy/DXContainer/DXContainerObject.h llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.h llvm/lib/Target/ARC/ARCMachineFunctionInfo.h llvm/lib/Target/Hexagon/HexagonQFPOptimizer.cpp llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp llvm/lib/Target/NVPTX/NVPTXUtilities.h llvm/tools/llc/NewPMDriver.h llvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp llvm/tools/llvm-ifs/ErrorCollector.cpp llvm/tools/llvm-reduce/TestRunner.h llvm/unittests/ADT/ConcurrentHashtableTest.cpp llvm/unittests/DebugInfo/LogicalView/StringPoolTest.cpp llvm/unittests/DebugInfo/PDB/NativeSessionTest.cpp llvm/unittests/ExecutionEngine/Orc/MapperJITLinkMemoryManagerTest.cpp llvm/unittests/ExecutionEngine/Orc/SimpleExecutorMemoryManagerTest.cpp llvm/unittests/Support/DynamicLibrary/PipSqueak.cpp llvm/unittests/Support/DynamicLibrary/PipSqueak.h llvm/unittests/TextAPI/TextStubV1Tests.cpp llvm/unittests/TextAPI/TextStubV2Tests.cpp llvm/unittests/TextAPI/TextStubV4Tests.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 ed3bccf16..acfb76104 100644
--- a/llvm/benchmarks/FormatVariadicBM.cpp
+++ b/llvm/benchmarks/FormatVariadicBM.cpp
@@ -8,9 +8,9 @@
#include "benchmark/benchmark.h"
#include "llvm/Support/FormatVariadic.h"
-#include <algorithm>
-#include <string>
-
+#include <algorithm>
+#include <string>
+
using namespace llvm;
using namespace std;
diff --git a/llvm/unittests/DebugInfo/PDB/NativeSessionTest.cpp b/llvm/unittests/DebugInfo/PDB/NativeSessionTest.cpp
index c5480d985..cffaf7c95 100644
--- a/llvm/unittests/DebugInfo/PDB/NativeSessionTest.cpp
+++ b/llvm/unittests/DebugInfo/PDB/NativeSessionTest.cpp
@@ -19,7 +19,6 @@
#include "gtest/gtest.h"
-
using namespace llvm;
using namespace llvm::pdb;
diff --git a/llvm/unittests/ExecutionEngine/Orc/MapperJITLinkMemoryManagerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/MapperJITLinkMemoryManagerTest.cpp
index e85f029d9..566fdb819 100644
--- a/llvm/unittests/ExecutionEngine/Orc/MapperJITLinkMemoryManagerTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/MapperJITLinkMemoryManagerTest.cpp
@@ -13,7 +13,6 @@
#include "llvm/ExecutionEngine/Orc/MemoryMapper.h"
#include "llvm/Testing/Support/Error.h"
-
using namespace llvm;
using namespace llvm::jitlink;
using namespace llvm::orc;
``````````
</details>
https://github.com/llvm/llvm-project/pull/166997
More information about the llvm-commits
mailing list