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/ProfileData/MemProfRadixTree.h 
llvm/lib/ProfileData/MemProfRadixTree.cpp 
llvm/include/llvm/ProfileData/MemProf.h 
llvm/include/llvm/ProfileData/MemProfReader.h 
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp 
llvm/lib/ProfileData/IndexedMemProfData.cpp 
llvm/lib/ProfileData/InstrProfReader.cpp llvm/lib/ProfileData/MemProf.cpp 
llvm/unittests/ProfileData/InstrProfTest.cpp 
llvm/unittests/ProfileData/MemProfTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ProfileData/MemProfRadixTree.h 
b/llvm/include/llvm/ProfileData/MemProfRadixTree.h
index 9abf9f7a8..7afa66088 100644
--- a/llvm/include/llvm/ProfileData/MemProfRadixTree.h
+++ b/llvm/include/llvm/ProfileData/MemProfRadixTree.h
@@ -6,7 +6,7 @@
 //
 
//===----------------------------------------------------------------------===//
 //
-// A custom Radix Tree builder for memprof data to optimize for space.  
+// A custom Radix Tree builder for memprof data to optimize for space.
 //
 
//===----------------------------------------------------------------------===//
 
@@ -211,7 +211,6 @@ struct CallerCalleePairExtractor {
   }
 };
 
-
 // A convenience wrapper around FrameIdConverter and CallStackIdConverter for
 // tests.
 struct IndexedCallstackIdConverter {
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp 
b/llvm/lib/ProfileData/InstrProfReader.cpp
index 65b8eb514..a1eb08362 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -18,7 +18,7 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/IR/ProfileSummary.h"
 #include "llvm/ProfileData/InstrProf.h"
-//#include "llvm/ProfileData/MemProf.h"
+// #include "llvm/ProfileData/MemProf.h"
 #include "llvm/ProfileData/MemProfRadixTree.h"
 #include "llvm/ProfileData/ProfileCommon.h"
 #include "llvm/ProfileData/SymbolRemappingReader.h"
diff --git a/llvm/lib/ProfileData/MemProfRadixTree.cpp 
b/llvm/lib/ProfileData/MemProfRadixTree.cpp
index 5ef357efd..ec3ff2e72 100644
--- a/llvm/lib/ProfileData/MemProfRadixTree.cpp
+++ b/llvm/lib/ProfileData/MemProfRadixTree.cpp
@@ -5,12 +5,11 @@
 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 //
 
//===----------------------------------------------------------------------===//
-// This file contains logic that implements a space efficient radix tree 
+// This file contains logic that implements a space efficient radix tree
 // encoding for callstacks used by MemProf.
 //
 
//===----------------------------------------------------------------------===//
 
-
 #include "llvm/ProfileData/MemProfRadixTree.h"
 
 namespace llvm {
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp 
b/llvm/unittests/ProfileData/InstrProfTest.cpp
index 9f1caae29..439c60267 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -15,8 +15,8 @@
 #include "llvm/ProfileData/InstrProfReader.h"
 #include "llvm/ProfileData/InstrProfWriter.h"
 #include "llvm/ProfileData/MemProf.h"
-#include "llvm/ProfileData/MemProfRadixTree.h"
 #include "llvm/ProfileData/MemProfData.inc"
+#include "llvm/ProfileData/MemProfRadixTree.h"
 #include "llvm/Support/Compression.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Testing/Support/Error.h"
diff --git a/llvm/unittests/ProfileData/MemProfTest.cpp 
b/llvm/unittests/ProfileData/MemProfTest.cpp
index a072dee26..26b09698c 100644
--- a/llvm/unittests/ProfileData/MemProfTest.cpp
+++ b/llvm/unittests/ProfileData/MemProfTest.cpp
@@ -6,6 +6,7 @@
 //
 
//===----------------------------------------------------------------------===//
 
+#include "llvm/ProfileData/MemProf.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/MapVector.h"
 #include "llvm/ADT/STLForwardCompat.h"
@@ -13,10 +14,9 @@
 #include "llvm/DebugInfo/Symbolize/SymbolizableModule.h"
 #include "llvm/IR/Value.h"
 #include "llvm/Object/ObjectFile.h"
-#include "llvm/ProfileData/MemProf.h"
 #include "llvm/ProfileData/MemProfData.inc"
-#include "llvm/ProfileData/MemProfReader.h"
 #include "llvm/ProfileData/MemProfRadixTree.h"
+#include "llvm/ProfileData/MemProfReader.h"
 #include "llvm/ProfileData/MemProfYAML.h"
 #include "llvm/Support/raw_ostream.h"
 #include "gmock/gmock.h"

``````````

</details>


https://github.com/llvm/llvm-project/pull/140501
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to