compilerplugins/clang/check.cxx | 2 +- compilerplugins/clang/compat.hxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit c1ab75b14696db14c0c92190d3a8864f52cae568 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Oct 16 14:21:36 2025 +0200 Commit: Stephan Bergmann <[email protected]> CommitDate: Fri Oct 17 07:58:58 2025 +0200 compilerplugins: Rename getOriginalDecl back to getDecl ...to match <https://github.com/llvm/llvm-project/commit/b516dcc998d06c97d874af543489887f7e5a680c> "[clang] NFC: rename TagType::getOriginalDecl back to getDecl (#163271)" Change-Id: I11a6a261660cd3786dbb03acdf5e610e165a880e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192553 Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Jenkins diff --git a/compilerplugins/clang/check.cxx b/compilerplugins/clang/check.cxx index 433627c53f02..9fca3ae0d103 100644 --- a/compilerplugins/clang/check.cxx +++ b/compilerplugins/clang/check.cxx @@ -320,7 +320,7 @@ bool areSameSugaredType(clang::QualType type1, clang::QualType type2) { return false; } if (auto const t = llvm::dyn_cast<clang::TagType>(type1)) { - return t->getOriginalDecl()->getCanonicalDecl() == llvm::dyn_cast<clang::TagType>(type2)->getOriginalDecl()->getCanonicalDecl(); + return t->getDecl()->getCanonicalDecl() == llvm::dyn_cast<clang::TagType>(type2)->getDecl()->getCanonicalDecl(); } if (auto const t = llvm::dyn_cast<clang::TypedefType>(type1)) { return t->getDecl() == llvm::dyn_cast<clang::TypedefType>(type2)->getDecl(); diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx index cb184c19c906..2be5e7f190a3 100644 --- a/compilerplugins/clang/compat.hxx +++ b/compilerplugins/clang/compat.hxx @@ -302,7 +302,7 @@ inline clang::TagDecl const * getDefinitionOrSelf(clang::TagDecl const * decl) { inline clang::RecordDecl const * getDecl(clang::RecordType const * type) { #if CLANG_VERSION >= 220000 - return llvm::cast<clang::RecordDecl>(type->getOriginalDecl()->getCanonicalDecl()); + return llvm::cast<clang::RecordDecl>(type->getDecl()->getCanonicalDecl()); #else return type->getDecl(); #endif @@ -310,7 +310,7 @@ inline clang::RecordDecl const * getDecl(clang::RecordType const * type) { inline clang::EnumDecl const * getDecl(clang::EnumType const * type) { #if CLANG_VERSION >= 220000 - return type->getOriginalDecl()->getCanonicalDecl(); + return type->getDecl()->getCanonicalDecl(); #else return type->getDecl(); #endif @@ -318,7 +318,7 @@ inline clang::EnumDecl const * getDecl(clang::EnumType const * type) { inline clang::CXXRecordDecl const * getDecl(clang::InjectedClassNameType const * type) { #if CLANG_VERSION >= 220000 - return type->getOriginalDecl()->getCanonicalDecl(); + return type->getDecl()->getCanonicalDecl(); #else return type->getDecl(); #endif
