[clang] [NFC][clang] Fix typo in Typebase.h (PR #175163)

Yexuan Xiao via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 9 04:56:26 PST 2026


https://github.com/YexuanXiao created https://github.com/llvm/llvm-project/pull/175163

I introduced this typo at #149613, thank you to @zyn0217 for spotting this issue.

>From 949dcf66c868b8cb7544b84cd209b878a6caaa71 Mon Sep 17 00:00:00 2001
From: Yexuan Xiao <bizwen at nykz.org>
Date: Fri, 9 Jan 2026 20:53:13 +0800
Subject: [PATCH] [NFC][clang] Fix typo in Typebase.h

---
 clang/include/clang/AST/TypeBase.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/include/clang/AST/TypeBase.h b/clang/include/clang/AST/TypeBase.h
index b0fdf178ab3cc..279b75f14d7b8 100644
--- a/clang/include/clang/AST/TypeBase.h
+++ b/clang/include/clang/AST/TypeBase.h
@@ -2284,7 +2284,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
     Last = PtrdiffT
   };
 
-  class PresefinedSugarTypeBitfields {
+  class PredefinedSugarTypeBitfields {
     friend class PredefinedSugarType;
 
     LLVM_PREFERRED_TYPE(TypeBitfields)
@@ -2332,7 +2332,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
     TemplateSpecializationTypeBitfields TemplateSpecializationTypeBits;
     PackExpansionTypeBitfields PackExpansionTypeBits;
     CountAttributedTypeBitfields CountAttributedTypeBits;
-    PresefinedSugarTypeBitfields PredefinedSugarTypeBits;
+    PredefinedSugarTypeBitfields PredefinedSugarTypeBits;
   };
 
 private:



More information about the cfe-commits mailing list