[clang] [clang] clang-format two constructors (PR #226737)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 26 15:49:37 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Nico Weber (nico)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/226737.diff
1 Files Affected:
- (modified) clang/lib/Sema/SemaOverload.cpp (+12-17)
``````````diff
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();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/226737
More information about the cfe-commits
mailing list