[clang] [lld] [llvm] Stablefunctest2 (PR #109522)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 21 01:39:08 PDT 2024
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 8527861179ac7771bae09e2fcb0eece4b589d747 e5ace714e5424afd855c678344bce0aca13ba2ac --extensions cpp,inc,h -- llvm/include/llvm/CGData/StableFunctionMap.h llvm/include/llvm/CGData/StableFunctionMapRecord.h llvm/include/llvm/Transforms/IPO/GlobalMergeFunctions.h llvm/lib/CGData/StableFunctionMap.cpp llvm/lib/CGData/StableFunctionMapRecord.cpp llvm/lib/Transforms/IPO/GlobalMergeFunctions.cpp llvm/unittests/CGData/StableFunctionMapRecordTest.cpp llvm/unittests/CGData/StableFunctionMapTest.cpp clang/lib/CodeGen/BackendUtil.cpp lld/MachO/Driver.cpp lld/MachO/InputSection.h lld/MachO/LTO.cpp llvm/include/llvm/CGData/CodeGenData.h llvm/include/llvm/CGData/CodeGenData.inc llvm/include/llvm/CGData/CodeGenDataReader.h llvm/include/llvm/CGData/CodeGenDataWriter.h llvm/include/llvm/IR/StructuralHash.h llvm/include/llvm/InitializePasses.h llvm/include/llvm/LTO/LTOBackend.h llvm/include/llvm/LinkAllPasses.h llvm/include/llvm/Passes/CodeGenPassBuilder.h llvm/include/llvm/Transforms/IPO.h llvm/lib/CGData/CodeGenData.cpp llvm/lib/CGData/CodeGenDataReader.cpp llvm/lib/CGData/CodeGenDataWriter.cpp llvm/lib/IR/StructuralHash.cpp llvm/lib/LTO/LTO.cpp llvm/lib/LTO/LTOBackend.cpp llvm/tools/llvm-cgdata/llvm-cgdata.cpp llvm/unittests/IR/StructuralHashTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CGData/StableFunctionMap.h b/llvm/include/llvm/CGData/StableFunctionMap.h
index 9bf7183daa..8773637314 100644
--- a/llvm/include/llvm/CGData/StableFunctionMap.h
+++ b/llvm/include/llvm/CGData/StableFunctionMap.h
@@ -26,7 +26,6 @@
namespace llvm {
-
using IndexPairHash = std::pair<IndexPair, stable_hash>;
using IndexOperandHashVecType = SmallVector<IndexPairHash>;
diff --git a/llvm/include/llvm/CGData/StableFunctionMapRecord.h b/llvm/include/llvm/CGData/StableFunctionMapRecord.h
index 0a38e2df73..29cabd7b51 100644
--- a/llvm/include/llvm/CGData/StableFunctionMapRecord.h
+++ b/llvm/include/llvm/CGData/StableFunctionMapRecord.h
@@ -27,7 +27,7 @@ struct StableFunctionMapRecord {
FunctionMap = std::make_unique<StableFunctionMap>();
}
StableFunctionMapRecord(std::unique_ptr<StableFunctionMap> FunctionMap)
- : FunctionMap(std::move(FunctionMap)){};
+ : FunctionMap(std::move(FunctionMap)) {};
/// Serialize the stable function map to a raw_ostream.
void serialize(raw_ostream &OS) const;
``````````
</details>
https://github.com/llvm/llvm-project/pull/109522
More information about the cfe-commits
mailing list