https://github.com/nico created https://github.com/llvm/llvm-project/pull/226737
I'd like to change these two in a patch, and the diff looks a bit confusing since they aren't formatted yet. So format them in a prep commit to make the diff clearer. No behavior change. >From 023de99badc622e0eaf1738ddf49261402abebad Mon Sep 17 00:00:00 2001 From: Nico Weber <[email protected]> Date: Sat, 26 Sep 2026 15:45:01 -0700 Subject: [PATCH] [clang] clang-format two constructors I'd like to change these two in a patch, and the diff looks a bit confusing since they aren't formatted yet. So format them in a prep commit to make the diff clearer. No behavior change. --- clang/lib/Sema/SemaOverload.cpp | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index 31422ab51d8b6..8e305d5d418d6 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -9170,11 +9170,8 @@ class BuiltinCandidateTypeSet { typedef TypeSet::iterator iterator; BuiltinCandidateTypeSet(Sema &SemaRef) - : HasNonRecordTypes(false), - HasArithmeticOrEnumeralTypes(false), - HasNullPtrType(false), - SemaRef(SemaRef), - Context(SemaRef.Context) { } + : HasNonRecordTypes(false), HasArithmeticOrEnumeralTypes(false), + HasNullPtrType(false), SemaRef(SemaRef), Context(SemaRef.Context) {} void AddTypesConvertedFrom(QualType Ty, SourceLocation Loc, @@ -9677,18 +9674,16 @@ class BuiltinOperatorOverloadBuilder { public: BuiltinOperatorOverloadBuilder( - Sema &S, ArrayRef<Expr *> Args, - QualifiersAndAtomic VisibleTypeConversionsQuals, - bool HasArithmeticOrEnumeralCandidateType, - SmallVectorImpl<BuiltinCandidateTypeSet> &CandidateTypes, - OverloadCandidateSet &CandidateSet) - : S(S), Args(Args), - VisibleTypeConversionsQuals(VisibleTypeConversionsQuals), - HasArithmeticOrEnumeralCandidateType( - HasArithmeticOrEnumeralCandidateType), - CandidateTypes(CandidateTypes), - CandidateSet(CandidateSet) { - + Sema &S, ArrayRef<Expr *> Args, + QualifiersAndAtomic VisibleTypeConversionsQuals, + bool HasArithmeticOrEnumeralCandidateType, + SmallVectorImpl<BuiltinCandidateTypeSet> &CandidateTypes, + OverloadCandidateSet &CandidateSet) + : S(S), Args(Args), + VisibleTypeConversionsQuals(VisibleTypeConversionsQuals), + HasArithmeticOrEnumeralCandidateType( + HasArithmeticOrEnumeralCandidateType), + CandidateTypes(CandidateTypes), CandidateSet(CandidateSet) { InitArithmeticTypes(); } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
