Skip to content

Commit 55f52cb

Browse files
committed
run formatter
Signed-off-by: Justin Stitt <[email protected]>
1 parent 68e5ec1 commit 55f52cb

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

clang/lib/AST/Expr.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4866,7 +4866,6 @@ BinaryOperator::BinaryOperator(const ASTContext &Ctx, Expr *lhs, Expr *rhs,
48664866
setType(Ctx.getAttributedType(attr::Wraps, getType(), getType()));
48674867
if (hasNonWrappingOperand(Ctx))
48684868
setType(Ctx.getAttributedType(attr::NoWraps, getType(), getType()));
4869-
48704869
}
48714870

48724871
BinaryOperator::BinaryOperator(const ASTContext &Ctx, Expr *lhs, Expr *rhs,
@@ -4889,7 +4888,6 @@ BinaryOperator::BinaryOperator(const ASTContext &Ctx, Expr *lhs, Expr *rhs,
48894888
setType(Ctx.getAttributedType(attr::Wraps, getType(), getType()));
48904889
if (hasNonWrappingOperand(Ctx))
48914890
setType(Ctx.getAttributedType(attr::NoWraps, getType(), getType()));
4892-
48934891
}
48944892

48954893
BinaryOperator *BinaryOperator::CreateEmpty(const ASTContext &C,

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3033,8 +3033,7 @@ ScalarExprEmitter::EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV,
30333033
value = EmitIncDecConsiderOverflowBehavior(E, value, isInc);
30343034
} else if (E->canOverflow() && type->isUnsignedIntegerType() &&
30353035
CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow) &&
3036-
!Ops.hasWrappingOperand() &&
3037-
!excludeOverflowPattern &&
3036+
!Ops.hasWrappingOperand() && !excludeOverflowPattern &&
30383037
!CGF.getContext().isTypeIgnoredBySanitizer(
30393038
SanitizerKind::UnsignedIntegerOverflow, E->getType())) {
30403039
value = EmitOverflowCheckedBinOp(createBinOpInfoFromIncDec(

clang/lib/Sema/SemaDecl.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@
2424
#include "clang/AST/EvaluatedExprVisitor.h"
2525
#include "clang/AST/Expr.h"
2626
#include "clang/AST/ExprCXX.h"
27-
#include "clang/AST/NonTrivialTypeVisitor.h"
2827
#include "clang/AST/MangleNumberingContext.h"
28+
#include "clang/AST/NonTrivialTypeVisitor.h"
2929
#include "clang/AST/Randstruct.h"
3030
#include "clang/AST/StmtCXX.h"
3131
#include "clang/AST/Type.h"
3232
#include "clang/Basic/Builtins.h"
3333
#include "clang/Basic/HLSLRuntime.h"
34+
#include "clang/Basic/NoSanitizeList.h"
3435
#include "clang/Basic/PartialDiagnostic.h"
3536
#include "clang/Basic/SourceManager.h"
3637
#include "clang/Basic/TargetInfo.h"
@@ -56,7 +57,6 @@
5657
#include "clang/Sema/SemaSwift.h"
5758
#include "clang/Sema/SemaWasm.h"
5859
#include "clang/Sema/Template.h"
59-
#include "clang/Basic/NoSanitizeList.h"
6060
#include "llvm/ADT/STLForwardCompat.h"
6161
#include "llvm/ADT/SmallString.h"
6262
#include "llvm/ADT/StringExtras.h"
@@ -6713,9 +6713,10 @@ Sema::CheckTypedefForVariablyModifiedType(Scope *S, TypedefNameDecl *NewTD) {
67136713
}
67146714
}
67156715

6716-
NamedDecl*
6717-
Sema::ActOnTypedefNameDecl(Scope *S, DeclContext *DC, TypedefNameDecl *NewTD,
6718-
LookupResult &Previous, bool &Redeclaration) {
6716+
NamedDecl *Sema::ActOnTypedefNameDecl(Scope *S, DeclContext *DC,
6717+
TypedefNameDecl *NewTD,
6718+
LookupResult &Previous,
6719+
bool &Redeclaration) {
67196720
// Find the shadowed declaration before filtering for scope.
67206721
NamedDecl *ShadowedDecl = getShadowedDeclaration(NewTD, Previous);
67216722

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6976,7 +6976,6 @@ ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL,
69766976
handleWrapsAttr(S, D, AL, true);
69776977
break;
69786978

6979-
69806979
// Microsoft attributes:
69816980
case ParsedAttr::AT_LayoutVersion:
69826981
handleLayoutVersion(S, D, AL);

clang/lib/Sema/SemaType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6543,7 +6543,7 @@ static void handleWrapsAttr(QualType &Type, const ParsedAttr &Attr,
65436543

65446544
if (!Type->isIntegerType()) {
65456545
S.Diag(Attr.getLoc(), diag::warn_wraps_attr_var_decl_type_not_integer)
6546-
<< (int)NoWraps << Type.getAsString();
6546+
<< (int)NoWraps << Type.getAsString();
65476547
Attr.setInvalid();
65486548
}
65496549

0 commit comments

Comments
 (0)