[clang] [clang] Reduce TemplateDeclInstantiator size. (PR #142983)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 5 07:51:17 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- clang/include/clang/Sema/Template.h clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Sema/Template.h b/clang/include/clang/Sema/Template.h
index 0c68ad9b9..fe907078a 100644
--- a/clang/include/clang/Sema/Template.h
+++ b/clang/include/clang/Sema/Template.h
@@ -587,8 +587,9 @@ enum class TemplateSubstitutionKind : char {
/// specializations that will need to be instantiated after the
/// enclosing class's instantiation is complete.
SmallVector<std::pair<ClassTemplateDecl *,
- ClassTemplatePartialSpecializationDecl *>, 1>
- OutOfLinePartialSpecs;
+ ClassTemplatePartialSpecializationDecl *>,
+ 1>
+ OutOfLinePartialSpecs;
/// A list of out-of-line variable template partial
/// specializations that will need to be instantiated after the
@@ -596,7 +597,7 @@ enum class TemplateSubstitutionKind : char {
/// FIXME: Verify that this is needed.
SmallVector<
std::pair<VarTemplateDecl *, VarTemplatePartialSpecializationDecl *>, 1>
- OutOfLineVarPartialSpecs;
+ OutOfLineVarPartialSpecs;
public:
TemplateDeclInstantiator(Sema &SemaRef, DeclContext *Owner,
``````````
</details>
https://github.com/llvm/llvm-project/pull/142983
More information about the cfe-commits
mailing list