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 bce08d822f8dc2993c831a05a33449ac495781ac 
026f442bd600bd50921bdcfe550b5ff4c376066e --extensions cpp,h -- 
clang/include/clang/AST/DeclTemplate.h clang/lib/AST/ASTImporter.cpp 
clang/lib/AST/Decl.cpp clang/lib/AST/DeclCXX.cpp clang/lib/AST/DeclTemplate.cpp 
clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaInit.cpp 
clang/lib/Sema/SemaTemplateInstantiate.cpp clang/test/AST/ast-dump-decl.cpp 
clang/test/CXX/temp/temp.spec/temp.expl.spec/p7.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/AST/DeclTemplate.h 
b/clang/include/clang/AST/DeclTemplate.h
index a572e3380f..3361ad1a04 100644
--- a/clang/include/clang/AST/DeclTemplate.h
+++ b/clang/include/clang/AST/DeclTemplate.h
@@ -1970,7 +1970,7 @@ public:
             SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization *>())
       return PartialSpec->PartialSpecialization;
 
-    return SpecializedTemplate.get<ClassTemplateDecl*>();
+    return SpecializedTemplate.get<ClassTemplateDecl *>();
   }
 
   /// Retrieve the set of template arguments that should be used
diff --git a/clang/lib/AST/DeclTemplate.cpp b/clang/lib/AST/DeclTemplate.cpp
index 755ec72f00..7deaa3bdce 100644
--- a/clang/lib/AST/DeclTemplate.cpp
+++ b/clang/lib/AST/DeclTemplate.cpp
@@ -993,7 +993,7 @@ ClassTemplateSpecializationDecl::getSpecializedTemplate() 
const {
   if (const auto *PartialSpec =
           SpecializedTemplate.dyn_cast<SpecializedPartialSpecialization*>())
     return PartialSpec->PartialSpecialization->getSpecializedTemplate();
-  return SpecializedTemplate.get<ClassTemplateDecl*>();
+  return SpecializedTemplate.get<ClassTemplateDecl *>();
 }
 
 SourceRange

``````````

</details>


https://github.com/llvm/llvm-project/pull/115156
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to