[all-commits] [llvm/llvm-project] bebb7f: [clang][NFC] Pass/Return `CharUnits` by value (#22...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sun Sep 27 20:35:24 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bebb7fe62f8883d822f084687cfb84c5cfe12bbb
      https://github.com/llvm/llvm-project/commit/bebb7fe62f8883d822f084687cfb84c5cfe12bbb
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M clang/include/clang/AST/APValue.h
    M clang/include/clang/AST/CharUnits.h
    M clang/lib/AST/APValue.cpp
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/ExprConstant.cpp

  Log Message:
  -----------
  [clang][NFC] Pass/Return `CharUnits` by value (#226115)

`CharUnits` is just an `int64_t`, but passed around by const reference
for some reason.

Also update the `CharUnits` documentation since we touch most of the
lines anyway (due to clang-format).



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