[llvm] [ADT] Fix a comment in ScopedHashTable (PR #165116)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 25 13:25:25 PDT 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/165116

This patch replaces "typedef" with "type alias" in the comment while
making it more concise.


>From bd247ea532552f1060d331866b7b43050ee8b77a Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 14 Oct 2025 14:03:42 -0700
Subject: [PATCH] [ADT] Fix a comment in ScopedHashTable

This patch replaces "typedef" with "type alias" in the comment while
making it more concise.
---
 llvm/include/llvm/ADT/ScopedHashTable.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/include/llvm/ADT/ScopedHashTable.h b/llvm/include/llvm/ADT/ScopedHashTable.h
index 78d4df7d56845..97d15463fdfd7 100644
--- a/llvm/include/llvm/ADT/ScopedHashTable.h
+++ b/llvm/include/llvm/ADT/ScopedHashTable.h
@@ -151,8 +151,8 @@ class ScopedHashTable : detail::AllocatorHolder<AllocatorTy> {
   using AllocTy = detail::AllocatorHolder<AllocatorTy>;
 
 public:
-  /// ScopeTy - This is a helpful typedef that allows clients to get easy access
-  /// to the name of the scope for this hash table.
+  /// ScopeTy - A type alias for easy access to the name of the scope for this
+  /// hash table.
   using ScopeTy = ScopedHashTableScope<K, V, KInfo, AllocatorTy>;
   using size_type = unsigned;
 



More information about the llvm-commits mailing list