[all-commits] [llvm/llvm-project] 7384d8: SourceCoverageViewHTML.cpp: Reformat JS

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Wed Dec 18 03:00:34 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7384d8bc18535286a24b4422f6661109d127e8fd
      https://github.com/llvm/llvm-project/commit/7384d8bc18535286a24b4422f6661109d127e8fd
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

  Changed paths:
    M llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp

  Log Message:
  -----------
  SourceCoverageViewHTML.cpp: Reformat JS


  Commit: 5a5838fba37153adb7885c897131dda09227eb2d
      https://github.com/llvm/llvm-project/commit/5a5838fba37153adb7885c897131dda09227eb2d
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

  Changed paths:
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h

  Log Message:
  -----------
  Introduce CounterMappingRegion::isBranch(). NFC.


  Commit: a9df1f6cb0dcdd808abc25f7fa1555e9e0ec6a9f
      https://github.com/llvm/llvm-project/commit/a9df1f6cb0dcdd808abc25f7fa1555e9e0ec6a9f
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

  Changed paths:
    M llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
    M llvm/tools/llvm-cov/SourceCoverageViewText.cpp

  Log Message:
  -----------
  llvm-cov: Refactor SourceCoverageView::renderBranchView().

NFC except for calculating `Total`. I've replaced
`(uint64_t)+(uint64_t)` with `(double)+(double)`.

This is still inexact with large numbers `(1LL << 53)` but will be expected to prevent possible overflow.


Compare: https://github.com/llvm/llvm-project/compare/41c1992a1699...a9df1f6cb0dc

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list