Skip to content

Commit 3a7592c

Browse files
committed
format
1 parent 8ce4695 commit 3a7592c

File tree

5 files changed

+488
-494
lines changed

5 files changed

+488
-494
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3873,5 +3873,4 @@ typename clang::LazyGenerationalUpdatePtr<Owner, T, Update>::ValueType
38733873
return Value;
38743874
}
38753875

3876-
38773876
#endif // LLVM_CLANG_AST_ASTCONTEXT_H

clang/include/clang/Sema/SemaConcept.h

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,11 @@ struct NormalizedConstraint {
157157

158158
NormalizedConstraint(NormalizedConstraint *LHS, CompoundConstraintKind CCK,
159159
NormalizedConstraint *RHS)
160-
: Compound{llvm::to_underlying(ConstraintKind::Compound), llvm::to_underlying(CCK), LHS, RHS} {
161-
}
160+
: Compound{llvm::to_underlying(ConstraintKind::Compound),
161+
llvm::to_underlying(CCK), LHS, RHS} {}
162162

163163
bool hasParameterMapping() const {
164-
return getKind() != ConstraintKind::Compound
165-
&& Atomic.Args != nullptr;
164+
return getKind() != ConstraintKind::Compound && Atomic.Args != nullptr;
166165
}
167166

168167
const OccurenceList &mappingOccurenceList() const {
@@ -365,12 +364,10 @@ class ConceptIdConstraint : public NormalizedConstraintWithParamMapping {
365364
NormalizedConstraintWithParamMapping;
366365

367366
public:
368-
static ConceptIdConstraint *Create(ASTContext &Ctx,
369-
const ConceptReference *ConceptId,
370-
NormalizedConstraint *SubConstraint,
371-
const NamedDecl *ConstraintDecl,
372-
const ConceptSpecializationExpr *CSE,
373-
UnsignedOrNone PackIndex) {
367+
static ConceptIdConstraint *
368+
Create(ASTContext &Ctx, const ConceptReference *ConceptId,
369+
NormalizedConstraint *SubConstraint, const NamedDecl *ConstraintDecl,
370+
const ConceptSpecializationExpr *CSE, UnsignedOrNone PackIndex) {
374371
return new (Ctx) ConceptIdConstraint(ConceptId, ConstraintDecl,
375372
SubConstraint, CSE, PackIndex);
376373
}

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17862,8 +17862,8 @@ Decl *Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc,
1786217862
const ASTConstraintSatisfaction &Satisfaction =
1786317863
ConceptIDExpr->getSatisfaction();
1786417864
if (!Satisfaction.ContainsErrors || Satisfaction.NumRecords) {
17865-
Diag(AssertExpr->getBeginLoc(), diag::err_static_assert_failed)
17866-
<< !HasMessage << Msg.str() << AssertExpr->getSourceRange();
17865+
Diag(AssertExpr->getBeginLoc(), diag::err_static_assert_failed)
17866+
<< !HasMessage << Msg.str() << AssertExpr->getSourceRange();
1786717867
// Drill down into concept specialization expressions to see why they
1786817868
// weren't satisfied.
1786917869
DiagnoseUnsatisfiedConstraint(ConceptIDExpr);

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4890,7 +4890,7 @@ ExprResult Sema::CheckConceptTemplateId(
48904890
*TemplateArgs, CTAI.SugaredConverted);
48914891
MultiLevelTemplateArgumentList MLTAL(NamedConcept, CTAI.SugaredConverted,
48924892
/*Final=*/false);
4893-
auto *CL = ConceptReference::Create(
4893+
auto *CL = ConceptReference::Create(
48944894
Context,
48954895
SS.isSet() ? SS.getWithLocInContext(Context) : NestedNameSpecifierLoc{},
48964896
TemplateKWLoc, ConceptNameInfo, FoundDecl, NamedConcept,

0 commit comments

Comments
 (0)