[clang] [llvm] Remove some "DeprecatedSmallSet is deprecated" warnings from the build (PR #155407)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 26 05:49:49 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/AST/CXXInheritance.h llvm/include/llvm/Analysis/GenericDomTreeUpdater.h llvm/include/llvm/Analysis/GenericDomTreeUpdaterImpl.h llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h llvm/include/llvm/CodeGen/LiveVariables.h llvm/include/llvm/CodeGen/MachineDominators.h llvm/include/llvm/CodeGen/ScheduleDAG.h llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h llvm/include/llvm/IR/DebugInfo.h llvm/include/llvm/Transforms/Scalar/JumpThreading.h llvm/include/llvm/Transforms/Utils/PredicateInfo.h llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h llvm/lib/CodeGen/CodeGenPrepare.cpp llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp llvm/lib/CodeGen/MachineBasicBlock.cpp llvm/lib/CodeGen/WindowScheduler.cpp llvm/lib/Transforms/IPO/StripSymbols.cpp llvm/lib/Transforms/InstCombine/InstructionCombining.cpp llvm/lib/Transforms/Scalar/JumpThreading.cpp llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 39b30e332..ef0dc4482 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -13,7 +13,6 @@
#ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFDEBUG_H
#define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFDEBUG_H
-#include <set>
#include "AddressPool.h"
#include "DebugLocEntry.h"
#include "DebugLocStream.h"
@@ -40,6 +39,7 @@
#include <cstdint>
#include <limits>
#include <memory>
+#include <set>
#include <utility>
#include <variant>
#include <vector>
diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index d4069f1c4..7053d78ea 100644
--- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@ -9,8 +9,8 @@
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SetVector.h"
-#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallBitVector.h"
+#include "llvm/ADT/SmallSet.h"
#include "llvm/Analysis/CmpInstAnalysis.h"
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
#include "llvm/CodeGen/GlobalISel/GISelValueTracking.h"
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index e78c175ca..56ee5c418 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/MachineBasicBlock.h"
-#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/CodeGen/LiveIntervals.h"
#include "llvm/CodeGen/LivePhysRegs.h"
diff --git a/llvm/lib/Transforms/IPO/StripSymbols.cpp b/llvm/lib/Transforms/IPO/StripSymbols.cpp
index 2fe92ad50..b4c8cb7a9 100644
--- a/llvm/lib/Transforms/IPO/StripSymbols.cpp
+++ b/llvm/lib/Transforms/IPO/StripSymbols.cpp
@@ -19,7 +19,7 @@
//
//===----------------------------------------------------------------------===//
-#include <set>
+#include "llvm/Transforms/IPO/StripSymbols.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfo.h"
@@ -33,8 +33,8 @@
#include "llvm/IR/ValueSymbolTable.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Transforms/IPO/StripSymbols.h"
#include "llvm/Transforms/Utils/Local.h"
+#include <set>
using namespace llvm;
``````````
</details>
https://github.com/llvm/llvm-project/pull/155407
More information about the llvm-commits
mailing list