[clang] [clang-tools-extra] [clang] NFC: rename TagType::getOriginalDecl back to getDecl (PR #163271)

Jordan Rupprecht via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 14 09:35:57 PDT 2025


================
@@ -6419,10 +6419,7 @@ class TagType : public TypeWithKeyword {
           bool IsInjected, const Type *CanonicalType);
 
 public:
-  // FIXME: Temporarily renamed from `getDecl` in order to facilitate
-  // rebasing, due to change in behaviour. This should be renamed back
-  // to `getDecl` once the change is settled.
-  TagDecl *getOriginalDecl() const { return decl; }
----------------
rupprecht wrote:

Can we leave in wrappers for the various `getOriginalDecl()` methods that will forward to `getDecl()`? That would allow for a non-atomic migration. These have a lot of callers, especially `RecordType::getOriginalDecl`.

https://github.com/llvm/llvm-project/pull/163271


More information about the cfe-commits mailing list