[all-commits] [llvm/llvm-project] 37ece0: [NFC][Clang] Adopt simplified `getTrailingObjects`...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Mon May 19 08:20:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37ece04e096b76eef5f3cf7241ea3ff0d212a8ed
      https://github.com/llvm/llvm-project/commit/37ece04e096b76eef5f3cf7241ea3ff0d212a8ed
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2025-05-19 (Mon, 19 May 2025)

  Changed paths:
    M clang/include/clang/AST/Expr.h
    M clang/lib/AST/Expr.cpp
    M clang/lib/Serialization/ASTReaderStmt.cpp

  Log Message:
  -----------
  [NFC][Clang] Adopt simplified `getTrailingObjects` in Expr.cpp/h (#140102)

Adopt non-templated and array-ref returning forms of
`getTrailingObjects` in Expr.cpp/.h.

Use ArrayRef forms to eliminate manual asserting for OOB index. Use
llvm::copy() instead of std::copy() in some instances.



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