[Lldb-commits] [clang] [lldb] [clang] fix alias ctad producing function template with no template parameters (PR #195303)
via lldb-commits
lldb-commits at lists.llvm.org
Fri May 1 11:36:53 PDT 2026
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 origin/main HEAD --extensions h,cpp -- clang/include/clang/Sema/Sema.h clang/lib/AST/DeclTemplate.cpp clang/lib/Sema/SemaInit.cpp clang/lib/Sema/SemaTemplate.cpp clang/lib/Sema/SemaTemplateDeductionGuide.cpp clang/test/SemaCXX/ctad.cpp clang/test/SemaCXX/cxx20-ctad-type-alias.cpp clang/test/SemaTemplate/deduction-guide.cpp lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
index 138d5997d..62c374265 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -1632,7 +1632,8 @@ TypeSystemClang::CreateTemplateTemplateParmDecl(const char *template_name) {
llvm::SmallVector<NamedDecl *, 8> template_param_decls;
TypeSystemClang::TemplateParameterInfos template_param_infos;
- template_param_infos.SetParameterPack(std::make_unique<TemplateParameterInfos>());
+ template_param_infos.SetParameterPack(
+ std::make_unique<TemplateParameterInfos>());
TemplateParameterList *template_param_list = CreateTemplateParameterList(
ast, template_param_infos, template_param_decls);
``````````
</details>
https://github.com/llvm/llvm-project/pull/195303
More information about the lldb-commits
mailing list