[clang] [clang][NFC] Refactor `Sema::TemplateDeductionResult` (PR #81398)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 12 07:21:33 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 6a7cf806a66c67df01818fda01116a2dd2d90b0d 4111afb81d798f9d8141adc634ecccc617c34b5a -- clang/include/clang/Sema/Sema.h clang/include/clang/Sema/TemplateDeduction.h clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaExprCXX.cpp clang/lib/Sema/SemaLookup.cpp clang/lib/Sema/SemaOverload.cpp clang/lib/Sema/SemaStmt.cpp clang/lib/Sema/SemaTemplate.cpp clang/lib/Sema/SemaTemplateDeduction.cpp clang/lib/Sema/SemaTemplateInstantiate.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 09af96df73..9381b8c662 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -11457,7 +11457,8 @@ static void DiagnoseBadDeduction(Sema &S, NamedDecl *Found, Decl *Templated,
llvm_unreachable(
"TemplateDeductionResult::Success while diagnosing bad deduction");
case TemplateDeductionResult::NonDependentConversionFailure:
- llvm_unreachable("TemplateDeductionResult::NonDependentConversionFailure while diagnosing bad deduction");
+ llvm_unreachable("TemplateDeductionResult::NonDependentConversionFailure "
+ "while diagnosing bad deduction");
case TemplateDeductionResult::Invalid:
case TemplateDeductionResult::AlreadyDiagnosed:
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/81398
More information about the cfe-commits
mailing list