[clang-tools-extra] [clang-tidy] Rename out-of-line function definitions (PR #91954)

Edwin Vane via cfe-commits cfe-commits at lists.llvm.org
Tue May 14 05:28:05 PDT 2024


================
@@ -123,6 +123,9 @@ static const NamedDecl *getFailureForNamedDecl(const NamedDecl *ND) {
   if (const auto *Method = dyn_cast<CXXMethodDecl>(ND)) {
     if (const CXXMethodDecl *Overridden = getOverrideMethod(Method))
       Canonical = cast<NamedDecl>(Overridden->getCanonicalDecl());
+    else if (const FunctionTemplateDecl *Primary = Method->getPrimaryTemplate())
+      Canonical =
+          cast<NamedDecl>(Primary->getTemplatedDecl()->getCanonicalDecl());
----------------
revane wrote:

Done.

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


More information about the cfe-commits mailing list