[lld] [DRAFT][clang-format][lld] Run clang-format on lld (PR #80461)

Paul T Robinson via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 11:55:36 PST 2024


================
@@ -1045,13 +1108,9 @@ uint32_t MergeChunk::getOutputCharacteristics() const {
   return IMAGE_SCN_MEM_READ | IMAGE_SCN_CNT_INITIALIZED_DATA;
 }
 
-size_t MergeChunk::getSize() const {
-  return builder.getSize();
-}
+size_t MergeChunk::getSize() const { return builder.getSize(); }
----------------
pogo59 wrote:

One-liner get/set functions are extremely common. More often in .h files than .cpp files though. It does look odd in context. I'd be inclined to move these to the .h file actually, and keep them as single-line functions.

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


More information about the llvm-commits mailing list