[llvm] cac3802 - [ADT] Fix comment typos in STLForwardCompat.h (#157789)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 10 08:36:51 PDT 2025


Author: Kazu Hirata
Date: 2025-09-10T08:36:48-07:00
New Revision: cac3802a1647339ee13821969d8382a3cad03876

URL: https://github.com/llvm/llvm-project/commit/cac3802a1647339ee13821969d8382a3cad03876
DIFF: https://github.com/llvm/llvm-project/commit/cac3802a1647339ee13821969d8382a3cad03876.diff

LOG: [ADT] Fix comment typos in STLForwardCompat.h (#157789)

st::type_identity_t is from C++20, not C++23.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/STLForwardCompat.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/STLForwardCompat.h b/llvm/include/llvm/ADT/STLForwardCompat.h
index 81b9a685e11d2..0ef8cb5d02e50 100644
--- a/llvm/include/llvm/ADT/STLForwardCompat.h
+++ b/llvm/include/llvm/ADT/STLForwardCompat.h
@@ -36,7 +36,7 @@ template <typename T>
 using remove_cvref_t // NOLINT(readability-identifier-naming)
     = typename llvm::remove_cvref<T>::type;
 
-// TODO: Remove this in favor of std::type_identity<T> once we switch to C++23.
+// TODO: Remove this in favor of std::type_identity<T> once we switch to C++20.
 template <typename T>
 struct type_identity // NOLINT(readability-identifier-naming)
 {
@@ -44,7 +44,7 @@ struct type_identity // NOLINT(readability-identifier-naming)
 };
 
 // TODO: Remove this in favor of std::type_identity_t<T> once we switch to
-// C++23.
+// C++20.
 template <typename T>
 using type_identity_t // NOLINT(readability-identifier-naming)
     = typename llvm::type_identity<T>::type;


        


More information about the llvm-commits mailing list