[clang] [Clang] Correctly construct template arguments for template template parameters (PR #76811)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 6 05:06:11 PST 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 3fb0d8dc808cb7f315670d76109edc9c57cb3d90 323a3ec564da5018e6f7f2be4072b37c0ca49e5a -- clang/lib/Sema/SemaTemplateInstantiate.cpp clang/test/CXX/temp/temp.arg/temp.arg.template/p3-2a.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index 57e005a011..7f20413c10 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -351,7 +351,7 @@ MultiLevelTemplateArgumentList Sema::getTemplateInstantiationArgs(
if (Innermost) {
Result.addOuterTemplateArguments(const_cast<NamedDecl *>(ND),
Innermost->asArray(), Final);
- // Populate placeholder template arguments for TemplateTemplateParmDecls.
+ // Populate placeholder template arguments for TemplateTemplateParmDecls.
// This is essential for the case e.g.
//
// template <class> concept Concept = false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/76811
More information about the cfe-commits
mailing list