[llvm-branch-commits] [clang] [clang] NFC: Provide inline definitions for {get, cast}TagDecl and friends (PR #155051)

Erich Keane via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 25 11:10:15 PDT 2025


================
@@ -2882,22 +2882,22 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
   /// Retrieves the CXXRecordDecl that this type refers to, either
   /// because the type is a RecordType or because it is the injected-class-name
   /// type of a class template or class template partial specialization.
-  CXXRecordDecl *getAsCXXRecordDecl() const;
-  CXXRecordDecl *castAsCXXRecordDecl() const;
+  inline CXXRecordDecl *getAsCXXRecordDecl() const;
----------------
erichkeane wrote:

Ah!  Thanks.  SGTM.

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


More information about the llvm-branch-commits mailing list