[llvm] 154331 build with c++23 on main (PR #154372)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 09:25:00 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 -- llvm/include/llvm/DebugInfo/GSYM/GsymContext.h llvm/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h llvm/include/llvm/DebugInfo/PDB/Native/InputFile.h llvm/include/llvm/DebugInfo/PDB/PDBSymbolFunc.h llvm/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h llvm/include/llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h llvm/include/llvm/MC/MCGOFFStreamer.h llvm/lib/DebugInfo/GSYM/GsymContext.cpp llvm/lib/DebugInfo/PDB/Native/InputFile.cpp llvm/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp llvm/lib/MC/MCGOFFStreamer.cpp llvm/lib/Remarks/BitstreamRemarkParser.cpp llvm/lib/Remarks/BitstreamRemarkParser.h llvm/lib/TableGen/TGParser.cpp llvm/lib/TableGen/TGParser.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h b/llvm/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
index 98f219ae7..aec93c928 100644
--- a/llvm/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
+++ b/llvm/include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
@@ -10,10 +10,10 @@
 #define LLVM_DEBUGINFO_PDB_IPDBRAWSYMBOL_H
 
 #include "PDBTypes.h"
-#include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
 #include "llvm/ADT/BitmaskEnum.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/DebugInfo/CodeView/CodeView.h"
+#include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
 #include "llvm/Support/Compiler.h"
 #include <memory>
 
diff --git a/llvm/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h b/llvm/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h
index d3bfa00ac..b21cd0929 100644
--- a/llvm/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h
+++ b/llvm/include/llvm/DebugInfo/PDB/PDBSymbolTypeBuiltin.h
@@ -20,7 +20,6 @@ namespace pdb {
 class LLVM_ABI PDBSymbolTypeBuiltin : public PDBSymbol {
   DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::BuiltinType)
 public:
-
   ~PDBSymbolTypeBuiltin();
   void dump(PDBSymDumper &Dumper) const override;
 
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp
index 1c121187c..c13cbe77f 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp
@@ -21,7 +21,6 @@ PDBSymbolTypeBuiltin::~PDBSymbolTypeBuiltin() = default;
 using namespace llvm;
 using namespace llvm::pdb;
 
-
 void PDBSymbolTypeBuiltin::dump(PDBSymDumper &Dumper) const {
   Dumper.dump(*this);
 }
diff --git a/llvm/lib/MC/MCGOFFStreamer.cpp b/llvm/lib/MC/MCGOFFStreamer.cpp
index f164c2d73..8b228db0e 100644
--- a/llvm/lib/MC/MCGOFFStreamer.cpp
+++ b/llvm/lib/MC/MCGOFFStreamer.cpp
@@ -51,4 +51,3 @@ llvm::MCGOFFStreamer::MCGOFFStreamer(MCContext &Context,
                                      std::unique_ptr<MCCodeEmitter> Emitter)
     : MCObjectStreamer(Context, std::move(MAB), std::move(OW),
                        std::move(Emitter)) {}
-
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index 5d23416b4..f928ded16 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -34,11 +34,12 @@ using namespace llvm;
 namespace llvm {
 
 RecordsEntry::RecordsEntry(std::unique_ptr<Record> Rec) : Rec(std::move(Rec)) {}
-RecordsEntry::RecordsEntry(std::unique_ptr<ForeachLoop> Loop) : Loop(std::move(Loop)) {}
+RecordsEntry::RecordsEntry(std::unique_ptr<ForeachLoop> Loop)
+    : Loop(std::move(Loop)) {}
 RecordsEntry::RecordsEntry(std::unique_ptr<Record::AssertionInfo> Assertion)
-      : Assertion(std::move(Assertion)) {}
+    : Assertion(std::move(Assertion)) {}
 RecordsEntry::RecordsEntry(std::unique_ptr<Record::DumpInfo> Dump)
-      : Dump(std::move(Dump)) {}
+    : Dump(std::move(Dump)) {}
 
 struct SubClassReference {
   SMRange RefRange;

``````````

</details>


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


More information about the llvm-commits mailing list