[all-commits] [llvm/llvm-project] b27bb0: [AST] Simplify TypeIsArrayType (NFC) (#158784)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Sep 16 09:07:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b27bb09f6d02e750c4126aeffb7a2ecf0d6ab783
      https://github.com/llvm/llvm-project/commit/b27bb09f6d02e750c4126aeffb7a2ecf0d6ab783
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-09-16 (Tue, 16 Sep 2025)

  Changed paths:
    M clang/include/clang/AST/TypeBase.h

  Log Message:
  -----------
  [AST] Simplify TypeIsArrayType (NFC) (#158784)

This patch simplifies replaces TypeIsArrayType.  If
std::is_same<ArrayType, ArrayType> is true, then
std::is_base_of<ArrayType, ArrayType> must also be true, so
std::is_base_of<ArrayType, ArrayType> alone is sufficient.



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