Skip to content

Commit 6a4ce56

Browse files
committed
fix clang format issues
1 parent f0fde55 commit 6a4ce56

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3845,8 +3845,8 @@ QualType ASTContext::getConstantArrayFromArrayParameterType(QualType Ty) const {
38453845
assert(Ty->isArrayParameterType() && "Ty must be an array parameter type.");
38463846
const auto *ATy = cast<ArrayParameterType>(Ty);
38473847
return getConstantArrayType(ATy->getElementType(), ATy->getSize(),
3848-
ATy->getSizeExpr(), ATy->getSizeModifier(),
3849-
ATy->getIndexTypeQualifiers().getAsOpaqueValue());
3848+
ATy->getSizeExpr(), ATy->getSizeModifier(),
3849+
ATy->getIndexTypeQualifiers().getAsOpaqueValue());
38503850
}
38513851

38523852
QualType ASTContext::getArrayParameterType(QualType Ty) const {

clang/lib/CodeGen/CGCall.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4727,8 +4727,8 @@ void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E,
47274727
}
47284728

47294729
assert(type->isArrayParameterType() ||
4730-
(type->isReferenceType() == E->isGLValue()) &&
4731-
"reference binding to unmaterialized r-value!");
4730+
(type->isReferenceType() == E->isGLValue()) &&
4731+
"reference binding to unmaterialized r-value!");
47324732

47334733
// Add writeback for HLSLOutParamExpr.
47344734
if (const HLSLOutArgExpr *OE = dyn_cast<HLSLOutArgExpr>(E)) {

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4435,12 +4435,12 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
44354435
FromType = Context.getArrayParameterType(FromType);
44364436
From = ImpCastExprToType(From, FromType, CK_HLSLArrayRValue, VK_PRValue,
44374437
/*BasePath=*/nullptr, CCK)
4438-
.get();
4438+
.get();
44394439
} else { // FromType must be ArrayParameterType
44404440
FromType = Context.getConstantArrayFromArrayParameterType(FromType);
44414441
From = ImpCastExprToType(From, FromType, CK_HLSLArrayRValue, VK_PRValue,
4442-
/*BasePath=*/nullptr, CCK)
4443-
.get();
4442+
/*BasePath=*/nullptr, CCK)
4443+
.get();
44444444
}
44454445
break;
44464446

clang/lib/Sema/SemaOverload.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType,
22452245

22462246
bool argIsLValue = From->isGLValue();
22472247
if (S.getLangOpts().HLSL && FromType->isConstantArrayType() &&
2248-
ToType->isConstantArrayType()) {
2248+
ToType->isConstantArrayType()) {
22492249
// HLSL constant array parameters do not decay, so if the argument is a
22502250
// constant array and the parameter is an ArrayParameterType we have special
22512251
// handling here.
@@ -2266,7 +2266,7 @@ static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType,
22662266
SCS.setAllToTypes(ToType);
22672267
return true;
22682268
} else if (argIsLValue && !FromType->canDecayToPointerType() &&
2269-
S.Context.getCanonicalType(FromType) != S.Context.OverloadTy) {
2269+
S.Context.getCanonicalType(FromType) != S.Context.OverloadTy) {
22702270
// Lvalue-to-rvalue conversion (C++11 4.1):
22712271
// A glvalue (3.10) of a non-function, non-array type T can
22722272
// be converted to a prvalue.

0 commit comments

Comments
 (0)