[clang] [Sema] Avoid excessive desuraging in template deduction (PR #100144)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 09:03:03 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 363e036ac002d5af4bb82e303052b806a98086a1 20c9e54bc2e30864592b74db6ed1eeeddeacca50 --extensions cpp -- clang/test/SemaTemplate/variadic-no-mention.cpp clang/lib/Sema/SemaTemplateDeduction.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaTemplateDeduction.cpp b/clang/lib/Sema/SemaTemplateDeduction.cpp
index 7fc595bd60..71529a822b 100644
--- a/clang/lib/Sema/SemaTemplateDeduction.cpp
+++ b/clang/lib/Sema/SemaTemplateDeduction.cpp
@@ -948,7 +948,7 @@ private:
// Skip over the pack elements that were expanded into separate arguments.
// If we partially expanded, this is the number of partial arguments.
- if (IsPartiallyExpanded) {
+ if (IsPartiallyExpanded) {
PackElements += NumPartialPackArgs;
} else if (IsExpanded) {
assert(FixedNumExpansions.has_value());
``````````
</details>
https://github.com/llvm/llvm-project/pull/100144
More information about the cfe-commits
mailing list