[libcxx-commits] [clang] [libcxxabi] [clang][ItaniumMangle] Mangle friend function templates with a constr… (PR #110247)
    via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Fri Sep 27 04:40:21 PDT 2024
    
    
  
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff a059b29930d046a2426be15c58421ee8971ec11c f8d897f5f3a89a5664e95a45948f9725101aa36f --extensions cpp -- clang/lib/AST/ItaniumMangle.cpp clang/test/CodeGenCXX/mangle-concept.cpp libcxxabi/test/test_demangle.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp
index 172561f73b..0e5963b91f 100644
--- a/clang/lib/AST/ItaniumMangle.cpp
+++ b/clang/lib/AST/ItaniumMangle.cpp
@@ -2276,7 +2276,7 @@ void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD,
       if (FD->getTemplatedDecl()->isMemberLikeConstrainedFriend() &&
           getASTContext().getLangOpts().getClangABICompat() >
               LangOptions::ClangABI::Ver17)
-      DC = GD.getDecl()->getLexicalDeclContext()->getRedeclContext();
+        DC = GD.getDecl()->getLexicalDeclContext()->getRedeclContext();
     }
     manglePrefix(DC, NoFunction);
     if (isa<BuiltinTemplateDecl>(ND) || isa<ConceptDecl>(ND))
``````````
</details>
https://github.com/llvm/llvm-project/pull/110247
    
    
More information about the libcxx-commits
mailing list