[Openmp-commits] [openmp] [Libomptarget][NFC] Format in-line comments consistently (PR #77530)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 10 08:05:40 PST 2024


================
@@ -214,8 +214,7 @@ struct RecordReplayTy {
     for (auto &OffloadEntry : Image.getOffloadEntryTable()) {
       if (!OffloadEntry.size)
         continue;
-      Size += std::strlen(OffloadEntry.name) + /* '\0' */ 1 +
-              /* OffloadEntry.size value */ sizeof(uint32_t) +
+      Size += std::strlen(OffloadEntry.name) + sizeof("") + sizeof(uint32_t) +
----------------
jdoerfert wrote:

I believe this is worse.

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


More information about the Openmp-commits mailing list